@everymatrix/casino-tournaments-page-controller 1.74.6 → 1.74.8
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.
- package/components/CasinoTournamentsPageController-BI30Zn_K.cjs +37 -0
- package/components/{CasinoTournamentsPageController-CyTnO5rL.js → CasinoTournamentsPageController-Ddf2_sPY.js} +1750 -1676
- package/components/{CasinoTournamentsPageController-3zqviMlx.js → CasinoTournamentsPageController-X4NP8v-B.js} +1581 -1507
- package/components/{CasinoTournamentsTab-DdycfItS.js → CasinoTournamentsTab-BZdk--TG.js} +1 -1
- package/components/{CasinoTournamentsTab-ikDYptzq.js → CasinoTournamentsTab-BbLgdQcY.js} +1 -1
- package/components/{CasinoTournamentsTab-DKNl0Wnt.cjs → CasinoTournamentsTab-D65mknVm.cjs} +1 -1
- package/components/{CasinoTournamentsTable-Dr1n_miT.js → CasinoTournamentsTable-CVt_TRBy.js} +1 -1
- package/components/{CasinoTournamentsTable-DBpVGWGu.cjs → CasinoTournamentsTable-Cxom7JHr.cjs} +1 -1
- package/components/{CasinoTournamentsTable-BkvoReIb.js → CasinoTournamentsTable-jvUf0UoX.js} +1 -1
- package/components/CasinoTournamentsThumbnail-9bVKLp4S.cjs +4 -0
- package/components/{CasinoTournamentsThumbnail-DNtdcfbc.js → CasinoTournamentsThumbnail-C3DVYkQm.js} +315 -276
- package/components/{CasinoTournamentsThumbnail-Dhpxhke6.js → CasinoTournamentsThumbnail-DLBEB_lz.js} +315 -276
- package/components/{CasinoTournamentsThumbnailController-D0LFO1hA.js → CasinoTournamentsThumbnailController-Bh-iruA9.js} +635 -625
- package/components/{CasinoTournamentsThumbnailController-CGjYTZgQ.js → CasinoTournamentsThumbnailController-C_UmM93X.js} +646 -636
- package/components/CasinoTournamentsThumbnailController-DumbAFtJ.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailDuration-pIEInnO4.js → CasinoTournamentsThumbnailDuration-BdYn3GAE.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-t1k3jbZL.js → CasinoTournamentsThumbnailDuration-CvQaCQSx.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-CVKENJpn.cjs → CasinoTournamentsThumbnailDuration-DhpGtOfX.cjs} +1 -1
- package/components/CasinoTournamentsThumbnailGames-7XsMB9bw.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailGames-vw3V4_Tw.js → CasinoTournamentsThumbnailGames-BQrM9ZbK.js} +38 -44
- package/components/{CasinoTournamentsThumbnailGames-CX1wFIWW.js → CasinoTournamentsThumbnailGames-CSNRUCF1.js} +38 -44
- package/components/{CasinoTournamentsThumbnailGamesSlider-BAGj1aof.js → CasinoTournamentsThumbnailGamesSlider-CRVAN_44.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-B-5t-67u.cjs → CasinoTournamentsThumbnailGamesSlider-CiELLIPc.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-E2fmTkLX.js → CasinoTournamentsThumbnailGamesSlider-DYacI8KM.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-CwVpy_C2.cjs → CasinoTournamentsThumbnailPrizes-Bz2MAwwY.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BuwkARx5.js → CasinoTournamentsThumbnailPrizes-CjvxX32X.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BuFGslL0.js → CasinoTournamentsThumbnailPrizes-DLZ6P1ro.js} +1 -1
- package/components/{CasinoTournamentsThumbnailRule-DrahAlJ2.js → CasinoTournamentsThumbnailRule-DDRqrU7z.js} +29 -29
- package/components/{CasinoTournamentsThumbnailRule-CWTAzVXr.js → CasinoTournamentsThumbnailRule-DSGQFh-b.js} +54 -54
- package/components/CasinoTournamentsThumbnailRule-JArPpDEq.cjs +10 -0
- package/es2015/casino-tournaments-page-controller.cjs +1 -1
- package/es2015/casino-tournaments-page-controller.js +1 -1
- package/esnext/casino-tournaments-page-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsPageController-Bn3fv9kB.cjs +0 -37
- package/components/CasinoTournamentsThumbnail-tRIhK8zI.cjs +0 -4
- package/components/CasinoTournamentsThumbnailController-BeGCJp8I.cjs +0 -1
- package/components/CasinoTournamentsThumbnailGames-Zfanu2dn.cjs +0 -1
- package/components/CasinoTournamentsThumbnailRule-CdboT21p.cjs +0 -10
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";const s=require("./CasinoTournamentsDetails-DVRJk4kX.cjs");require("../stencil/ui-skeleton-Caiy-FEL.cjs");var ms=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ps(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _s(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}//! moment.js
|
|
2
|
+
//! version : 2.29.4
|
|
3
|
+
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
|
+
//! license : MIT
|
|
5
|
+
//! momentjs.com
|
|
6
|
+
var ja;function _(){return ja.apply(null,arguments)}function gs(e){ja=e}function et(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ht(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function X(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Nr(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(X(e,t))return!1;return!0}function He(e){return e===void 0}function bt(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function pn(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Va(e,t){var n=[],r,a=e.length;for(r=0;r<a;++r)n.push(t(e[r],r));return n}function Et(e,t){for(var n in t)X(t,n)&&(e[n]=t[n]);return X(t,"toString")&&(e.toString=t.toString),X(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ot(e,t,n,r){return pi(e,t,n,r,!0).utc()}function bs(){return{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}}function R(e){return e._pf==null&&(e._pf=bs()),e._pf}var cr;Array.prototype.some?cr=Array.prototype.some:cr=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Lr(e){if(e._isValid==null){var t=R(e),n=cr.call(t.parsedDateParts,function(a){return a!=null}),r=!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&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r}return e._isValid}function Bn(e){var t=ot(NaN);return e!=null?Et(R(t),e):R(t).userInvalidated=!0,t}var sa=_.momentProperties=[],tr=!1;function Ar(e,t){var n,r,a,i=sa.length;if(He(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),He(t._i)||(e._i=t._i),He(t._f)||(e._f=t._f),He(t._l)||(e._l=t._l),He(t._strict)||(e._strict=t._strict),He(t._tzm)||(e._tzm=t._tzm),He(t._isUTC)||(e._isUTC=t._isUTC),He(t._offset)||(e._offset=t._offset),He(t._pf)||(e._pf=R(t)),He(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)r=sa[n],a=t[r],He(a)||(e[r]=a);return e}function _n(e){Ar(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),tr===!1&&(tr=!0,_.updateOffset(this),tr=!1)}function tt(e){return e instanceof _n||e!=null&&e._isAMomentObject!=null}function za(e){_.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+e)}function Xe(e,t){var n=!0;return Et(function(){if(_.deprecationHandler!=null&&_.deprecationHandler(null,e),n){var r=[],a,i,o,l=arguments.length;for(i=0;i<l;i++){if(a="",typeof arguments[i]=="object"){a+=`
|
|
7
|
+
[`+i+"] ";for(o in arguments[0])X(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[i];r.push(a)}za(e+`
|
|
8
|
+
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
9
|
+
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var oa={};function Xa(e,t){_.deprecationHandler!=null&&_.deprecationHandler(e,t),oa[e]||(za(t),oa[e]=!0)}_.suppressDeprecationWarnings=!1;_.deprecationHandler=null;function lt(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function ys(e){var t,n;for(n in e)X(e,n)&&(t=e[n],lt(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mr(e,t){var n=Et({},e),r;for(r in t)X(t,r)&&(Ht(e[r])&&Ht(t[r])?(n[r]={},Et(n[r],e[r]),Et(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)X(e,r)&&!X(t,r)&&Ht(e[r])&&(n[r]=Et({},n[r]));return n}function Br(e){e!=null&&this.set(e)}var pr;Object.keys?pr=Object.keys:pr=function(e){var t,n=[];for(t in e)X(e,t)&&n.push(t);return n};var vs={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ws(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return lt(r)?r.call(t,n):r}function st(e,t,n){var r=""+Math.abs(e),a=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var Fr=/(\[[^\[]*\])|(\\)?([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,vn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,nr={},Vt={};function S(e,t,n,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(Vt[e]=a),t&&(Vt[t[0]]=function(){return st(a.apply(this,arguments),t[1],t[2])}),n&&(Vt[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function Ts(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Ss(e){var t=e.match(Fr),n,r;for(n=0,r=t.length;n<r;n++)Vt[t[n]]?t[n]=Vt[t[n]]:t[n]=Ts(t[n]);return function(a){var i="",o;for(o=0;o<r;o++)i+=lt(t[o])?t[o].call(a,e):t[o];return i}}function Mn(e,t){return e.isValid()?(t=qa(t,e.localeData()),nr[t]=nr[t]||Ss(t),nr[t](e)):e.localeData().invalidDate()}function qa(e,t){var n=5;function r(a){return t.longDateFormat(a)||a}for(vn.lastIndex=0;n>=0&&vn.test(e);)e=e.replace(vn,r),vn.lastIndex=0,n-=1;return e}var Ms={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"};function xs(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Fr).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Es="Invalid date";function Ds(){return this._invalidDate}var Ps="%d",ks=/\d{1,2}/;function Os(e){return this._ordinal.replace("%d",e)}var Cs={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"};function Rs(e,t,n,r){var a=this._relativeTime[n];return lt(a)?a(e,t,n,r):a.replace(/%d/i,e)}function Hs(e,t){var n=this._relativeTime[e>0?"future":"past"];return lt(n)?n(t):n.replace(/%s/i,t)}var ln={};function Se(e,t){var n=e.toLowerCase();ln[n]=ln[n+"s"]=ln[t]=e}function qe(e){return typeof e=="string"?ln[e]||ln[e.toLowerCase()]:void 0}function Yr(e){var t={},n,r;for(r in e)X(e,r)&&(n=qe(r),n&&(t[n]=e[r]));return t}var Za={};function Me(e,t){Za[e]=t}function Is(e){var t=[],n;for(n in e)X(e,n)&&t.push({unit:n,priority:Za[n]});return t.sort(function(r,a){return r.priority-a.priority}),t}function Fn(e){return e%4===0&&e%100!==0||e%400===0}function Ve(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function L(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Ve(t)),n}function $t(e,t){return function(n){return n!=null?(Ja(this,e,n),_.updateOffset(this,t),this):On(this,e)}}function On(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ja(e,t,n){e.isValid()&&!isNaN(n)&&(t==="FullYear"&&Fn(e.year())&&e.month()===1&&e.date()===29?(n=L(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Vn(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ns(e){return e=qe(e),lt(this[e])?this[e]():this}function Ls(e,t){if(typeof e=="object"){e=Yr(e);var n=Is(e),r,a=n.length;for(r=0;r<a;r++)this[n[r].unit](e[n[r].unit])}else if(e=qe(e),lt(this[e]))return this[e](t);return this}var Qa=/\d/,Fe=/\d\d/,Ka=/\d{3}/,Ur=/\d{4}/,Yn=/[+-]?\d{6}/,ae=/\d\d?/,$a=/\d\d\d\d?/,ei=/\d\d\d\d\d\d?/,Un=/\d{1,3}/,Gr=/\d{1,4}/,Gn=/[+-]?\d{1,6}/,en=/\d+/,Wn=/[+-]?\d+/,As=/Z|[+-]\d\d:?\d\d/gi,jn=/Z|[+-]\d\d(?::?\d\d)?/gi,Bs=/[+-]?\d+(\.\d{1,3})?/,gn=/[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,Cn;Cn={};function v(e,t,n){Cn[e]=lt(t)?t:function(r,a){return r&&n?n:t}}function Fs(e,t){return X(Cn,e)?Cn[e](t._strict,t._locale):new RegExp(Ys(e))}function Ys(e){return Be(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,a,i){return n||r||a||i}))}function Be(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var _r={};function K(e,t){var n,r=t,a;for(typeof e=="string"&&(e=[e]),bt(t)&&(r=function(i,o){o[t]=L(i)}),a=e.length,n=0;n<a;n++)_r[e[n]]=r}function bn(e,t){K(e,function(n,r,a,i){a._w=a._w||{},t(n,a._w,a,i)})}function Us(e,t,n){t!=null&&X(_r,e)&&_r[e](t,n._a,n,e)}var Te=0,mt=1,it=2,pe=3,$e=4,pt=5,Rt=6,Gs=7,Ws=8;function js(e,t){return(e%t+t)%t}var he;Array.prototype.indexOf?he=Array.prototype.indexOf:he=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Vn(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=js(t,12);return e+=(t-n)/12,n===1?Fn(e)?29:28:31-n%7%2}S("M",["MM",2],"Mo",function(){return this.month()+1});S("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});S("MMMM",0,0,function(e){return this.localeData().months(this,e)});Se("month","M");Me("month",8);v("M",ae);v("MM",ae,Fe);v("MMM",function(e,t){return t.monthsShortRegex(e)});v("MMMM",function(e,t){return t.monthsRegex(e)});K(["M","MM"],function(e,t){t[mt]=L(e)-1});K(["MMM","MMMM"],function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);a!=null?t[mt]=a:R(n).invalidMonth=e});var Vs="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ti="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ni=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,zs=gn,Xs=gn;function qs(e,t){return e?et(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ni).test(t)?"format":"standalone"][e.month()]:et(this._months)?this._months:this._months.standalone}function Zs(e,t){return e?et(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ni.test(t)?"format":"standalone"][e.month()]:et(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Js(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=ot([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(a=he.call(this._shortMonthsParse,o),a!==-1?a:null):(a=he.call(this._longMonthsParse,o),a!==-1?a:null):t==="MMM"?(a=he.call(this._shortMonthsParse,o),a!==-1?a:(a=he.call(this._longMonthsParse,o),a!==-1?a:null)):(a=he.call(this._longMonthsParse,o),a!==-1?a:(a=he.call(this._shortMonthsParse,o),a!==-1?a:null))}function Qs(e,t,n){var r,a,i;if(this._monthsParseExact)return Js.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=ot([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ri(e,t){var n;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=L(t);else if(t=e.localeData().monthsParse(t),!bt(t))return e}return n=Math.min(e.date(),Vn(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ai(e){return e!=null?(ri(this,e),_.updateOffset(this,!0),this):On(this,"Month")}function Ks(){return Vn(this.year(),this.month())}function $s(e){return this._monthsParseExact?(X(this,"_monthsRegex")||ii.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(X(this,"_monthsShortRegex")||(this._monthsShortRegex=zs),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function eo(e){return this._monthsParseExact?(X(this,"_monthsRegex")||ii.call(this),e?this._monthsStrictRegex:this._monthsRegex):(X(this,"_monthsRegex")||(this._monthsRegex=Xs),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ii(){function e(o,l){return l.length-o.length}var t=[],n=[],r=[],a,i;for(a=0;a<12;a++)i=ot([2e3,a]),t.push(this.monthsShort(i,"")),n.push(this.months(i,"")),r.push(this.months(i,"")),r.push(this.monthsShort(i,""));for(t.sort(e),n.sort(e),r.sort(e),a=0;a<12;a++)t[a]=Be(t[a]),n[a]=Be(n[a]);for(a=0;a<24;a++)r[a]=Be(r[a]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}S("Y",0,0,function(){var e=this.year();return e<=9999?st(e,4):"+"+e});S(0,["YY",2],0,function(){return this.year()%100});S(0,["YYYY",4],0,"year");S(0,["YYYYY",5],0,"year");S(0,["YYYYYY",6,!0],0,"year");Se("year","y");Me("year",1);v("Y",Wn);v("YY",ae,Fe);v("YYYY",Gr,Ur);v("YYYYY",Gn,Yn);v("YYYYYY",Gn,Yn);K(["YYYYY","YYYYYY"],Te);K("YYYY",function(e,t){t[Te]=e.length===2?_.parseTwoDigitYear(e):L(e)});K("YY",function(e,t){t[Te]=_.parseTwoDigitYear(e)});K("Y",function(e,t){t[Te]=parseInt(e,10)});function un(e){return Fn(e)?366:365}_.parseTwoDigitYear=function(e){return L(e)+(L(e)>68?1900:2e3)};var si=$t("FullYear",!0);function to(){return Fn(this.year())}function no(e,t,n,r,a,i,o){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,a,i,o),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,a,i,o),l}function hn(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Rn(e,t,n){var r=7+t-n,a=(7+hn(e,0,r).getUTCDay()-t)%7;return-a+r-1}function oi(e,t,n,r,a){var i=(7+n-r)%7,o=Rn(e,r,a),l=1+7*(t-1)+i+o,u,h;return l<=0?(u=e-1,h=un(u)+l):l>un(e)?(u=e+1,h=l-un(e)):(u=e,h=l),{year:u,dayOfYear:h}}function dn(e,t,n){var r=Rn(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=e.year()-1,i=a+_t(o,t,n)):a>_t(e.year(),t,n)?(i=a-_t(e.year(),t,n),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function _t(e,t,n){var r=Rn(e,t,n),a=Rn(e+1,t,n);return(un(e)-r+a)/7}S("w",["ww",2],"wo","week");S("W",["WW",2],"Wo","isoWeek");Se("week","w");Se("isoWeek","W");Me("week",5);Me("isoWeek",5);v("w",ae);v("ww",ae,Fe);v("W",ae);v("WW",ae,Fe);bn(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=L(e)});function ro(e){return dn(e,this._week.dow,this._week.doy).week}var ao={dow:0,doy:6};function io(){return this._week.dow}function so(){return this._week.doy}function oo(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function lo(e){var t=dn(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}S("d",0,"do","day");S("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});S("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});S("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});S("e",0,0,"weekday");S("E",0,0,"isoWeekday");Se("day","d");Se("weekday","e");Se("isoWeekday","E");Me("day",11);Me("weekday",11);Me("isoWeekday",11);v("d",ae);v("e",ae);v("E",ae);v("dd",function(e,t){return t.weekdaysMinRegex(e)});v("ddd",function(e,t){return t.weekdaysShortRegex(e)});v("dddd",function(e,t){return t.weekdaysRegex(e)});bn(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);a!=null?t.d=a:R(n).invalidWeekday=e});bn(["d","e","E"],function(e,t,n,r){t[r]=L(e)});function uo(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function ho(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Wr(e,t){return e.slice(t,7).concat(e.slice(0,t))}var fo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),li="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),co="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),mo=gn,po=gn,_o=gn;function go(e,t){var n=et(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Wr(n,this._week.dow):e?n[e.day()]:n}function bo(e){return e===!0?Wr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function yo(e){return e===!0?Wr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function vo(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=ot([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(a=he.call(this._weekdaysParse,o),a!==-1?a:null):t==="ddd"?(a=he.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=he.call(this._minWeekdaysParse,o),a!==-1?a:null):t==="dddd"?(a=he.call(this._weekdaysParse,o),a!==-1||(a=he.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=he.call(this._minWeekdaysParse,o),a!==-1?a:null)):t==="ddd"?(a=he.call(this._shortWeekdaysParse,o),a!==-1||(a=he.call(this._weekdaysParse,o),a!==-1)?a:(a=he.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=he.call(this._minWeekdaysParse,o),a!==-1||(a=he.call(this._weekdaysParse,o),a!==-1)?a:(a=he.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function wo(e,t,n){var r,a,i;if(this._weekdaysParseExact)return vo.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=ot([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function To(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=uo(e,this.localeData()),this.add(e-t,"d")):t}function So(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Mo(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=ho(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function xo(e){return this._weekdaysParseExact?(X(this,"_weekdaysRegex")||jr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(X(this,"_weekdaysRegex")||(this._weekdaysRegex=mo),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Eo(e){return this._weekdaysParseExact?(X(this,"_weekdaysRegex")||jr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(X(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=po),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Do(e){return this._weekdaysParseExact?(X(this,"_weekdaysRegex")||jr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(X(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=_o),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function jr(){function e(d,g){return g.length-d.length}var t=[],n=[],r=[],a=[],i,o,l,u,h;for(i=0;i<7;i++)o=ot([2e3,1]).day(i),l=Be(this.weekdaysMin(o,"")),u=Be(this.weekdaysShort(o,"")),h=Be(this.weekdays(o,"")),t.push(l),n.push(u),r.push(h),a.push(l),a.push(u),a.push(h);t.sort(e),n.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Vr(){return this.hours()%12||12}function Po(){return this.hours()||24}S("H",["HH",2],0,"hour");S("h",["hh",2],0,Vr);S("k",["kk",2],0,Po);S("hmm",0,0,function(){return""+Vr.apply(this)+st(this.minutes(),2)});S("hmmss",0,0,function(){return""+Vr.apply(this)+st(this.minutes(),2)+st(this.seconds(),2)});S("Hmm",0,0,function(){return""+this.hours()+st(this.minutes(),2)});S("Hmmss",0,0,function(){return""+this.hours()+st(this.minutes(),2)+st(this.seconds(),2)});function ui(e,t){S(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ui("a",!0);ui("A",!1);Se("hour","h");Me("hour",13);function hi(e,t){return t._meridiemParse}v("a",hi);v("A",hi);v("H",ae);v("h",ae);v("k",ae);v("HH",ae,Fe);v("hh",ae,Fe);v("kk",ae,Fe);v("hmm",$a);v("hmmss",ei);v("Hmm",$a);v("Hmmss",ei);K(["H","HH"],pe);K(["k","kk"],function(e,t,n){var r=L(e);t[pe]=r===24?0:r});K(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});K(["h","hh"],function(e,t,n){t[pe]=L(e),R(n).bigHour=!0});K("hmm",function(e,t,n){var r=e.length-2;t[pe]=L(e.substr(0,r)),t[$e]=L(e.substr(r)),R(n).bigHour=!0});K("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[pe]=L(e.substr(0,r)),t[$e]=L(e.substr(r,2)),t[pt]=L(e.substr(a)),R(n).bigHour=!0});K("Hmm",function(e,t,n){var r=e.length-2;t[pe]=L(e.substr(0,r)),t[$e]=L(e.substr(r))});K("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[pe]=L(e.substr(0,r)),t[$e]=L(e.substr(r,2)),t[pt]=L(e.substr(a))});function ko(e){return(e+"").toLowerCase().charAt(0)==="p"}var Oo=/[ap]\.?m?\.?/i,Co=$t("Hours",!0);function Ro(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var di={calendar:vs,longDateFormat:Ms,invalidDate:Es,ordinal:Ps,dayOfMonthOrdinalParse:ks,relativeTime:Cs,months:Vs,monthsShort:ti,week:ao,weekdays:fo,weekdaysMin:co,weekdaysShort:li,meridiemParse:Oo},ie={},an={},fn;function Ho(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function la(e){return e&&e.toLowerCase().replace("_","-")}function Io(e){for(var t=0,n,r,a,i;t<e.length;){for(i=la(e[t]).split("-"),n=i.length,r=la(e[t+1]),r=r?r.split("-"):null;n>0;){if(a=zn(i.slice(0,n).join("-")),a)return a;if(r&&r.length>=n&&Ho(i,r)>=n-1)break;n--}t++}return fn}function No(e){return e.match("^[^/\\\\]*$")!=null}function zn(e){var t=null,n;if(ie[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&No(e))try{t=fn._abbr,n=_s,n("./locale/"+e),kt(t)}catch(r){ie[e]=null}return ie[e]}function kt(e,t){var n;return e&&(He(t)?n=vt(e):n=zr(e,t),n?fn=n:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),fn._abbr}function zr(e,t){if(t!==null){var n,r=di;if(t.abbr=e,ie[e]!=null)Xa("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=ie[e]._config;else if(t.parentLocale!=null)if(ie[t.parentLocale]!=null)r=ie[t.parentLocale]._config;else if(n=zn(t.parentLocale),n!=null)r=n._config;else return an[t.parentLocale]||(an[t.parentLocale]=[]),an[t.parentLocale].push({name:e,config:t}),null;return ie[e]=new Br(mr(r,t)),an[e]&&an[e].forEach(function(a){zr(a.name,a.config)}),kt(e),ie[e]}else return delete ie[e],null}function Lo(e,t){if(t!=null){var n,r,a=di;ie[e]!=null&&ie[e].parentLocale!=null?ie[e].set(mr(ie[e]._config,t)):(r=zn(e),r!=null&&(a=r._config),t=mr(a,t),r==null&&(t.abbr=e),n=new Br(t),n.parentLocale=ie[e],ie[e]=n),kt(e)}else ie[e]!=null&&(ie[e].parentLocale!=null?(ie[e]=ie[e].parentLocale,e===kt()&&kt(e)):ie[e]!=null&&delete ie[e]);return ie[e]}function vt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return fn;if(!et(e)){if(t=zn(e),t)return t;e=[e]}return Io(e)}function Ao(){return pr(ie)}function Xr(e){var t,n=e._a;return n&&R(e).overflow===-2&&(t=n[mt]<0||n[mt]>11?mt:n[it]<1||n[it]>Vn(n[Te],n[mt])?it:n[pe]<0||n[pe]>24||n[pe]===24&&(n[$e]!==0||n[pt]!==0||n[Rt]!==0)?pe:n[$e]<0||n[$e]>59?$e:n[pt]<0||n[pt]>59?pt:n[Rt]<0||n[Rt]>999?Rt:-1,R(e)._overflowDayOfYear&&(t<Te||t>it)&&(t=it),R(e)._overflowWeeks&&t===-1&&(t=Gs),R(e)._overflowWeekday&&t===-1&&(t=Ws),R(e).overflow=t),e}var Bo=/^\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)?)?$/,Fo=/^\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)?)?$/,Yo=/Z|[+-]\d\d(?::?\d\d)?/,wn=[["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]],rr=[["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/]],Uo=/^\/?Date\((-?\d+)/i,Go=/^(?:(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}))$/,Wo={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fi(e){var t,n,r=e._i,a=Bo.exec(r)||Fo.exec(r),i,o,l,u,h=wn.length,d=rr.length;if(a){for(R(e).iso=!0,t=0,n=h;t<n;t++)if(wn[t][1].exec(a[1])){o=wn[t][0],i=wn[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(a[3]){for(t=0,n=d;t<n;t++)if(rr[t][1].exec(a[3])){l=(a[2]||" ")+rr[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(a[4])if(Yo.exec(a[4]))u="Z";else{e._isValid=!1;return}e._f=o+(l||"")+(u||""),Zr(e)}else e._isValid=!1}function jo(e,t,n,r,a,i){var o=[Vo(e),ti.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function Vo(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function zo(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Xo(e,t,n){if(e){var r=li.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return R(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function qo(e,t,n){if(e)return Wo[e];if(t)return 0;var r=parseInt(n,10),a=r%100,i=(r-a)/100;return i*60+a}function ci(e){var t=Go.exec(zo(e._i)),n;if(t){if(n=jo(t[4],t[3],t[2],t[5],t[6],t[7]),!Xo(t[1],n,e))return;e._a=n,e._tzm=qo(t[8],t[9],t[10]),e._d=hn.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),R(e).rfc2822=!0}else e._isValid=!1}function Zo(e){var t=Uo.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(fi(e),e._isValid===!1)delete e._isValid;else return;if(ci(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:_.createFromInputFallback(e)}_.createFromInputFallback=Xe("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":""))});function Wt(e,t,n){return e!=null?e:t!=null?t:n}function Jo(e){var t=new Date(_.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function qr(e){var t,n,r=[],a,i,o;if(!e._d){for(a=Jo(e),e._w&&e._a[it]==null&&e._a[mt]==null&&Qo(e),e._dayOfYear!=null&&(o=Wt(e._a[Te],a[Te]),(e._dayOfYear>un(o)||e._dayOfYear===0)&&(R(e)._overflowDayOfYear=!0),n=hn(o,0,e._dayOfYear),e._a[mt]=n.getUTCMonth(),e._a[it]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[pe]===24&&e._a[$e]===0&&e._a[pt]===0&&e._a[Rt]===0&&(e._nextDay=!0,e._a[pe]=0),e._d=(e._useUTC?hn:no).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[pe]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==i&&(R(e).weekdayMismatch=!0)}}function Qo(e){var t,n,r,a,i,o,l,u,h;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,n=Wt(t.GG,e._a[Te],dn(re(),1,4).year),r=Wt(t.W,1),a=Wt(t.E,1),(a<1||a>7)&&(u=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,h=dn(re(),i,o),n=Wt(t.gg,e._a[Te],h.year),r=Wt(t.w,h.week),t.d!=null?(a=t.d,(a<0||a>6)&&(u=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(u=!0)):a=i),r<1||r>_t(n,i,o)?R(e)._overflowWeeks=!0:u!=null?R(e)._overflowWeekday=!0:(l=oi(n,r,a,i,o),e._a[Te]=l.year,e._dayOfYear=l.dayOfYear)}_.ISO_8601=function(){};_.RFC_2822=function(){};function Zr(e){if(e._f===_.ISO_8601){fi(e);return}if(e._f===_.RFC_2822){ci(e);return}e._a=[],R(e).empty=!0;var t=""+e._i,n,r,a,i,o,l=t.length,u=0,h,d;for(a=qa(e._f,e._locale).match(Fr)||[],d=a.length,n=0;n<d;n++)i=a[n],r=(t.match(Fs(i,e))||[])[0],r&&(o=t.substr(0,t.indexOf(r)),o.length>0&&R(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),u+=r.length),Vt[i]?(r?R(e).empty=!1:R(e).unusedTokens.push(i),Us(i,r,e)):e._strict&&!r&&R(e).unusedTokens.push(i);R(e).charsLeftOver=l-u,t.length>0&&R(e).unusedInput.push(t),e._a[pe]<=12&&R(e).bigHour===!0&&e._a[pe]>0&&(R(e).bigHour=void 0),R(e).parsedDateParts=e._a.slice(0),R(e).meridiem=e._meridiem,e._a[pe]=Ko(e._locale,e._a[pe],e._meridiem),h=R(e).era,h!==null&&(e._a[Te]=e._locale.erasConvertYear(h,e._a[Te])),qr(e),Xr(e)}function Ko(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function $o(e){var t,n,r,a,i,o,l=!1,u=e._f.length;if(u===0){R(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<u;a++)i=0,o=!1,t=Ar({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],Zr(t),Lr(t)&&(o=!0),i+=R(t).charsLeftOver,i+=R(t).unusedTokens.length*10,R(t).score=i,l?i<r&&(r=i,n=t):(r==null||i<r||o)&&(r=i,n=t,o&&(l=!0));Et(e,n||t)}function el(e){if(!e._d){var t=Yr(e._i),n=t.day===void 0?t.date:t.day;e._a=Va([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),qr(e)}}function tl(e){var t=new _n(Xr(mi(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function mi(e){var t=e._i,n=e._f;return e._locale=e._locale||vt(e._l),t===null||n===void 0&&t===""?Bn({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),tt(t)?new _n(Xr(t)):(pn(t)?e._d=t:et(n)?$o(e):n?Zr(e):nl(e),Lr(e)||(e._d=null),e))}function nl(e){var t=e._i;He(t)?e._d=new Date(_.now()):pn(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Zo(e):et(t)?(e._a=Va(t.slice(0),function(n){return parseInt(n,10)}),qr(e)):Ht(t)?el(e):bt(t)?e._d=new Date(t):_.createFromInputFallback(e)}function pi(e,t,n,r,a){var i={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Ht(e)&&Nr(e)||et(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=n,i._i=e,i._f=t,i._strict=r,tl(i)}function re(e,t,n,r){return pi(e,t,n,r,!1)}var rl=Xe("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=re.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Bn()}),al=Xe("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=re.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Bn()});function _i(e,t){var n,r;if(t.length===1&&et(t[0])&&(t=t[0]),!t.length)return re();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function il(){var e=[].slice.call(arguments,0);return _i("isBefore",e)}function sl(){var e=[].slice.call(arguments,0);return _i("isAfter",e)}var ol=function(){return Date.now?Date.now():+new Date},sn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ll(e){var t,n=!1,r,a=sn.length;for(t in e)if(X(e,t)&&!(he.call(sn,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[sn[r]]){if(n)return!1;parseFloat(e[sn[r]])!==L(e[sn[r]])&&(n=!0)}return!0}function ul(){return this._isValid}function hl(){return nt(NaN)}function Xn(e){var t=Yr(e),n=t.year||0,r=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,l=t.hour||0,u=t.minute||0,h=t.second||0,d=t.millisecond||0;this._isValid=ll(t),this._milliseconds=+d+h*1e3+u*6e4+l*1e3*60*60,this._days=+o+i*7,this._months=+a+r*3+n*12,this._data={},this._locale=vt(),this._bubble()}function xn(e){return e instanceof Xn}function gr(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function dl(e,t,n){var r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,o;for(o=0;o<r;o++)L(e[o])!==L(t[o])&&i++;return i+a}function gi(e,t){S(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+st(~~(n/60),2)+t+st(~~n%60,2)})}gi("Z",":");gi("ZZ","");v("Z",jn);v("ZZ",jn);K(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Jr(jn,e)});var fl=/([\+\-]|\d\d)/gi;function Jr(e,t){var n=(t||"").match(e),r,a,i;return n===null?null:(r=n[n.length-1]||[],a=(r+"").match(fl)||["-",0,0],i=+(a[1]*60)+L(a[2]),i===0?0:a[0]==="+"?i:-i)}function Qr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(tt(e)||pn(e)?e.valueOf():re(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),_.updateOffset(n,!1),n):re(e).local()}function br(e){return-Math.round(e._d.getTimezoneOffset())}_.updateOffset=function(){};function cl(e,t,n){var r=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Jr(jn,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(a=br(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?vi(this,nt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:br(this)}function ml(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function pl(e){return this.utcOffset(0,e)}function _l(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(br(this),"m")),this}function gl(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Jr(As,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function bl(e){return this.isValid()?(e=e?re(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function yl(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function vl(){if(!He(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Ar(e,this),e=mi(e),e._a?(t=e._isUTC?ot(e._a):re(e._a),this._isDSTShifted=this.isValid()&&dl(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function wl(){return this.isValid()?!this._isUTC:!1}function Tl(){return this.isValid()?this._isUTC:!1}function bi(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Sl=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ml=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function nt(e,t){var n=e,r=null,a,i,o;return xn(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:bt(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Sl.exec(e))?(a=r[1]==="-"?-1:1,n={y:0,d:L(r[it])*a,h:L(r[pe])*a,m:L(r[$e])*a,s:L(r[pt])*a,ms:L(gr(r[Rt]*1e3))*a}):(r=Ml.exec(e))?(a=r[1]==="-"?-1:1,n={y:Ct(r[2],a),M:Ct(r[3],a),w:Ct(r[4],a),d:Ct(r[5],a),h:Ct(r[6],a),m:Ct(r[7],a),s:Ct(r[8],a)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=xl(re(n.from),re(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),i=new Xn(n),xn(e)&&X(e,"_locale")&&(i._locale=e._locale),xn(e)&&X(e,"_isValid")&&(i._isValid=e._isValid),i}nt.fn=Xn.prototype;nt.invalid=hl;function Ct(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function ua(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function xl(e,t){var n;return e.isValid()&&t.isValid()?(t=Qr(t,e),e.isBefore(t)?n=ua(e,t):(n=ua(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function yi(e,t){return function(n,r){var a,i;return r!==null&&!isNaN(+r)&&(Xa(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),a=nt(n,r),vi(this,a,e),this}}function vi(e,t,n,r){var a=t._milliseconds,i=gr(t._days),o=gr(t._months);e.isValid()&&(r=r==null?!0:r,o&&ri(e,On(e,"Month")+o*n),i&&Ja(e,"Date",On(e,"Date")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&_.updateOffset(e,i||o))}var El=yi(1,"add"),Dl=yi(-1,"subtract");function wi(e){return typeof e=="string"||e instanceof String}function Pl(e){return tt(e)||pn(e)||wi(e)||bt(e)||Ol(e)||kl(e)||e===null||e===void 0}function kl(e){var t=Ht(e)&&!Nr(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;a<o;a+=1)i=r[a],n=n||X(e,i);return t&&n}function Ol(e){var t=et(e),n=!1;return t&&(n=e.filter(function(r){return!bt(r)&&wi(e)}).length===0),t&&n}function Cl(e){var t=Ht(e)&&!Nr(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<r.length;a+=1)i=r[a],n=n||X(e,i);return t&&n}function Rl(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Hl(e,t){arguments.length===1&&(arguments[0]?Pl(arguments[0])?(e=arguments[0],t=void 0):Cl(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||re(),r=Qr(n,this).startOf("day"),a=_.calendarFormat(this,r)||"sameElse",i=t&&(lt(t[a])?t[a].call(this,n):t[a]);return this.format(i||this.localeData().calendar(a,this,re(n)))}function Il(){return new _n(this)}function Nl(e,t){var n=tt(e)?e:re(e);return this.isValid()&&n.isValid()?(t=qe(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Ll(e,t){var n=tt(e)?e:re(e);return this.isValid()&&n.isValid()?(t=qe(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Al(e,t,n,r){var a=tt(e)?e:re(e),i=tt(t)?t:re(t);return this.isValid()&&a.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(a,n):!this.isBefore(a,n))&&(r[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function Bl(e,t){var n=tt(e)?e:re(e),r;return this.isValid()&&n.isValid()?(t=qe(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function Fl(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Yl(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ul(e,t,n){var r,a,i;if(!this.isValid())return NaN;if(r=Qr(e,this),!r.isValid())return NaN;switch(a=(r.utcOffset()-this.utcOffset())*6e4,t=qe(t),t){case"year":i=En(this,r)/12;break;case"month":i=En(this,r);break;case"quarter":i=En(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-a)/864e5;break;case"week":i=(this-r-a)/6048e5;break;default:i=this-r}return n?i:Ve(i)}function En(e,t){if(e.date()<t.date())return-En(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),a,i;return t-r<0?(a=e.clone().add(n-1,"months"),i=(t-r)/(r-a)):(a=e.clone().add(n+1,"months"),i=(t-r)/(a-r)),-(n+i)||0}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Gl(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Wl(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Mn(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):lt(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Mn(n,"Z")):Mn(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function jl(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+a+i)}function Vl(e){e||(e=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var t=Mn(this,e);return this.localeData().postformat(t)}function zl(e,t){return this.isValid()&&(tt(e)&&e.isValid()||re(e).isValid())?nt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Xl(e){return this.from(re(),e)}function ql(e,t){return this.isValid()&&(tt(e)&&e.isValid()||re(e).isValid())?nt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Zl(e){return this.to(re(),e)}function Ti(e){var t;return e===void 0?this._locale._abbr:(t=vt(e),t!=null&&(this._locale=t),this)}var Si=Xe("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Mi(){return this._locale}var Hn=1e3,zt=60*Hn,In=60*zt,xi=(365*400+97)*24*In;function Xt(e,t){return(e%t+t)%t}function Ei(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-xi:new Date(e,t,n).valueOf()}function Di(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-xi:Date.UTC(e,t,n)}function Jl(e){var t,n;if(e=qe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Di:Ei,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-=Xt(t+(this._isUTC?0:this.utcOffset()*zt),In);break;case"minute":t=this._d.valueOf(),t-=Xt(t,zt);break;case"second":t=this._d.valueOf(),t-=Xt(t,Hn);break}return this._d.setTime(t),_.updateOffset(this,!0),this}function Ql(e){var t,n;if(e=qe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Di:Ei,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+=In-Xt(t+(this._isUTC?0:this.utcOffset()*zt),In)-1;break;case"minute":t=this._d.valueOf(),t+=zt-Xt(t,zt)-1;break;case"second":t=this._d.valueOf(),t+=Hn-Xt(t,Hn)-1;break}return this._d.setTime(t),_.updateOffset(this,!0),this}function Kl(){return this._d.valueOf()-(this._offset||0)*6e4}function $l(){return Math.floor(this.valueOf()/1e3)}function eu(){return new Date(this.valueOf())}function tu(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function nu(){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()}}function ru(){return this.isValid()?this.toISOString():null}function au(){return Lr(this)}function iu(){return Et({},R(this))}function su(){return R(this).overflow}function ou(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}S("N",0,0,"eraAbbr");S("NN",0,0,"eraAbbr");S("NNN",0,0,"eraAbbr");S("NNNN",0,0,"eraName");S("NNNNN",0,0,"eraNarrow");S("y",["y",1],"yo","eraYear");S("y",["yy",2],0,"eraYear");S("y",["yyy",3],0,"eraYear");S("y",["yyyy",4],0,"eraYear");v("N",Kr);v("NN",Kr);v("NNN",Kr);v("NNNN",bu);v("NNNNN",yu);K(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?R(n).era=a:R(n).invalidEra=e});v("y",en);v("yy",en);v("yyy",en);v("yyyy",en);v("yo",vu);K(["y","yy","yyy","yyyy"],Te);K(["yo"],function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Te]=n._locale.eraYearOrdinalParse(e,a):t[Te]=parseInt(e,10)});function lu(e,t){var n,r,a,i=this._eras||vt("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":a=_(i[n].since).startOf("day"),i[n].since=a.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":a=_(i[n].until).startOf("day").valueOf(),i[n].until=a.valueOf();break}}return i}function uu(e,t,n){var r,a,i=this.eras(),o,l,u;for(e=e.toUpperCase(),r=0,a=i.length;r<a;++r)if(o=i[r].name.toUpperCase(),l=i[r].abbr.toUpperCase(),u=i[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[r];break;case"NNNN":if(o===e)return i[r];break;case"NNNNN":if(u===e)return i[r];break}else if([o,l,u].indexOf(e)>=0)return i[r]}function hu(e,t){var n=e.since<=e.until?1:-1;return t===void 0?_(e.since).year():_(e.since).year()+(t-e.offset)*n}function du(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function fu(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function cu(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function mu(){var e,t,n,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-_(a[e].since).year())*n+a[e].offset;return this.year()}function pu(e){return X(this,"_erasNameRegex")||$r.call(this),e?this._erasNameRegex:this._erasRegex}function _u(e){return X(this,"_erasAbbrRegex")||$r.call(this),e?this._erasAbbrRegex:this._erasRegex}function gu(e){return X(this,"_erasNarrowRegex")||$r.call(this),e?this._erasNarrowRegex:this._erasRegex}function Kr(e,t){return t.erasAbbrRegex(e)}function bu(e,t){return t.erasNameRegex(e)}function yu(e,t){return t.erasNarrowRegex(e)}function vu(e,t){return t._eraYearOrdinalRegex||en}function $r(){var e=[],t=[],n=[],r=[],a,i,o=this.eras();for(a=0,i=o.length;a<i;++a)t.push(Be(o[a].name)),e.push(Be(o[a].abbr)),n.push(Be(o[a].narrow)),r.push(Be(o[a].name)),r.push(Be(o[a].abbr)),r.push(Be(o[a].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")}S(0,["gg",2],0,function(){return this.weekYear()%100});S(0,["GG",2],0,function(){return this.isoWeekYear()%100});function qn(e,t){S(0,[e,e.length],0,t)}qn("gggg","weekYear");qn("ggggg","weekYear");qn("GGGG","isoWeekYear");qn("GGGGG","isoWeekYear");Se("weekYear","gg");Se("isoWeekYear","GG");Me("weekYear",1);Me("isoWeekYear",1);v("G",Wn);v("g",Wn);v("GG",ae,Fe);v("gg",ae,Fe);v("GGGG",Gr,Ur);v("gggg",Gr,Ur);v("GGGGG",Gn,Yn);v("ggggg",Gn,Yn);bn(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=L(e)});bn(["gg","GG"],function(e,t,n,r){t[r]=_.parseTwoDigitYear(e)});function wu(e){return Pi.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Tu(e){return Pi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Su(){return _t(this.year(),1,4)}function Mu(){return _t(this.isoWeekYear(),1,4)}function xu(){var e=this.localeData()._week;return _t(this.year(),e.dow,e.doy)}function Eu(){var e=this.localeData()._week;return _t(this.weekYear(),e.dow,e.doy)}function Pi(e,t,n,r,a){var i;return e==null?dn(this,r,a).year:(i=_t(e,r,a),t>i&&(t=i),Du.call(this,e,t,n,r,a))}function Du(e,t,n,r,a){var i=oi(e,t,n,r,a),o=hn(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}S("Q",0,"Qo","quarter");Se("quarter","Q");Me("quarter",7);v("Q",Qa);K("Q",function(e,t){t[mt]=(L(e)-1)*3});function Pu(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}S("D",["DD",2],"Do","date");Se("date","D");Me("date",9);v("D",ae);v("DD",ae,Fe);v("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});K(["D","DD"],it);K("Do",function(e,t){t[it]=L(e.match(ae)[0])});var ki=$t("Date",!0);S("DDD",["DDDD",3],"DDDo","dayOfYear");Se("dayOfYear","DDD");Me("dayOfYear",4);v("DDD",Un);v("DDDD",Ka);K(["DDD","DDDD"],function(e,t,n){n._dayOfYear=L(e)});function ku(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}S("m",["mm",2],0,"minute");Se("minute","m");Me("minute",14);v("m",ae);v("mm",ae,Fe);K(["m","mm"],$e);var Ou=$t("Minutes",!1);S("s",["ss",2],0,"second");Se("second","s");Me("second",15);v("s",ae);v("ss",ae,Fe);K(["s","ss"],pt);var Cu=$t("Seconds",!1);S("S",0,0,function(){return~~(this.millisecond()/100)});S(0,["SS",2],0,function(){return~~(this.millisecond()/10)});S(0,["SSS",3],0,"millisecond");S(0,["SSSS",4],0,function(){return this.millisecond()*10});S(0,["SSSSS",5],0,function(){return this.millisecond()*100});S(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});S(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});S(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});S(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Se("millisecond","ms");Me("millisecond",16);v("S",Un,Qa);v("SS",Un,Fe);v("SSS",Un,Ka);var Dt,Oi;for(Dt="SSSS";Dt.length<=9;Dt+="S")v(Dt,en);function Ru(e,t){t[Rt]=L(("0."+e)*1e3)}for(Dt="S";Dt.length<=9;Dt+="S")K(Dt,Ru);Oi=$t("Milliseconds",!1);S("z",0,0,"zoneAbbr");S("zz",0,0,"zoneName");function Hu(){return this._isUTC?"UTC":""}function Iu(){return this._isUTC?"Coordinated Universal Time":""}var p=_n.prototype;p.add=El;p.calendar=Hl;p.clone=Il;p.diff=Ul;p.endOf=Ql;p.format=Vl;p.from=zl;p.fromNow=Xl;p.to=ql;p.toNow=Zl;p.get=Ns;p.invalidAt=su;p.isAfter=Nl;p.isBefore=Ll;p.isBetween=Al;p.isSame=Bl;p.isSameOrAfter=Fl;p.isSameOrBefore=Yl;p.isValid=au;p.lang=Si;p.locale=Ti;p.localeData=Mi;p.max=al;p.min=rl;p.parsingFlags=iu;p.set=Ls;p.startOf=Jl;p.subtract=Dl;p.toArray=tu;p.toObject=nu;p.toDate=eu;p.toISOString=Wl;p.inspect=jl;typeof Symbol!="undefined"&&Symbol.for!=null&&(p[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});p.toJSON=ru;p.toString=Gl;p.unix=$l;p.valueOf=Kl;p.creationData=ou;p.eraName=du;p.eraNarrow=fu;p.eraAbbr=cu;p.eraYear=mu;p.year=si;p.isLeapYear=to;p.weekYear=wu;p.isoWeekYear=Tu;p.quarter=p.quarters=Pu;p.month=ai;p.daysInMonth=Ks;p.week=p.weeks=oo;p.isoWeek=p.isoWeeks=lo;p.weeksInYear=xu;p.weeksInWeekYear=Eu;p.isoWeeksInYear=Su;p.isoWeeksInISOWeekYear=Mu;p.date=ki;p.day=p.days=To;p.weekday=So;p.isoWeekday=Mo;p.dayOfYear=ku;p.hour=p.hours=Co;p.minute=p.minutes=Ou;p.second=p.seconds=Cu;p.millisecond=p.milliseconds=Oi;p.utcOffset=cl;p.utc=pl;p.local=_l;p.parseZone=gl;p.hasAlignedHourOffset=bl;p.isDST=yl;p.isLocal=wl;p.isUtcOffset=Tl;p.isUtc=bi;p.isUTC=bi;p.zoneAbbr=Hu;p.zoneName=Iu;p.dates=Xe("dates accessor is deprecated. Use date instead.",ki);p.months=Xe("months accessor is deprecated. Use month instead",ai);p.years=Xe("years accessor is deprecated. Use year instead",si);p.zone=Xe("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ml);p.isDSTShifted=Xe("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",vl);function Nu(e){return re(e*1e3)}function Lu(){return re.apply(null,arguments).parseZone()}function Ci(e){return e}var q=Br.prototype;q.calendar=ws;q.longDateFormat=xs;q.invalidDate=Ds;q.ordinal=Os;q.preparse=Ci;q.postformat=Ci;q.relativeTime=Rs;q.pastFuture=Hs;q.set=ys;q.eras=lu;q.erasParse=uu;q.erasConvertYear=hu;q.erasAbbrRegex=_u;q.erasNameRegex=pu;q.erasNarrowRegex=gu;q.months=qs;q.monthsShort=Zs;q.monthsParse=Qs;q.monthsRegex=eo;q.monthsShortRegex=$s;q.week=ro;q.firstDayOfYear=so;q.firstDayOfWeek=io;q.weekdays=go;q.weekdaysMin=yo;q.weekdaysShort=bo;q.weekdaysParse=wo;q.weekdaysRegex=xo;q.weekdaysShortRegex=Eo;q.weekdaysMinRegex=Do;q.isPM=ko;q.meridiem=Ro;function Nn(e,t,n,r){var a=vt(),i=ot().set(r,t);return a[n](i,e)}function Ri(e,t,n){if(bt(e)&&(t=e,e=void 0),e=e||"",t!=null)return Nn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Nn(e,r,n,"month");return a}function ea(e,t,n,r){typeof e=="boolean"?(bt(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,bt(t)&&(n=t,t=void 0),t=t||"");var a=vt(),i=e?a._week.dow:0,o,l=[];if(n!=null)return Nn(t,(n+i)%7,r,"day");for(o=0;o<7;o++)l[o]=Nn(t,(o+i)%7,r,"day");return l}function Au(e,t){return Ri(e,t,"months")}function Bu(e,t){return Ri(e,t,"monthsShort")}function Fu(e,t,n){return ea(e,t,n,"weekdays")}function Yu(e,t,n){return ea(e,t,n,"weekdaysShort")}function Uu(e,t,n){return ea(e,t,n,"weekdaysMin")}kt("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,n=L(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});_.lang=Xe("moment.lang is deprecated. Use moment.locale instead.",kt);_.langData=Xe("moment.langData is deprecated. Use moment.localeData instead.",vt);var ft=Math.abs;function Gu(){var e=this._data;return this._milliseconds=ft(this._milliseconds),this._days=ft(this._days),this._months=ft(this._months),e.milliseconds=ft(e.milliseconds),e.seconds=ft(e.seconds),e.minutes=ft(e.minutes),e.hours=ft(e.hours),e.months=ft(e.months),e.years=ft(e.years),this}function Hi(e,t,n,r){var a=nt(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Wu(e,t){return Hi(this,e,t,1)}function ju(e,t){return Hi(this,e,t,-1)}function ha(e){return e<0?Math.floor(e):Math.ceil(e)}function Vu(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,a,i,o,l,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=ha(yr(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,a=Ve(e/1e3),r.seconds=a%60,i=Ve(a/60),r.minutes=i%60,o=Ve(i/60),r.hours=o%24,t+=Ve(o/24),u=Ve(Ii(t)),n+=u,t-=ha(yr(u)),l=Ve(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function Ii(e){return e*4800/146097}function yr(e){return e*146097/4800}function zu(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=qe(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Ii(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(yr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Xu(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+L(this._months/12)*31536e6:NaN}function wt(e){return function(){return this.as(e)}}var qu=wt("ms"),Zu=wt("s"),Ju=wt("m"),Qu=wt("h"),Ku=wt("d"),$u=wt("w"),eh=wt("M"),th=wt("Q"),nh=wt("y");function rh(){return nt(this)}function ah(e){return e=qe(e),this.isValid()?this[e+"s"]():NaN}function It(e){return function(){return this.isValid()?this._data[e]:NaN}}var ih=It("milliseconds"),sh=It("seconds"),oh=It("minutes"),lh=It("hours"),uh=It("days"),hh=It("months"),dh=It("years");function fh(){return Ve(this.days()/7)}var ct=Math.round,jt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ch(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function mh(e,t,n,r){var a=nt(e).abs(),i=ct(a.as("s")),o=ct(a.as("m")),l=ct(a.as("h")),u=ct(a.as("d")),h=ct(a.as("M")),d=ct(a.as("w")),g=ct(a.as("y")),m=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||o<=1&&["m"]||o<n.m&&["mm",o]||l<=1&&["h"]||l<n.h&&["hh",l]||u<=1&&["d"]||u<n.d&&["dd",u];return n.w!=null&&(m=m||d<=1&&["w"]||d<n.w&&["ww",d]),m=m||h<=1&&["M"]||h<n.M&&["MM",h]||g<=1&&["y"]||["yy",g],m[2]=t,m[3]=+e>0,m[4]=r,ch.apply(null,m)}function ph(e){return e===void 0?ct:typeof e=="function"?(ct=e,!0):!1}function _h(e,t){return jt[e]===void 0?!1:t===void 0?jt[e]:(jt[e]=t,e==="s"&&(jt.ss=t-1),!0)}function gh(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=jt,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},jt,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),i=mh(this,!n,r,a),n&&(i=a.pastFuture(+this,i)),a.postformat(i)}var ar=Math.abs;function Ut(e){return(e>0)-(e<0)||+e}function Zn(){if(!this.isValid())return this.localeData().invalidDate();var e=ar(this._milliseconds)/1e3,t=ar(this._days),n=ar(this._months),r,a,i,o,l=this.asSeconds(),u,h,d,g;return l?(r=Ve(e/60),a=Ve(r/60),e%=60,r%=60,i=Ve(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=l<0?"-":"",h=Ut(this._months)!==Ut(l)?"-":"",d=Ut(this._days)!==Ut(l)?"-":"",g=Ut(this._milliseconds)!==Ut(l)?"-":"",u+"P"+(i?h+i+"Y":"")+(n?h+n+"M":"")+(t?d+t+"D":"")+(a||r||e?"T":"")+(a?g+a+"H":"")+(r?g+r+"M":"")+(e?g+o+"S":"")):"P0D"}var G=Xn.prototype;G.isValid=ul;G.abs=Gu;G.add=Wu;G.subtract=ju;G.as=zu;G.asMilliseconds=qu;G.asSeconds=Zu;G.asMinutes=Ju;G.asHours=Qu;G.asDays=Ku;G.asWeeks=$u;G.asMonths=eh;G.asQuarters=th;G.asYears=nh;G.valueOf=Xu;G._bubble=Vu;G.clone=rh;G.get=ah;G.milliseconds=ih;G.seconds=sh;G.minutes=oh;G.hours=lh;G.days=uh;G.weeks=fh;G.months=hh;G.years=dh;G.humanize=gh;G.toISOString=Zn;G.toString=Zn;G.toJSON=Zn;G.locale=Ti;G.localeData=Mi;G.toIsoString=Xe("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zn);G.lang=Si;S("X",0,0,"unix");S("x",0,0,"valueOf");v("x",Wn);v("X",Bs);K("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});K("x",function(e,t,n){n._d=new Date(L(e))});//! moment.js
|
|
10
|
+
_.version="2.29.4";gs(re);_.fn=p;_.min=il;_.max=sl;_.now=ol;_.utc=ot;_.unix=Nu;_.months=Au;_.isDate=pn;_.locale=kt;_.invalid=Bn;_.duration=nt;_.isMoment=tt;_.weekdays=Fu;_.parseZone=Lu;_.localeData=vt;_.isDuration=xn;_.monthsShort=Bu;_.weekdaysMin=Uu;_.defineLocale=zr;_.updateLocale=Lo;_.locales=Ao;_.weekdaysShort=Yu;_.normalizeUnits=qe;_.relativeTimeRounding=ph;_.relativeTimeThreshold=_h;_.calendarFormat=Rl;_.prototype=p;_.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};/*! *****************************************************************************
|
|
11
|
+
Copyright (c) Microsoft Corporation.
|
|
12
|
+
|
|
13
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
14
|
+
purpose with or without fee is hereby granted.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
17
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
18
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
19
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
20
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
21
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
22
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
23
|
+
***************************************************************************** */var vr=function(e,t){return vr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},vr(e,t)};function Tt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vr(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var z=function(){return z=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},z.apply(this,arguments)};function bh(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function wr(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Tr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(l){o={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function qt(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||t)}function gt(e){return typeof e=="function"}function Ni(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var ir=Ni(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
24
|
+
`+n.map(function(r,a){return a+1+") "+r.toString()}).join(`
|
|
25
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}});function Sr(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Jn=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,a,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var l=wr(o),u=l.next();!u.done;u=l.next()){var h=u.value;h.remove(this)}}catch(k){t={error:k}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}else o.remove(this);var d=this.initialTeardown;if(gt(d))try{d()}catch(k){i=k instanceof ir?k.errors:[k]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var m=wr(g),x=m.next();!x.done;x=m.next()){var B=x.value;try{da(B)}catch(k){i=i!=null?i:[],k instanceof ir?i=qt(qt([],Tr(i)),Tr(k.errors)):i.push(k)}}}catch(k){r={error:k}}finally{try{x&&!x.done&&(a=m.return)&&a.call(m)}finally{if(r)throw r.error}}}if(i)throw new ir(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)da(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Sr(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Sr(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Li=Jn.EMPTY;function Ai(e){return e instanceof Jn||e&&"closed"in e&>(e.remove)&>(e.add)&>(e.unsubscribe)}function da(e){gt(e)?e():e.unsubscribe()}var Bi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},yh={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,qt([e,t],Tr(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function vh(e){yh.setTimeout(function(){throw e})}function fa(){}function Dn(e){e()}var Fi=function(e){Tt(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Ai(n)&&n.add(r)):r.destination=Mh,r}return t.create=function(n,r,a){return new Mr(n,r,a)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Jn),wh=Function.prototype.bind;function sr(e,t){return wh.call(e,t)}var Th=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Tn(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Tn(r)}else Tn(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Tn(n)}},e}(),Mr=function(e){Tt(t,e);function t(n,r,a){var i=e.call(this)||this,o;if(gt(n)||!n)o={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:a!=null?a:void 0};else{var l;i&&Bi.useDeprecatedNextContext?(l=Object.create(n),l.unsubscribe=function(){return i.unsubscribe()},o={next:n.next&&sr(n.next,l),error:n.error&&sr(n.error,l),complete:n.complete&&sr(n.complete,l)}):o=n}return i.destination=new Th(o),i}return t}(Fi);function Tn(e){vh(e)}function Sh(e){throw e}var Mh={closed:!0,next:fa,error:Sh,complete:fa},xh=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Eh(e){return e}function Dh(e){return e.length===0?Eh:e.length===1?e[0]:function(n){return e.reduce(function(r,a){return a(r)},n)}}var ca=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var a=this,i=kh(t)?t:new Mr(t,n,r);return Dn(function(){var o=a,l=o.operator,u=o.source;i.add(l?l.call(i,u):u?a._subscribe(i):a._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=ma(n),new n(function(a,i){var o=new Mr({next:function(l){try{t(l)}catch(u){i(u),o.unsubscribe()}},error:i,complete:a});r.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[xh]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Dh(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=ma(t),new t(function(r,a){var i;n.subscribe(function(o){return i=o},function(o){return a(o)},function(){return r(i)})})},e.create=function(t){return new e(t)},e}();function ma(e){var t;return(t=e!=null?e:Bi.Promise)!==null&&t!==void 0?t:Promise}function Ph(e){return e&>(e.next)&>(e.error)&>(e.complete)}function kh(e){return e&&e instanceof Fi||Ph(e)&&Ai(e)}var Oh=Ni(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Yi=function(e){Tt(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new pa(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Oh},t.prototype.next=function(n){var r=this;Dn(function(){var a,i;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=wr(r.currentObservers),l=o.next();!l.done;l=o.next()){var u=l.value;u.next(n)}}catch(h){a={error:h}}finally{try{l&&!l.done&&(i=o.return)&&i.call(o)}finally{if(a)throw a.error}}}})},t.prototype.error=function(n){var r=this;Dn(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var a=r.observers;a.length;)a.shift().error(n)}})},t.prototype.complete=function(){var n=this;Dn(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,a=this,i=a.hasError,o=a.isStopped,l=a.observers;return i||o?Li:(this.currentObservers=null,l.push(n),new Jn(function(){r.currentObservers=null,Sr(l,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,a=r.hasError,i=r.thrownError,o=r.isStopped;a?n.error(i):o&&n.complete()},t.prototype.asObservable=function(){var n=new ca;return n.source=this,n},t.create=function(n,r){return new pa(n,r)},t}(ca),pa=function(e){Tt(t,e);function t(n,r){var a=e.call(this)||this;return a.destination=n,a.source=r,a}return t.prototype.next=function(n){var r,a;(a=(r=this.destination)===null||r===void 0?void 0:r.next)===null||a===void 0||a.call(r,n)},t.prototype.error=function(n){var r,a;(a=(r=this.destination)===null||r===void 0?void 0:r.error)===null||a===void 0||a.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,a;return(a=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&a!==void 0?a:Li},t}(Yi),Ui={now:function(){return(Ui.delegate||Date).now()},delegate:void 0},Ch=function(e){Tt(t,e);function t(n,r,a){n===void 0&&(n=1/0),r===void 0&&(r=1/0),a===void 0&&(a=Ui);var i=e.call(this)||this;return i._bufferSize=n,i._windowTime=r,i._timestampProvider=a,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,n),i._windowTime=Math.max(1,r),i}return t.prototype.next=function(n){var r=this,a=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,l=r._timestampProvider,u=r._windowTime;a||(i.push(n),!o&&i.push(l.now()+u)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),a=this,i=a._infiniteTimeWindow,o=a._buffer,l=o.slice(),u=0;u<l.length&&!n.closed;u+=i?1:2)n.next(l[u]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,a=n._timestampProvider,i=n._buffer,o=n._infiniteTimeWindow,l=(o?1:2)*r;if(r<1/0&&l<i.length&&i.splice(0,i.length-l),!o){for(var u=a.now(),h=0,d=1;d<i.length&&i[d]<=u;d+=2)h=d;h&&i.splice(0,h+1)}},t}(Yi);const _a=[],ga={},Rh=(e,t=0)=>{if(_a.indexOf(e)==-1){const n=new Ch(t);ga[e]=n,_a.push(e)}return ga[e]},Gt=[];function Hh(e,t){return{subscribe:Qn(e,t).subscribe}}function Qn(e,t=s.noop){let n;const r=new Set;function a(l){if(s.safe_not_equal(e,l)&&(e=l,n)){const u=!Gt.length;for(const h of r)h[1](),Gt.push(h,e);if(u){for(let h=0;h<Gt.length;h+=2)Gt[h][0](Gt[h+1]);Gt.length=0}}}function i(l){a(l(e))}function o(l,u=s.noop){const h=[l,u];return r.add(h),r.size===1&&(n=t(a,i)||s.noop),l(e),()=>{r.delete(h),r.size===0&&n&&(n(),n=null)}}return{set:a,update:i,subscribe:o}}function tn(e,t,n){const r=!Array.isArray(e),a=r?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=t.length<2;return Hh(n,(o,l)=>{let u=!1;const h=[];let d=0,g=s.noop;const m=()=>{if(d)return;g();const B=t(r?h[0]:h,o,l);i?o(B):g=s.is_function(B)?B:s.noop},x=a.map((B,k)=>s.subscribe(B,W=>{h[k]=W,d&=~(1<<k),u&&m()},()=>{d|=1<<k}));return u=!0,m(),function(){s.run_all(x),g(),u=!1}})}var Ih=function(t){return Nh(t)&&!Lh(t)};function Nh(e){return!!e&&typeof e=="object"}function Lh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Fh(e)}var Ah=typeof Symbol=="function"&&Symbol.for,Bh=Ah?Symbol.for("react.element"):60103;function Fh(e){return e.$$typeof===Bh}function Yh(e){return Array.isArray(e)?[]:{}}function cn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Zt(Yh(e),e,t):e}function Uh(e,t,n){return e.concat(t).map(function(r){return cn(r,n)})}function Gh(e,t){if(!t.customMerge)return Zt;var n=t.customMerge(e);return typeof n=="function"?n:Zt}function Wh(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ba(e){return Object.keys(e).concat(Wh(e))}function Gi(e,t){try{return t in e}catch(n){return!1}}function jh(e,t){return Gi(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Vh(e,t,n){var r={};return n.isMergeableObject(e)&&ba(e).forEach(function(a){r[a]=cn(e[a],n)}),ba(t).forEach(function(a){jh(e,a)||(Gi(e,a)&&n.isMergeableObject(t[a])?r[a]=Gh(a,n)(e[a],t[a],n):r[a]=cn(t[a],n))}),r}function Zt(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Uh,n.isMergeableObject=n.isMergeableObject||Ih,n.cloneUnlessOtherwiseSpecified=cn;var r=Array.isArray(t),a=Array.isArray(e),i=r===a;return i?r?n.arrayMerge(e,t,n):Vh(e,t,n):cn(t,n)}Zt.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return Zt(r,a,n)},{})};var zh=Zt,Xh=zh;const qh=ps(Xh);function or(e,t){var n=t&&t.cache?t.cache:ed,r=t&&t.serializer?t.serializer:$h,a=t&&t.strategy?t.strategy:Jh;return a(e,{cache:n,serializer:r})}function Zh(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Wi(e,t,n,r){var a=Zh(r)?r:n(r),i=t.get(a);return typeof i=="undefined"&&(i=e.call(this,r),t.set(a,i)),i}function ji(e,t,n){var r=Array.prototype.slice.call(arguments,3),a=n(r),i=t.get(a);return typeof i=="undefined"&&(i=e.apply(this,r),t.set(a,i)),i}function ta(e,t,n,r,a){return n.bind(t,e,r,a)}function Jh(e,t){var n=e.length===1?Wi:ji;return ta(e,this,n,t.cache.create(),t.serializer)}function Qh(e,t){return ta(e,this,ji,t.cache.create(),t.serializer)}function Kh(e,t){return ta(e,this,Wi,t.cache.create(),t.serializer)}var $h=function(){return JSON.stringify(arguments)};function na(){this.cache=Object.create(null)}na.prototype.get=function(e){return this.cache[e]};na.prototype.set=function(e,t){this.cache[e]=t};var ed={create:function(){return new na}},lr={variadic:Qh,monadic:Kh},Y;(function(e){e[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"})(Y||(Y={}));var se;(function(e){e[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"})(se||(se={}));var Jt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Jt||(Jt={}));function ya(e){return e.type===se.literal}function td(e){return e.type===se.argument}function Vi(e){return e.type===se.number}function zi(e){return e.type===se.date}function Xi(e){return e.type===se.time}function qi(e){return e.type===se.select}function Zi(e){return e.type===se.plural}function nd(e){return e.type===se.pound}function Ji(e){return e.type===se.tag}function Qi(e){return!!(e&&typeof e=="object"&&e.type===Jt.number)}function xr(e){return!!(e&&typeof e=="object"&&e.type===Jt.dateTime)}var Ki=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,rd=/(?:[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;function ad(e){var t={};return e.replace(rd,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"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":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-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":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<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""}),t}var id=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function sd(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(id).filter(function(m){return m.length>0}),n=[],r=0,a=t;r<a.length;r++){var i=a[r],o=i.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var l=o[0],u=o.slice(1),h=0,d=u;h<d.length;h++){var g=d[h];if(g.length===0)throw new Error("Invalid number skeleton")}n.push({stem:l,options:u})}return n}function od(e){return e.replace(/^(.*?)-/,"")}var va=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,$i=/^(@+)?(\+|#+)?[rs]?$/g,ld=/(\*)(0+)|(#+)(0+)|(0+)/g,es=/^(0+)$/;function wa(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace($i,function(n,r,a){return typeof a!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):a==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof a=="string"?a.length:0)),""}),t}function ts(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 ud(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(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)),!es.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ta(e){var t={},n=ts(e);return n||t}function hd(e){for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=od(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=z(z(z({},t),{notation:"scientific"}),a.options.reduce(function(u,h){return z(z({},u),Ta(h))},{}));continue;case"engineering":t=z(z(z({},t),{notation:"engineering"}),a.options.reduce(function(u,h){return z(z({},u),Ta(h))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(ld,function(u,h,d,g,m,x){if(h)t.minimumIntegerDigits=d.length;else{if(g&&m)throw new Error("We currently do not support maximum integer digits");if(x)throw new Error("We currently do not support exact integer digits")}return""});continue}if(es.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(va.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(va,function(u,h,d,g,m,x){return d==="*"?t.minimumFractionDigits=h.length:g&&g[0]==="#"?t.maximumFractionDigits=g.length:m&&x?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+x.length):(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length),""});var i=a.options[0];i==="w"?t=z(z({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=z(z({},t),wa(i)));continue}if($i.test(a.stem)){t=z(z({},t),wa(a.stem));continue}var o=ts(a.stem);o&&(t=z(z({},t),o));var l=ud(a.stem);l&&(t=z(z({},t),l))}return t}var Sn={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function dd(e,t){for(var n="",r=0;r<e.length;r++){var a=e.charAt(r);if(a==="j"){for(var i=0;r+1<e.length&&e.charAt(r+1)===a;)i++,r++;var o=1+(i&1),l=i<2?1:3+(i>>1),u="a",h=fd(t);for((h=="H"||h=="k")&&(l=0);l-- >0;)n+=u;for(;o-- >0;)n=h+n}else a==="J"?n+="H":n+=a}return n}function fd(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var a=Sn[r||""]||Sn[n||""]||Sn["".concat(n,"-001")]||Sn["001"];return a[0]}var ur,cd=new RegExp("^".concat(Ki.source,"*")),md=new RegExp("".concat(Ki.source,"*$"));function U(e,t){return{start:e,end:t}}var pd=!!String.prototype.startsWith&&"_a".startsWith("a",1),_d=!!String.fromCodePoint,gd=!!Object.fromEntries,bd=!!String.prototype.codePointAt,yd=!!String.prototype.trimStart,vd=!!String.prototype.trimEnd,wd=!!Number.isSafeInteger,Td=wd?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Er=!0;try{var Sd=rs("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Er=((ur=Sd.exec("a"))===null||ur===void 0?void 0:ur[0])==="a"}catch(e){Er=!1}var Sa=pd?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},Dr=_d?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",a=t.length,i=0,o;a>i;){if(o=t[i++],o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r},Ma=gd?Object.fromEntries:function(t){for(var n={},r=0,a=t;r<a.length;r++){var i=a[r],o=i[0],l=i[1];n[o]=l}return n},ns=bd?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var a=t.charCodeAt(n),i;return a<55296||a>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?a:(a-55296<<10)+(i-56320)+65536}},Md=yd?function(t){return t.trimStart()}:function(t){return t.replace(cd,"")},xd=vd?function(t){return t.trimEnd()}:function(t){return t.replace(md,"")};function rs(e,t){return new RegExp(e,t)}var Pr;if(Er){var xa=rs("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pr=function(t,n){var r;xa.lastIndex=n;var a=xa.exec(t);return(r=a[1])!==null&&r!==void 0?r:""}}else Pr=function(t,n){for(var r=[];;){var a=ns(t,n);if(a===void 0||as(a)||kd(a))break;r.push(a),n+=a>=65536?2:1}return Dr.apply(void 0,r)};var Ed=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var a=[];!this.isEOF();){var i=this.char();if(i===123){var o=this.parseArgument(t,r);if(o.err)return o;a.push(o.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var l=this.clonePosition();this.bump(),a.push({type:se.pound,location:U(l,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(Y.UNMATCHED_CLOSING_TAG,U(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&kr(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;a.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;a.push(o.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:se.literal,value:"<".concat(a,"/>"),location:U(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var o=i.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!kr(this.char()))return this.error(Y.INVALID_TAG,U(l,this.clonePosition()));var u=this.clonePosition(),h=this.parseTagName();return a!==h?this.error(Y.UNMATCHED_CLOSING_TAG,U(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:se.tag,value:a,children:o,location:U(r,this.clonePosition())},err:null}:this.error(Y.INVALID_TAG,U(l,this.clonePosition())))}else return this.error(Y.UNCLOSED_TAG,U(r,this.clonePosition()))}else return this.error(Y.INVALID_TAG,U(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Pd(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),a="";;){var i=this.tryParseQuote(n);if(i){a+=i;continue}var o=this.tryParseUnquoted(t,n);if(o){a+=o;continue}var l=this.tryParseLeftAngleBracket();if(l){a+=l;continue}break}var u=U(r,this.clonePosition());return{val:{type:se.literal,value:a,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Dd(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return Dr.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),Dr(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Y.EMPTY_ARGUMENT,U(r,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(Y.MALFORMED_ARGUMENT,U(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:se.argument,value:a,location:U(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition())):this.parseArgumentOptions(t,n,a,r);default:return this.error(Y.MALFORMED_ARGUMENT,U(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Pr(this.message,n),a=n+r.length;this.bumpTo(a);var i=this.clonePosition(),o=U(t,i);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,a){var i,o=this.clonePosition(),l=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(l){case"":return this.error(Y.EXPECT_ARGUMENT_TYPE,U(o,u));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),g=this.parseSimpleArgStyleIfPossible();if(g.err)return g;var m=xd(g.val);if(m.length===0)return this.error(Y.EXPECT_ARGUMENT_STYLE,U(this.clonePosition(),this.clonePosition()));var x=U(d,this.clonePosition());h={style:m,styleLocation:x}}var B=this.tryParseArgumentClose(a);if(B.err)return B;var k=U(a,this.clonePosition());if(h&&Sa(h==null?void 0:h.style,"::",0)){var W=Md(h.style.slice(2));if(l==="number"){var g=this.parseNumberSkeletonFromString(W,h.styleLocation);return g.err?g:{val:{type:se.number,value:r,location:k,style:g.val},err:null}}else{if(W.length===0)return this.error(Y.EXPECT_DATE_TIME_SKELETON,k);var de=W;this.locale&&(de=dd(W,this.locale));var m={type:Jt.dateTime,pattern:de,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?ad(de):{}},Z=l==="date"?se.date:se.time;return{val:{type:Z,value:r,location:k,style:m},err:null}}}return{val:{type:l==="number"?se.number:l==="date"?se.date:se.time,value:r,location:k,style:(i=h==null?void 0:h.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var H=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Y.EXPECT_SELECT_ARGUMENT_OPTIONS,U(H,z({},H)));this.bumpSpace();var N=this.parseIdentifierIfPossible(),T=0;if(l!=="select"&&N.value==="offset"){if(!this.bumpIf(":"))return this.error(Y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,U(this.clonePosition(),this.clonePosition()));this.bumpSpace();var g=this.tryParseDecimalInteger(Y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(g.err)return g;this.bumpSpace(),N=this.parseIdentifierIfPossible(),T=g.val}var j=this.tryParsePluralOrSelectOptions(t,l,n,N);if(j.err)return j;var B=this.tryParseArgumentClose(a);if(B.err)return B;var Ie=U(a,this.clonePosition());return l==="select"?{val:{type:se.select,value:r,options:Ma(j.val),location:Ie},err:null}:{val:{type:se.plural,value:r,options:Ma(j.val),offset:T,pluralType:l==="plural"?"cardinal":"ordinal",location:Ie},err:null}}default:return this.error(Y.INVALID_ARGUMENT_TYPE,U(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Y.EXPECT_ARGUMENT_CLOSING_BRACE,U(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,U(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=sd(t)}catch(a){return this.error(Y.INVALID_NUMBER_SKELETON,n)}return{val:{type:Jt.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?hd(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,a){for(var i,o=!1,l=[],u=new Set,h=a.value,d=a.location;;){if(h.length===0){var g=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(Y.EXPECT_PLURAL_ARGUMENT_SELECTOR,Y.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;d=U(g,this.clonePosition()),h=this.message.slice(g.offset,this.offset())}else break}if(u.has(h))return this.error(n==="select"?Y.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);h==="other"&&(o=!0),this.bumpSpace();var x=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?Y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,U(this.clonePosition(),this.clonePosition()));var B=this.parseMessage(t+1,n,r);if(B.err)return B;var k=this.tryParseArgumentClose(x);if(k.err)return k;l.push([h,{value:B.val,location:U(x,this.clonePosition())}]),u.add(h),this.bumpSpace(),i=this.parseIdentifierIfPossible(),h=i.value,d=i.location}return l.length===0?this.error(n==="select"?Y.EXPECT_SELECT_ARGUMENT_SELECTOR:Y.EXPECT_PLURAL_ARGUMENT_SELECTOR,U(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Y.MISSING_OTHER_CLAUSE,U(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)i=!0,o=o*10+(l-48),this.bump();else break}var u=U(a,this.clonePosition());return i?(o*=r,Td(o)?{val:o,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=ns(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Sa(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&as(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r!=null?r:null},e}();function kr(e){return e>=97&&e<=122||e>=65&&e<=90}function Dd(e){return kr(e)||e===47}function Pd(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function as(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function kd(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Or(e){e.forEach(function(t){if(delete t.location,qi(t)||Zi(t))for(var n in t.options)delete t.options[n].location,Or(t.options[n].value);else Vi(t)&&Qi(t.style)||(zi(t)||Xi(t))&&xr(t.style)?delete t.style.location:Ji(t)&&Or(t.children)})}function Od(e,t){t===void 0&&(t={}),t=z({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Ed(e,t).parse();if(n.err){var r=SyntaxError(Y[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Or(n.val),n.val}var Qt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Qt||(Qt={}));var Kn=function(e){Tt(t,e);function t(n,r,a){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=a,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ea=function(e){Tt(t,e);function t(n,r,a,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(a).join('", "'),'"'),Qt.INVALID_VALUE,i)||this}return t}(Kn),Cd=function(e){Tt(t,e);function t(n,r,a){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Qt.INVALID_VALUE,a)||this}return t}(Kn),Rd=function(e){Tt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Qt.MISSING_VALUE,r)||this}return t}(Kn),De;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(De||(De={}));function Hd(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==De.literal||n.type!==De.literal?t.push(n):r.value+=n.value,t},[])}function Id(e){return typeof e=="function"}function Pn(e,t,n,r,a,i,o){if(e.length===1&&ya(e[0]))return[{type:De.literal,value:e[0].value}];for(var l=[],u=0,h=e;u<h.length;u++){var d=h[u];if(ya(d)){l.push({type:De.literal,value:d.value});continue}if(nd(d)){typeof i=="number"&&l.push({type:De.literal,value:n.getNumberFormat(t).format(i)});continue}var g=d.value;if(!(a&&g in a))throw new Rd(g,o);var m=a[g];if(td(d)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),l.push({type:typeof m=="string"?De.literal:De.object,value:m});continue}if(zi(d)){var x=typeof d.style=="string"?r.date[d.style]:xr(d.style)?d.style.parsedOptions:void 0;l.push({type:De.literal,value:n.getDateTimeFormat(t,x).format(m)});continue}if(Xi(d)){var x=typeof d.style=="string"?r.time[d.style]:xr(d.style)?d.style.parsedOptions:r.time.medium;l.push({type:De.literal,value:n.getDateTimeFormat(t,x).format(m)});continue}if(Vi(d)){var x=typeof d.style=="string"?r.number[d.style]:Qi(d.style)?d.style.parsedOptions:void 0;x&&x.scale&&(m=m*(x.scale||1)),l.push({type:De.literal,value:n.getNumberFormat(t,x).format(m)});continue}if(Ji(d)){var B=d.children,k=d.value,W=a[k];if(!Id(W))throw new Cd(k,"function",o);var de=Pn(B,t,n,r,a,i),Z=W(de.map(function(T){return T.value}));Array.isArray(Z)||(Z=[Z]),l.push.apply(l,Z.map(function(T){return{type:typeof T=="string"?De.literal:De.object,value:T}}))}if(qi(d)){var H=d.options[m]||d.options.other;if(!H)throw new Ea(d.value,m,Object.keys(d.options),o);l.push.apply(l,Pn(H.value,t,n,r,a));continue}if(Zi(d)){var H=d.options["=".concat(m)];if(!H){if(!Intl.PluralRules)throw new Kn(`Intl.PluralRules is not available in this environment.
|
|
26
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
27
|
+
`,Qt.MISSING_INTL_API,o);var N=n.getPluralRules(t,{type:d.pluralType}).select(m-(d.offset||0));H=d.options[N]||d.options.other}if(!H)throw new Ea(d.value,m,Object.keys(d.options),o);l.push.apply(l,Pn(H.value,t,n,r,a,m-(d.offset||0)));continue}}return Hd(l)}function Nd(e,t){return t?z(z(z({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=z(z({},e[r]),t[r]||{}),n},{})):e}function Ld(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Nd(e[r],t[r]),n},z({},e)):e}function hr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Ad(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:or(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,qt([void 0],n,!1)))},{cache:hr(e.number),strategy:lr.variadic}),getDateTimeFormat:or(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,qt([void 0],n,!1)))},{cache:hr(e.dateTime),strategy:lr.variadic}),getPluralRules:or(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,qt([void 0],n,!1)))},{cache:hr(e.pluralRules),strategy:lr.variadic})}}var Bd=function(){function e(t,n,r,a){n===void 0&&(n=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var h=i.formatToParts(u);if(h.length===1)return h[0].value;var d=h.reduce(function(g,m){return!g.length||m.type!==De.literal||typeof g[g.length-1]!="string"?g.push(m.value):g[g.length-1]+=m.value,g},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(u){return Pn(i.ast,i.locales,i.formatters,i.formats,u,void 0,i.message)},this.resolvedOptions=function(){var u;return{locale:((u=i.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=a||{};o.formatters;var l=bh(o,["formatters"]);this.ast=e.__parse(t,z(z({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ld(e.formats,r),this.formatters=a&&a.formatters||Ad(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Od,e.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"}}},e}();function Fd(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let a=0;a<n.length;a++)if(typeof r=="object"){if(a>0){const i=n.slice(a,n.length).join(".");if(i in r){r=r[i];break}}r=r[n[a]]}else r=void 0;return r}const Pt={},Yd=(e,t,n)=>n&&(t in Pt||(Pt[t]={}),e in Pt[t]||(Pt[t][e]=n),n),is=(e,t)=>{if(t==null)return;if(t in Pt&&e in Pt[t])return Pt[t][e];const n=$n(t);for(let r=0;r<n.length;r++){const a=n[r],i=Gd(a,e);if(i)return Yd(e,t,i)}};let ra;const Nt=Qn({});function Ud(e){return ra[e]||null}function ss(e){return e in ra}function Gd(e,t){if(!ss(e))return null;const n=Ud(e);return Fd(n,t)}function Wd(e){if(e==null)return;const t=$n(e);for(let n=0;n<t.length;n++){const r=t[n];if(ss(r))return r}}function aa(e,...t){delete Pt[e],Nt.update(n=>(n[e]=qh.all([n[e]||{},...t]),n))}tn([Nt],([e])=>Object.keys(e));Nt.subscribe(e=>ra=e);const kn={};function jd(e,t){kn[e].delete(t),kn[e].size===0&&delete kn[e]}function os(e){return kn[e]}function Vd(e){return $n(e).map(t=>{const n=os(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Cr(e){return e==null?!1:$n(e).some(t=>{var n;return(n=os(t))==null?void 0:n.size})}function zd(e,t){return Promise.all(t.map(r=>(jd(e,r),r().then(a=>a.default||a)))).then(r=>aa(e,...r))}const on={};function ls(e){if(!Cr(e))return e in on?on[e]:Promise.resolve();const t=Vd(e);return on[e]=Promise.all(t.map(([n,r])=>zd(n,r))).then(()=>{if(Cr(e))return ls(e);delete on[e]}),on[e]}const Xd={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"}}},qd={fallbackLocale:null,loadingDelay:200,formats:Xd,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Zd=qd;function Kt(){return Zd}const dr=Qn(!1);var Jd=Object.defineProperty,Qd=Object.defineProperties,Kd=Object.getOwnPropertyDescriptors,Da=Object.getOwnPropertySymbols,$d=Object.prototype.hasOwnProperty,ef=Object.prototype.propertyIsEnumerable,Pa=(e,t,n)=>t in e?Jd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tf=(e,t)=>{for(var n in t||(t={}))$d.call(t,n)&&Pa(e,n,t[n]);if(Da)for(var n of Da(t))ef.call(t,n)&&Pa(e,n,t[n]);return e},nf=(e,t)=>Qd(e,Kd(t));let Rr;const Ln=Qn(null);function ka(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function $n(e,t=Kt().fallbackLocale){const n=ka(e);return t?[...new Set([...n,...ka(t)])]:n}function Lt(){return Rr!=null?Rr:void 0}Ln.subscribe(e=>{Rr=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const rf=e=>{if(e&&Wd(e)&&Cr(e)){const{loadingDelay:t}=Kt();let n;return typeof window!="undefined"&&Lt()!=null&&t?n=window.setTimeout(()=>dr.set(!0),t):dr.set(!0),ls(e).then(()=>{Ln.set(e)}).finally(()=>{clearTimeout(n),dr.set(!1)})}return Ln.set(e)},yt=nf(tf({},Ln),{set:rf}),er=e=>{const t=Object.create(null);return r=>{const a=JSON.stringify(r);return a in t?t[a]:t[a]=e(r)}};var af=Object.defineProperty,An=Object.getOwnPropertySymbols,us=Object.prototype.hasOwnProperty,hs=Object.prototype.propertyIsEnumerable,Oa=(e,t,n)=>t in e?af(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ia=(e,t)=>{for(var n in t||(t={}))us.call(t,n)&&Oa(e,n,t[n]);if(An)for(var n of An(t))hs.call(t,n)&&Oa(e,n,t[n]);return e},nn=(e,t)=>{var n={};for(var r in e)us.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&An)for(var r of An(e))t.indexOf(r)<0&&hs.call(e,r)&&(n[r]=e[r]);return n};const mn=(e,t)=>{const{formats:n}=Kt();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},sf=er(e=>{var t=e,{locale:n,format:r}=t,a=nn(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(a=mn("number",r)),new Intl.NumberFormat(n,a)}),of=er(e=>{var t=e,{locale:n,format:r}=t,a=nn(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?a=mn("date",r):Object.keys(a).length===0&&(a=mn("date","short")),new Intl.DateTimeFormat(n,a)}),lf=er(e=>{var t=e,{locale:n,format:r}=t,a=nn(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?a=mn("time",r):Object.keys(a).length===0&&(a=mn("time","short")),new Intl.DateTimeFormat(n,a)}),uf=(e={})=>{var t=e,{locale:n=Lt()}=t,r=nn(t,["locale"]);return sf(ia({locale:n},r))},hf=(e={})=>{var t=e,{locale:n=Lt()}=t,r=nn(t,["locale"]);return of(ia({locale:n},r))},df=(e={})=>{var t=e,{locale:n=Lt()}=t,r=nn(t,["locale"]);return lf(ia({locale:n},r))},ff=er((e,t=Lt())=>new Bd(e,t,Kt().formats,{ignoreTag:Kt().ignoreTag})),cf=(e,t={})=>{var n,r,a,i;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:l,locale:u=Lt(),default:h}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=is(e,u);if(!d)d=(i=(a=(r=(n=Kt()).handleMissingMessage)==null?void 0:r.call(n,{locale:u,id:e,defaultValue:h}))!=null?a:h)!=null?i:e;else if(typeof d!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d;if(!l)return d;let g=d;try{g=ff(d,u).format(l)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return g},mf=(e,t)=>df(t).format(e),pf=(e,t)=>hf(t).format(e),_f=(e,t)=>uf(t).format(e),gf=(e,t=Lt())=>is(e,t),ds=tn([yt,Nt],()=>cf);tn([yt],()=>mf);tn([yt],()=>pf);tn([yt],()=>_f);tn([yt,Nt],()=>gf);window.emWidgets={topic:Rh};const ze=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),Hr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function bf({withLocale:e,translations:t}){yt.subscribe(n=>{n==null&&(Nt.set(t),yt.set(e))})}function fr(e,t){aa(e,t)}function Ca(e){yt.set(e)}const Ra={en:{loading:"Loading, please wait ...",back:"Back",previous:"Previous",next:"Next",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",mostRounds:"MostRounds",activePeriod:"From {startdate} Till {enddate}",forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"Leaderboard",rules:"Rules",games:"Games",unlimited:"unlimited",casino:"CASINO",sports:"SPORTSBOOK"},hr:{loading:"Učitavanje, molimo pričekajte ...",back:"Natrag",previous:"Prethodno",next:"Sljedeće",scheduled:"Planirano",ongoing:"U tijeku",finished:"Završeno",mostRounds:"Najviše krugova",activePeriod:"Od {startdate} do {enddate}",forwardCasino:"Pogledajte uključene casino igre",forwardSports:"Pogledajte uključene sportove",forwardMyTournaments:"Pogledajte Moje turnire",leaderBoard:"Poredak",rules:"Pravila",games:"Igre",unlimited:"neograničeno"},"zh-hk":{loading:"加載請稍候 ...",back:"後退",previous:"以前的",next:"下一個",scheduled:"預定的",ongoing:"進行中",finished:"完成的",mostRounds:"大多數回合",activePeriod:"從 {startdate} 到 {enddate}",forwardCasino:"查看包含的賭場遊戲",forwardSports:"查看包含的運動",forwardMyTournaments:"查看我的比賽s",leaderBoard:"排行榜",rules:"規則",games:"遊戲",unlimited:"無限"},fr:{loading:"Chargement,veuillez patienter ...",back:"Retour",previous:"Précedent",next:"Suivant",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",mostRounds:"De",activePeriod:"De la {startdate} à la {enddate}",forwardCasino:"Voir les jeux de casino inclus",forwardSports:"Voir les sports inclus",forwardMyTournaments:"Voir mes tournois",leaderBoard:"Tableau des leaders",rules:"Règles",games:"Jeux",unlimited:"Illimité"},ro:{loading:"Se încarcă ...",back:"Înapoi",previous:"Anterior",next:"Următorul",scheduled:"Programat",ongoing:"În curs",finished:"Finalizat",mostRounds:"Cele mai multe runde",activePeriod:"De la {startdate} până la {enddate}",forwardCasino:"Vezi jocurile de cazino incluse",forwardSports:"Vezi sporturile incluse",forwardMyTournaments:"Vezi turneele mele",leaderBoard:"Clasament",rules:"Reguli",games:"Jocuri",unlimited:"nelimitat"},tr:{loading:"Yükleniyor lütfen bekleyin ...",back:"Geri",previous:"Önceki",next:"Sonraki",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Bitti",mostRounds:"Çoğu Tur",activePeriod:"Başlangıç {startdate} Bitiş {enddate}",forwardCasino:"Turnuvaya katılan oyunlar",forwardSports:"Dahil edilen sporları görün",forwardMyTournaments:"Turnuvalarımı Gör",leaderBoard:"Lider Tablosu",rules:"Kurallar",games:"Oyunlar",unlimited:"sınırsız"},el:{loading:"Φορτώνει, παρακαλούμε περιμένετε…",back:"Πίσω",previous:"Προηγούμενο",next:"Επόμενο",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",mostRounds:"MostRounds",activePeriod:"From {startdate} till {enddate}",forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"LeaderBoard",rules:"Rules",games:"Games",unlimited:"unlimited"},es:{loading:"Cargando…",back:"Anterior",previous:"Previo",next:"Siguiente",scheduled:"Programado",ongoing:"En vivo",finished:"Finalizado",mostRounds:"Más rondas",activePeriod:"Desde {startdate} Hasta {enddate}",forwardCasino:"Ver los Juegos de Casino incluidos",forwardSports:"Ver los Deportes incluidos",forwardMyTournaments:"Ver mis Torneos",leaderBoard:"Tabla de posiciones",rules:"Reglas",games:"Juegos",unlimited:"ilimitado"},hu:{loading:"Betöltés, kérjük várjon...",back:"Vissza",previous:"Előző",next:"Következő",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",mostRounds:"Legtöbb forduló",activePeriod:"{startdate} -tól {enddate} -ig",forwardCasino:"Résztvevő kaszinójátékok mutatása",forwardSports:"Résztvevő sportok mutatása",forwardMyTournaments:"Versenyeim mutatása",leaderBoard:"Ranglista",rules:"Szabályok",games:"Játékok",unlimited:"Korlátlan"},pt:{loading:"Carregando, por favor espere ...",back:"Voltar",previous:"Anterior",next:"Próximo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",mostRounds:"Mais Rodadas",activePeriod:"De {startdate} Até {enddate}",forwardCasino:"Ver jogos de cassino incluídos",forwardSports:"Ver esportes incluídos",forwardMyTournaments:"Ver Meus Torneios",leaderBoard:"Tabela de Líederes",rules:"Regras",games:"Jogos",unlimited:"Ilimitado"},"en-us":{loading:"Loading, please wait ...",back:"Back",previous:"Previous",next:"Next",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",mostRounds:"MostRounds",activePeriod:"From {startdate} Till {enddate}",forwardCasino:"See included casino games",forwardSports:"See included sports",forwardMyTournaments:"See My Tournaments",leaderBoard:"LeaderBoard",rules:"Rules",games:"Games",unlimited:"unlimited"}};var Ir={exports:{}};/** @license
|
|
28
|
+
* eventsource.js
|
|
29
|
+
* Available under MIT License (MIT)
|
|
30
|
+
* https://github.com/Yaffle/EventSource/
|
|
31
|
+
*/(function(e,t){(function(n){var r=n.setTimeout,a=n.clearTimeout,i=n.XMLHttpRequest,o=n.XDomainRequest,l=n.ActiveXObject,u=n.EventSource,h=n.document,d=n.Promise,g=n.fetch,m=n.Response,x=n.TextDecoder,B=n.TextEncoder,k=n.AbortController;if(typeof window!="undefined"&&typeof h!="undefined"&&!("readyState"in h)&&h.body==null&&(h.readyState="loading",window.addEventListener("load",function(c){h.readyState="complete"},!1)),i==null&&l!=null&&(i=function(){return new l("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(c){function y(){}return y.prototype=c,new y}),Date.now||(Date.now=function(){return new Date().getTime()}),k==null){var W=g;g=function(c,y){var w=y.signal;return W(c,{headers:y.headers,credentials:y.credentials,cache:y.cache}).then(function(b){var D=b.body.getReader();return w._reader=D,w._aborted&&w._reader.cancel(),{status:b.status,statusText:b.statusText,headers:b.headers,body:{getReader:function(){return D}}}})},k=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function de(){this.bitsNeeded=0,this.codePoint=0}de.prototype.decode=function(c){function y(J,Q,P){if(P===1)return J>=128>>Q&&J<<Q<=2047;if(P===2)return J>=2048>>Q&&J<<Q<=55295||J>=57344>>Q&&J<<Q<=65535;if(P===3)return J>=65536>>Q&&J<<Q<=1114111;throw new Error}function w(J,Q){if(J===6*1)return Q>>6>15?3:Q>31?2:1;if(J===6*2)return Q>15?3:2;if(J===6*3)return 3;throw new Error}for(var b=65533,D="",M=this.bitsNeeded,I=this.codePoint,te=0;te<c.length;te+=1){var C=c[te];M!==0&&(C<128||C>191||!y(I<<6|C&63,M-6,w(M,I)))&&(M=0,I=b,D+=String.fromCharCode(I)),M===0?(C>=0&&C<=127?(M=0,I=C):C>=192&&C<=223?(M=6*1,I=C&31):C>=224&&C<=239?(M=6*2,I=C&15):C>=240&&C<=247?(M=6*3,I=C&7):(M=0,I=b),M!==0&&!y(I,M,w(M,I))&&(M=0,I=b)):(M-=6,I=I<<6|C&63),M===0&&(I<=65535?D+=String.fromCharCode(I):(D+=String.fromCharCode(55296+(I-65535-1>>10)),D+=String.fromCharCode(56320+(I-65535-1&1023))))}return this.bitsNeeded=M,this.codePoint=I,D};var Z=function(){try{return new x().decode(new B().encode("test"),{stream:!0})==="test"}catch(c){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+c)}return!1};(x==null||B==null||!Z())&&(x=de);var H=function(){};function N(c){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=H,this.onload=H,this.onerror=H,this.onreadystatechange=H,this._contentType="",this._xhr=c,this._sendTimeout=0,this._abort=H}N.prototype.open=function(c,y){this._abort(!0);var w=this,b=this._xhr,D=1,M=0;this._abort=function(P){w._sendTimeout!==0&&(a(w._sendTimeout),w._sendTimeout=0),(D===1||D===2||D===3)&&(D=4,b.onload=H,b.onerror=H,b.onabort=H,b.onprogress=H,b.onreadystatechange=H,b.abort(),M!==0&&(a(M),M=0),P||(w.readyState=4,w.onabort(null),w.onreadystatechange())),D=0};var I=function(){if(D===1){var P=0,ne="",je=void 0;if("contentType"in b)P=200,ne="OK",je=b.contentType;else try{P=b.status,ne=b.statusText,je=b.getResponseHeader("Content-Type")}catch(Mt){P=0,ne="",je=void 0}P!==0&&(D=2,w.readyState=2,w.status=P,w.statusText=ne,w._contentType=je,w.onreadystatechange())}},te=function(){if(I(),D===2||D===3){D=3;var P="";try{P=b.responseText}catch(ne){}w.readyState=3,w.responseText=P,w.onprogress()}},C=function(P,ne){if((ne==null||ne.preventDefault==null)&&(ne={preventDefault:H}),te(),D===1||D===2||D===3){if(D=4,M!==0&&(a(M),M=0),w.readyState=4,P==="load")w.onload(ne);else if(P==="error")w.onerror(ne);else if(P==="abort")w.onabort(ne);else throw new TypeError;w.onreadystatechange()}},J=function(P){b!=null&&(b.readyState===4?(!("onload"in b)||!("onerror"in b)||!("onabort"in b))&&C(b.responseText===""?"error":"load",P):b.readyState===3?"onprogress"in b||te():b.readyState===2&&I())},Q=function(){M=r(function(){Q()},500),b.readyState===3&&te()};"onload"in b&&(b.onload=function(P){C("load",P)}),"onerror"in b&&(b.onerror=function(P){C("error",P)}),"onabort"in b&&(b.onabort=function(P){C("abort",P)}),"onprogress"in b&&(b.onprogress=te),"onreadystatechange"in b&&(b.onreadystatechange=function(P){J(P)}),("contentType"in b||!("ontimeout"in i.prototype))&&(y+=(y.indexOf("?")===-1?"?":"&")+"padding=true"),b.open(c,y,!0),"readyState"in b&&(M=r(function(){Q()},0))},N.prototype.abort=function(){this._abort(!1)},N.prototype.getResponseHeader=function(c){return this._contentType},N.prototype.setRequestHeader=function(c,y){var w=this._xhr;"setRequestHeader"in w&&w.setRequestHeader(c,y)},N.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},N.prototype.send=function(){if((!("ontimeout"in i.prototype)||!("sendAsBinary"in i.prototype)&&!("mozAnon"in i.prototype))&&h!=null&&h.readyState!=null&&h.readyState!=="complete"){var c=this;c._sendTimeout=r(function(){c._sendTimeout=0,c.send()},4);return}var y=this._xhr;"withCredentials"in y&&(y.withCredentials=this.withCredentials);try{y.send(void 0)}catch(w){throw w}};function T(c){return c.replace(/[A-Z]/g,function(y){return String.fromCharCode(y.charCodeAt(0)+32)})}function j(c){for(var y=Object.create(null),w=c.split(`\r
|
|
32
|
+
`),b=0;b<w.length;b+=1){var D=w[b],M=D.split(": "),I=M.shift(),te=M.join(": ");y[T(I)]=te}this._map=y}j.prototype.get=function(c){return this._map[T(c)]},i!=null&&i.HEADERS_RECEIVED==null&&(i.HEADERS_RECEIVED=2);function Ie(){}Ie.prototype.open=function(c,y,w,b,D,M,I){c.open("GET",D);var te=0;c.onprogress=function(){var J=c.responseText,Q=J.slice(te);te+=Q.length,w(Q)},c.onerror=function(J){J.preventDefault(),b(new Error("NetworkError"))},c.onload=function(){b(null)},c.onabort=function(){b(null)},c.onreadystatechange=function(){if(c.readyState===i.HEADERS_RECEIVED){var J=c.status,Q=c.statusText,P=c.getResponseHeader("Content-Type"),ne=c.getAllResponseHeaders();y(J,Q,P,new j(ne))}},c.withCredentials=M;for(var C in I)Object.prototype.hasOwnProperty.call(I,C)&&c.setRequestHeader(C,I[C]);return c.send(),c};function xe(c){this._headers=c}xe.prototype.get=function(c){return this._headers.get(c)};function rt(){}rt.prototype.open=function(c,y,w,b,D,M,I){var te=null,C=new k,J=C.signal,Q=new x;return g(D,{headers:I,credentials:M?"include":"same-origin",signal:J,cache:"no-store"}).then(function(P){return te=P.body.getReader(),y(P.status,P.statusText,P.headers.get("Content-Type"),new xe(P.headers)),new d(function(ne,je){var Mt=function(){te.read().then(function(we){if(we.done)ne(void 0);else{var ge=Q.decode(we.value,{stream:!0});w(ge),Mt()}}).catch(function(we){je(we)})};Mt()})}).catch(function(P){if(P.name!=="AbortError")return P}).then(function(P){b(P)}),{abort:function(){te!=null&&te.cancel(),C.abort()}}};function Ze(){this._listeners=Object.create(null)}function Ne(c){r(function(){throw c},0)}Ze.prototype.dispatchEvent=function(c){c.target=this;var y=this._listeners[c.type];if(y!=null)for(var w=y.length,b=0;b<w;b+=1){var D=y[b];try{typeof D.handleEvent=="function"?D.handleEvent(c):D.call(this,c)}catch(M){Ne(M)}}},Ze.prototype.addEventListener=function(c,y){c=String(c);var w=this._listeners,b=w[c];b==null&&(b=[],w[c]=b);for(var D=!1,M=0;M<b.length;M+=1)b[M]===y&&(D=!0);D||b.push(y)},Ze.prototype.removeEventListener=function(c,y){c=String(c);var w=this._listeners,b=w[c];if(b!=null){for(var D=[],M=0;M<b.length;M+=1)b[M]!==y&&D.push(b[M]);D.length===0?delete w[c]:w[c]=D}};function Pe(c){this.type=c,this.target=void 0}function St(c,y){Pe.call(this,c),this.data=y.data,this.lastEventId=y.lastEventId}St.prototype=Object.create(Pe.prototype);function Je(c,y){Pe.call(this,c),this.status=y.status,this.statusText=y.statusText,this.headers=y.headers}Je.prototype=Object.create(Pe.prototype);function at(c,y){Pe.call(this,c),this.error=y.error}at.prototype=Object.create(Pe.prototype);var Ye=-1,ve=0,ee=1,ke=2,Ue=-1,oe=0,V=1,fe=2,le=3,Oe=/^text\/event\-stream(;.*)?$/i,E=1e3,A=18e6,Ge=function(c,y){var w=c==null?y:parseInt(c,10);return w!==w&&(w=y),Qe(w)},Qe=function(c){return Math.min(Math.max(c,E),A)},_e=function(c,y,w){try{typeof y=="function"&&y.call(c,w)}catch(b){Ne(b)}};function Ce(c,y){Ze.call(this),y=y||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,yn(this,c,y)}function Ot(){return i!=null&&"withCredentials"in i.prototype||o==null?new i:new o}var rn=g!=null&&m!=null&&"body"in m.prototype;function yn(c,y,w){y=String(y);var b=!!w.withCredentials,D=w.lastEventIdQueryParameterName||"lastEventId",M=Qe(1e3),I=Ge(w.heartbeatTimeout,45e3),te="",C=M,J=!1,Q=0,P=w.headers||{},ne=w.Transport,je=rn&&ne==null?void 0:new N(ne!=null?new ne:Ot()),Mt=ne!=null&&typeof ne!="string"?new ne:je==null?new rt:new Ie,we=void 0,ge=0,Le=Ye,xt="",At="",Ke="",Bt="",be=oe,Ft=0,ut=0,f=function($,ue,ce,Ae){if(Le===ve)if($===200&&ce!=null&&Oe.test(ce)){Le=ee,J=Date.now(),C=M,c.readyState=ee;var Ee=new Je("open",{status:$,statusText:ue,headers:Ae});c.dispatchEvent(Ee),_e(c,c.onopen,Ee)}else{var ye="";$!==200?(ue&&(ue=ue.replace(/\s+/g," ")),ye="EventSource's response has a status "+$+" "+ue+" that is not 200. Aborting the connection."):ye="EventSource's response has a Content-Type specifying an unsupported type: "+(ce==null?"-":ce.replace(/\s+/g," "))+". Aborting the connection.",Re();var Ee=new Je("error",{status:$,statusText:ue,headers:Ae});c.dispatchEvent(Ee),_e(c,c.onerror,Ee),console.error(ye)}},O=function($){if(Le===ee){for(var ue=-1,ce=0;ce<$.length;ce+=1){var Ae=$.charCodeAt(ce);(Ae===10||Ae===13)&&(ue=ce)}var Ee=(ue!==-1?Bt:"")+$.slice(0,ue+1);Bt=(ue===-1?Bt:"")+$.slice(ue+1),$!==""&&(J=Date.now(),Q+=$.length);for(var ye=0;ye<Ee.length;ye+=1){var Ae=Ee.charCodeAt(ye);if(be===Ue&&Ae===10)be=oe;else if(be===Ue&&(be=oe),Ae===13||Ae===10){if(be!==oe){be===V&&(ut=ye+1);var ht=Ee.slice(Ft,ut-1),dt=Ee.slice(ut+(ut<ye&&Ee.charCodeAt(ut)===32?1:0),ye);ht==="data"?(xt+=`
|
|
33
|
+
`,xt+=dt):ht==="id"?At=dt:ht==="event"?Ke=dt:ht==="retry"?(M=Ge(dt,M),C=M):ht==="heartbeatTimeout"&&(I=Ge(dt,I),ge!==0&&(a(ge),ge=r(function(){me()},I)))}if(be===oe){if(xt!==""){te=At,Ke===""&&(Ke="message");var Yt=new St(Ke,{data:xt.slice(1),lastEventId:At});if(c.dispatchEvent(Yt),Ke==="open"?_e(c,c.onopen,Yt):Ke==="message"?_e(c,c.onmessage,Yt):Ke==="error"&&_e(c,c.onerror,Yt),Le===ke)return}xt="",Ke=""}be=Ae===13?Ue:oe}else be===oe&&(Ft=ye,be=V),be===V?Ae===58&&(ut=ye+1,be=fe):be===fe&&(be=le)}}},F=function($){if(Le===ee||Le===ve){Le=Ye,ge!==0&&(a(ge),ge=0),ge=r(function(){me()},C),C=Qe(Math.min(M*16,C*2)),c.readyState=ve;var ue=new at("error",{error:$});c.dispatchEvent(ue),_e(c,c.onerror,ue),$!=null&&console.error($)}},Re=function(){Le=ke,we!=null&&(we.abort(),we=void 0),ge!==0&&(a(ge),ge=0),c.readyState=ke},me=function(){if(ge=0,Le!==Ye){if(!J&&we!=null)F(new Error("No activity within "+I+" milliseconds. "+(Le===ve?"No response received.":Q+" chars received.")+" Reconnecting.")),we!=null&&(we.abort(),we=void 0);else{var $=Math.max((J||Date.now())+I-Date.now(),1);J=!1,ge=r(function(){me()},$)}return}J=!1,Q=0,ge=r(function(){me()},I),Le=ve,xt="",Ke="",At=te,Bt="",Ft=0,ut=0,be=oe;var ue=y;if(y.slice(0,5)!=="data:"&&y.slice(0,5)!=="blob:"&&te!==""){var ce=y.indexOf("?");ue=ce===-1?y:y.slice(0,ce+1)+y.slice(ce+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(dt,Yt){return Yt===D?"":dt}),ue+=(y.indexOf("?")===-1?"?":"&")+D+"="+encodeURIComponent(te)}var Ae=c.withCredentials,Ee={};Ee.Accept="text/event-stream";var ye=c.headers;if(ye!=null)for(var ht in ye)Object.prototype.hasOwnProperty.call(ye,ht)&&(Ee[ht]=ye[ht]);try{we=Mt.open(je,f,O,F,ue,Ae,Ee)}catch(dt){throw Re(),dt}};c.url=y,c.readyState=ve,c.withCredentials=b,c.headers=P,c._close=Re,me()}Ce.prototype=Object.create(Ze.prototype),Ce.prototype.CONNECTING=ve,Ce.prototype.OPEN=ee,Ce.prototype.CLOSED=ke,Ce.prototype.close=function(){this._close()},Ce.CONNECTING=ve,Ce.OPEN=ee,Ce.CLOSED=ke,Ce.prototype.withCredentials=void 0;var We=u;i!=null&&(u==null||!("withCredentials"in u.prototype))&&(We=Ce),function(c){{var y=c(t);y!==void 0&&(e.exports=y)}}(function(c){c.EventSourcePolyfill=Ce,c.NativeEventSource=u,c.EventSource=We})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:ms:globalThis)})(Ir,Ir.exports);var Ha=Ir.exports;if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsDetails-DVRJk4kX.cjs")).then(t=>t.CasinoTournamentsDetails_ce).then(({default:t})=>{!customElements.get("casino-tournaments-details")&&customElements.define("casino-tournaments-details",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailController-DumbAFtJ.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-controller")&&customElements.define("casino-tournaments-thumbnail-controller",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsTable-Cxom7JHr.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-table")&&customElements.define("casino-tournaments-table",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsTab-D65mknVm.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-tab")&&customElements.define("casino-tournaments-tab",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailRule-JArPpDEq.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-rule")&&customElements.define("casino-tournaments-thumbnail-rule",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsRank-BdqjuIj9.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-rank")&&customElements.define("casino-tournaments-rank",t.element)})}if(typeof window!="undefined"){let e=function(t){return function(...n){try{return t.apply(this,n)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGames-7XsMB9bw.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games")&&customElements.define("casino-tournaments-thumbnail-games",t.element)})}function yf(e){s.append_styles(e,"svelte-iof8mn",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsPage{background:var(--emw--color-contrast, #07072A);width:100%;color:var(--emw--color-white, #FFFFFF);display:flex;flex-direction:row}.TournamentsPage .hidden{display:none}.TournamentsPage.MiniMode{flex-direction:column}.TournamentsSectionWrapper{padding:24px 0;width:100%}@media screen and (max-width: 1300px){.TournamentsSectionWrapper{padding:24px 2.4%}}.FullSize{width:100%}.DisplayNone{display:none}.TopButtons{display:inline-flex;flex-direction:column;padding-bottom:20px;font-size:10px}.BackButton{display:inline-flex;align-items:center;cursor:pointer}.BackButton p{font-size:24px}.NavButtons{margin-left:auto;gap:10px;display:flex}.PrevButton{display:flex;align-items:center;border:1px solid var(--emw--color-white, #FFFFFF);width:105px;height:36px;padding:10px;font-size:16px;cursor:pointer}.NextButton{display:flex;align-items:center;border:1px solid var(--emw--color-white, #FFFFFF);padding:10px;width:75px;height:36px;font-size:16px;cursor:pointer}.TournamentsPage.MiniMode .TournamentContentDetails.MobileClass .TabContent.Games .GamesTabNav{width:80%}.TournamentContentDetails{display:flex;gap:10px;width:100%}.TournamentContentDetails.MobileClass{flex-direction:column}.TournamentContentDetails .LeaderboardSectionWrapper{display:flex;flex-direction:column;width:100%}.TournamentContentDetails .LeaderboardSectionWrapper .PageTabNav{max-width:600px}.TournamentContentDetails .LeaderboardSectionWrapper .GamesTabNav{max-width:300px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Rules{max-width:800px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games{padding-bottom:30px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems{text-align:center;margin:auto;margin-top:39px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems.OneGame{width:100%}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems.TwoGames{width:100%;display:flex}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems.TwoGames div{width:50%}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems span{color:#FF8364;font-size:12px;text-align:center;text-decoration-line:underline;cursor:pointer;margin-top:5px}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems svg,.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems .svg{height:70px;display:block;margin:auto}.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems svg.ball,.TournamentContentDetails .LeaderboardSectionWrapper .TabContent.Games .GameItems .svg.ball{width:98px}.TournamentCardDetails{width:var(--emw--tournament-thumbnail-width, 35%)}.TournamentCardDetails.MobileClass{width:100%}.TournamentTableDetails{flex:auto}.TournamentsPage.MiniMode{height:max-content}.TournamentsPage.MiniMode .MobileClass.TournamentCardDetails{padding:5px 5px 0px 5px;background-color:#333333;padding-bottom:12px}.TournamentsPage.MiniMode .MobileClass.TournamentCardDetails casino-tournaments-rank{display:block}.TournamentsPage.MiniMode .CloseButton{position:absolute;right:3px;top:3px;font-size:11px;cursor:pointer}.TournamentsPage.MiniMode casino-tournaments-rank::part(Rank),.TournamentsPage.MiniMode casino-tournaments-rank::part(Prize){color:#0a0c19;font-size:12px;margin:0px 0px 0px 5px;padding:2px}.TournamentsPage.MiniMode casino-tournaments-rank::part(Rank){margin-left:0px}.TournamentsPage.MiniMode casino-tournaments-rank::part(Prize){margin-right:0px}.TournamentsPage.MiniMode casino-tournaments-rank::part(RankText),.TournamentsPage.MiniMode casino-tournaments-rank::part(PrizeText){font-weight:400}.TournamentsPage.MiniMode casino-tournaments-thumbnail-controller::part(TournamentCard){padding:5px 5px 0px 5px;background-color:#333333}.TournamentsPage.MiniMode casino-tournaments-tab::part(LiText){height:22px;top:calc(50% - 11px);font-style:normal;font-weight:600;font-size:14px;line-height:22px;text-align:center;letter-spacing:-0.1px}.TournamentsPage.MiniMode casino-tournaments-tab::part(CustomStylingContainer){margin-top:0px;cursor:pointer}.TournamentsPage.MiniMode .TabContent,.TournamentsPage.MiniMode casino-tournaments-tab{padding:0 16px}.TournamentsPage.MiniMode .TabContent.Rules{padding-bottom:28px}.TournamentsPage.MiniMode .TabContent.Games{padding-bottom:30px}.TournamentsPage.MiniMode .TabContent.Games .GameItems{text-align:center;margin:auto;margin-top:39px}.TournamentsPage.MiniMode .TabContent.Games .GameItems.OneGame{width:100%}.TournamentsPage.MiniMode .TabContent.Games .GameItems.TwoGames{width:100%;display:flex}.TournamentsPage.MiniMode .TabContent.Games .GameItems.TwoGames div{width:50%}.TournamentsPage.MiniMode .TabContent.Games .GameItems span{color:#FF8364;font-size:12px;text-align:center;text-decoration-line:underline;cursor:pointer;margin-top:5px}.TournamentsPage.MiniMode .TabContent.Games .GameItems svg,.TournamentsPage.MiniMode .TabContent.Games .GameItems .svg{height:70px;display:block;margin:auto}.TournamentsPage.MiniMode .TabContent.Games .GameItems svg.ball,.TournamentsPage.MiniMode .TabContent.Games .GameItems .svg.ball{width:98px}.TournamentsPage.MiniMode .TabContent.Games .GamesTabNav{width:50%}.TournamentsPage.MiniMode .BottomButton{font-weight:600;font-size:15px;text-align:center;height:35px;width:60%;margin:20px auto;align-items:center;padding:8.72351px 12.6887px;background:#FF8364;box-shadow:0px 0.793047px 2.37914px rgba(0, 0, 0, 0.1), 0px 1.58609px 0.793047px rgba(0, 0, 0, 0.06), 0px 0.793047px 0.793047px rgba(0, 0, 0, 0.07);border-radius:4.75828px}.TournamentsPage.MiniMode .Thumbnail{position:relative}.TournamentsPage.MiniMode .Thumbnail.Mobile{border:0px none;padding:6px 5px 10px;background:#333333}.TournamentsPage.MiniMode .Thumbnail.MiniMode .CardImg{margin-bottom:5px;width:65px;height:40px}.TournamentsPage.MiniMode .Thumbnail .CardImg{height:300px;width:100%;background:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:auto}.TournamentsPage.MiniMode .Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.TournamentsPage.MiniMode .Thumbnail .CardImg.Mobile{width:65px;height:40px;display:inline-block}.TournamentsPage.MiniMode .Thumbnail .MobileRight{display:inline-block;line-height:20px;font-size:11px;padding:2px 3px;vertical-align:top;width:calc(100% - 70px)}.TournamentsPage.MiniMode .Thumbnail .MobileRight .Title{text-transform:capitalize;font-size:var(--emw--font-size-medium, 14px);font-weight:600;background-color:transparent;height:fit-content;margin-bottom:initial}.TournamentsPage.MiniMode .Thumbnail .MobileRight .Title.Skeleton{height:var(--emw-skeleton-title-height, 30px)}.TournamentsPage.MiniMode .Thumbnail .Status{background:#000000;display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.TournamentsPage.MiniMode .Thumbnail .Enrolled{background:#2B2B5D;color:#aaaabe;display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}')}function Ia(e,t,n){const r=e.slice();return r[79]=t[n],r}function Na(e){let t,n=e[18]("loading")+"",r;return{c(){t=s.element("p"),r=s.text(n),s.attr(t,"class","LoadingMessage"),s.attr(t,"part","LoadingMessage")},m(a,i){s.insert(a,t,i),s.append(t,r)},p(a,i){i[0]&262144&&n!==(n=a[18]("loading")+"")&&s.set_data(r,n)},d(a){a&&s.detach(t)}}}function vf(e){let t,n,r,a=!e[16]&&La(),i=e[16]&&Aa(e);return{c(){t=s.element("div"),a&&a.c(),n=s.space(),i&&i.c(),s.attr(t,"class",r=(ze(e[29])?"MobileClass":"")+(e[4]=="true"?" TournamentCardDetails":" FullSize")),s.attr(t,"part","MobileTournamentCardDetails")},m(o,l){s.insert(o,t,l),a&&a.m(t,null),s.append(t,n),i&&i.m(t,null)},p(o,l){o[16]?a&&(a.d(1),a=null):a||(a=La(),a.c(),a.m(t,n)),o[16]?i?i.p(o,l):(i=Aa(o),i.c(),i.m(t,null)):i&&(i.d(1),i=null),l[0]&16&&r!==(r=(ze(o[29])?"MobileClass":"")+(o[4]=="true"?" TournamentCardDetails":" FullSize"))&&s.attr(t,"class",r)},d(o){o&&s.detach(t),a&&a.d(),i&&i.d()}}}function wf(e){let t,n,r,a,i,o,l,u=e[21].length>0&&Fa(e);return{c(){var h;t=s.element("div"),n=s.element("casino-tournaments-thumbnail-controller"),i=s.space(),u&&u.c(),s.set_custom_element_data(n,"session",e[0]),s.set_custom_element_data(n,"userid",e[1]),s.set_custom_element_data(n,"endpoint",e[3]),s.set_custom_element_data(n,"tournamenturl",r=(h=e[16])==null?void 0:h.href),s.set_custom_element_data(n,"showdetails","false"),s.set_custom_element_data(n,"showslider","false"),s.set_custom_element_data(n,"showenrolled","true"),s.set_custom_element_data(n,"fullsize",a=!!e[4]),s.set_custom_element_data(n,"loginurl",e[11]),s.set_custom_element_data(n,"loginevent",e[9]),s.set_custom_element_data(n,"registerurl",e[12]),s.set_custom_element_data(n,"registerevent",e[10]),s.set_custom_element_data(n,"clientstyling",e[14]),s.set_custom_element_data(n,"clientstylingurl",e[15]),s.set_custom_element_data(n,"translationurl",e[7]),s.set_custom_element_data(n,"lang",e[5]),s.set_custom_element_data(n,"currency",e[6]),s.set_custom_element_data(n,"mbsource",e[8]),s.set_custom_element_data(n,"keepbrowsercontext",e[13]),s.set_custom_element_data(n,"exportparts",`Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, Games, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
|
|
34
|
+
TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,
|
|
35
|
+
TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton
|
|
36
|
+
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, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper`),s.attr(t,"class",o=(ze(e[29])?"MobileClass":"")+(e[4]=="true"?"TournamentCardDetails":"FullSize")),s.attr(t,"part",l=(ze(e[29])?"MobileClass":"")+(e[4]=="true"?"TournamentCardDetails":"FullSize"))},m(h,d){s.insert(h,t,d),s.append(t,n),s.append(t,i),u&&u.m(t,null)},p(h,d){var g;d[0]&1&&s.set_custom_element_data(n,"session",h[0]),d[0]&2&&s.set_custom_element_data(n,"userid",h[1]),d[0]&8&&s.set_custom_element_data(n,"endpoint",h[3]),d[0]&65536&&r!==(r=(g=h[16])==null?void 0:g.href)&&s.set_custom_element_data(n,"tournamenturl",r),d[0]&16&&a!==(a=!!h[4])&&s.set_custom_element_data(n,"fullsize",a),d[0]&2048&&s.set_custom_element_data(n,"loginurl",h[11]),d[0]&512&&s.set_custom_element_data(n,"loginevent",h[9]),d[0]&4096&&s.set_custom_element_data(n,"registerurl",h[12]),d[0]&1024&&s.set_custom_element_data(n,"registerevent",h[10]),d[0]&16384&&s.set_custom_element_data(n,"clientstyling",h[14]),d[0]&32768&&s.set_custom_element_data(n,"clientstylingurl",h[15]),d[0]&128&&s.set_custom_element_data(n,"translationurl",h[7]),d[0]&32&&s.set_custom_element_data(n,"lang",h[5]),d[0]&64&&s.set_custom_element_data(n,"currency",h[6]),d[0]&256&&s.set_custom_element_data(n,"mbsource",h[8]),d[0]&8192&&s.set_custom_element_data(n,"keepbrowsercontext",h[13]),h[21].length>0?u?u.p(h,d):(u=Fa(h),u.c(),u.m(t,null)):u&&(u.d(1),u=null),d[0]&16&&o!==(o=(ze(h[29])?"MobileClass":"")+(h[4]=="true"?"TournamentCardDetails":"FullSize"))&&s.attr(t,"class",o),d[0]&16&&l!==(l=(ze(h[29])?"MobileClass":"")+(h[4]=="true"?"TournamentCardDetails":"FullSize"))&&s.attr(t,"part",l)},d(h){h&&s.detach(t),u&&u.d()}}}function La(e){let t,n,r;return{c(){t=s.element("div"),t.innerHTML='<ui-skeleton class="Mobile CardImg" structure="rectangle" width="65px" height="40px"></ui-skeleton> <div class="MobileRight" part="ThumbnailRight"><ui-skeleton structure="text" width="100%" height="18px"></ui-skeleton> <ui-skeleton structure="text" width="100%" height="12px" margin-top="5px"></ui-skeleton></div>',n=s.space(),r=s.element("div"),r.innerHTML='<ui-skeleton structure="rectangle" width="100%" height="26px"></ui-skeleton>',s.attr(t,"class","Thumbnail MiniMode"),s.attr(t,"part","MiniThumbnail"),s.attr(r,"class","TournamentsRank"),s.attr(r,"part","TournamentsRank")},m(a,i){s.insert(a,t,i),s.insert(a,n,i),s.insert(a,r,i)},d(a){a&&(s.detach(t),s.detach(n),s.detach(r))}}}function Aa(e){let t,n,r,a,i=e[16].nameOrTitle+"",o,l,u,h,d,g,m,x,B,k,W;function de(T,j){return T[16].thumbnail?Sf:Tf}let Z=de(e),H=Z(e),N=e[16].startTime&&Ba(e);return{c(){t=s.element("div"),H.c(),n=s.space(),r=s.element("div"),a=s.element("div"),o=s.text(i),l=s.space(),u=s.element("div"),N&&N.c(),h=s.space(),d=s.element("div"),d.textContent="X",g=s.space(),m=s.element("casino-tournaments-rank"),s.attr(a,"class","Title"),s.attr(a,"part","ThumbnailRight_Title"),s.attr(u,"part","ThumbnailRight_Period"),s.attr(r,"class","MobileRight"),s.attr(r,"part","ThumbnailRight"),s.attr(d,"class","CloseButton"),s.attr(d,"part","CloseButton"),s.attr(t,"class","Thumbnail MiniMode"),s.attr(t,"part","MiniThumbnail"),s.set_custom_element_data(m,"part","ThumbnailRank"),s.set_custom_element_data(m,"userrank",x=e[24]?e[23].Rank:e[22].Rank),s.set_custom_element_data(m,"overallrank",e[26]),s.set_custom_element_data(m,"prize",B=e[24]?e[23].Prize||"-":e[22].Prize||"-"),s.set_custom_element_data(m,"tournamentid",e[2]),s.set_custom_element_data(m,"exportparts","casino-tournaments-rank, Rank, Icon, UserIcon, RankText, Rank_Arror_UP, Rank_Arror_Down, Prize, Icon, PrizeIcon, PrizeText"),s.set_custom_element_data(m,"clientstyling",e[14]),s.set_custom_element_data(m,"clientstylingurl",e[15]),s.set_custom_element_data(m,"translationurl",e[7]),s.set_custom_element_data(m,"mbsource",e[8])},m(T,j){s.insert(T,t,j),H.m(t,null),s.append(t,n),s.append(t,r),s.append(r,a),s.append(a,o),s.append(r,l),s.append(r,u),N&&N.m(u,null),s.append(t,h),s.append(t,d),s.insert(T,g,j),s.insert(T,m,j),k||(W=s.listen(d,"click",e[32]),k=!0)},p(T,j){Z===(Z=de(T))&&H?H.p(T,j):(H.d(1),H=Z(T),H&&(H.c(),H.m(t,n))),j[0]&65536&&i!==(i=T[16].nameOrTitle+"")&&s.set_data(o,i),T[16].startTime?N?N.p(T,j):(N=Ba(T),N.c(),N.m(u,null)):N&&(N.d(1),N=null),j[0]&29360128&&x!==(x=T[24]?T[23].Rank:T[22].Rank)&&s.set_custom_element_data(m,"userrank",x),j[0]&67108864&&s.set_custom_element_data(m,"overallrank",T[26]),j[0]&29360128&&B!==(B=T[24]?T[23].Prize||"-":T[22].Prize||"-")&&s.set_custom_element_data(m,"prize",B),j[0]&4&&s.set_custom_element_data(m,"tournamentid",T[2]),j[0]&16384&&s.set_custom_element_data(m,"clientstyling",T[14]),j[0]&32768&&s.set_custom_element_data(m,"clientstylingurl",T[15]),j[0]&128&&s.set_custom_element_data(m,"translationurl",T[7]),j[0]&256&&s.set_custom_element_data(m,"mbsource",T[8])},d(T){T&&(s.detach(t),s.detach(g),s.detach(m)),H.d(),N&&N.d(),k=!1,W()}}}function Tf(e){let t,n,r,a,i,o;return{c(){t=s.element("img"),s.attr(t,"part","CardImg"),s.attr(t,"class",n="CardImg "+(e[16].state=="Closing"||e[16].state=="Closed"?"CardImgFinished":"")),s.src_url_equal(t.src,r="https://i.stack.imgur.com/y9DpT.jpg")||s.attr(t,"src",r),s.attr(t,"width","65px"),s.attr(t,"height","40px"),s.attr(t,"title",a=e[16].nameOrTitle)},m(l,u){s.insert(l,t,u),i||(o=s.action_destroyer(e[30].call(null,t)),i=!0)},p(l,u){u[0]&65536&&n!==(n="CardImg "+(l[16].state=="Closing"||l[16].state=="Closed"?"CardImgFinished":""))&&s.attr(t,"class",n),u[0]&65536&&a!==(a=l[16].nameOrTitle)&&s.attr(t,"title",a)},d(l){l&&s.detach(t),i=!1,o()}}}function Sf(e){let t,n,r,a,i,o;return{c(){t=s.element("img"),s.attr(t,"part","CardImg"),s.attr(t,"class",n="Mobile CardImg "+(e[16].state=="Closing"||e[16].state=="Closed"?"CardImgFinished":"")),s.src_url_equal(t.src,r=e[16].thumbnail)||s.attr(t,"src",r),s.attr(t,"width","65px"),s.attr(t,"height","40px"),s.attr(t,"title",a=e[16].nameOrTitle)},m(l,u){s.insert(l,t,u),i||(o=s.action_destroyer(e[30].call(null,t)),i=!0)},p(l,u){u[0]&65536&&n!==(n="Mobile CardImg "+(l[16].state=="Closing"||l[16].state=="Closed"?"CardImgFinished":""))&&s.attr(t,"class",n),u[0]&65536&&!s.src_url_equal(t.src,r=l[16].thumbnail)&&s.attr(t,"src",r),u[0]&65536&&a!==(a=l[16].nameOrTitle)&&s.attr(t,"title",a)},d(l){l&&s.detach(t),i=!1,o()}}}function Ba(e){let t=e[18]("activePeriod",{values:{startdate:_(e[16].startTime).format("DD/MM/YYYY HH:mm"),enddate:_(e[16].endTime).format("DD/MM/YYYY HH:mm")}})+"",n;return{c(){n=s.text(t)},m(r,a){s.insert(r,n,a)},p(r,a){a[0]&327680&&t!==(t=r[18]("activePeriod",{values:{startdate:_(r[16].startTime).format("DD/MM/YYYY HH:mm"),enddate:_(r[16].endTime).format("DD/MM/YYYY HH:mm")}})+"")&&s.set_data(n,t)},d(r){r&&s.detach(n)}}}function Fa(e){let t,n=s.ensure_array_like(e[21]),r=[];for(let a=0;a<n.length;a+=1)r[a]=Ya(Ia(e,n,a));return{c(){for(let a=0;a<r.length;a+=1)r[a].c();t=s.empty()},m(a,i){for(let o=0;o<r.length;o+=1)r[o]&&r[o].m(a,i);s.insert(a,t,i)},p(a,i){if(i[0]&2146560){n=s.ensure_array_like(a[21]);let o;for(o=0;o<n.length;o+=1){const l=Ia(a,n,o);r[o]?r[o].p(l,i):(r[o]=Ya(l),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(a){a&&s.detach(t),s.destroy_each(r,a)}}}function Ya(e){let t,n,r;return{c(){t=s.element("casino-tournaments-details"),s.set_custom_element_data(t,"title",n=e[79].title),s.set_custom_element_data(t,"text",r=e[79].description),s.set_custom_element_data(t,"exportparts","DetailsCard, DetailsTitle, Title, CollapseButtonDetails, DetailsContent"),s.set_custom_element_data(t,"clientstyling",e[14]),s.set_custom_element_data(t,"clientstylingurl",e[15]),s.set_custom_element_data(t,"mbsource",e[8])},m(a,i){s.insert(a,t,i)},p(a,i){i[0]&2097152&&n!==(n=a[79].title)&&s.set_custom_element_data(t,"title",n),i[0]&2097152&&r!==(r=a[79].description)&&s.set_custom_element_data(t,"text",r),i[0]&16384&&s.set_custom_element_data(t,"clientstyling",a[14]),i[0]&32768&&s.set_custom_element_data(t,"clientstylingurl",a[15]),i[0]&256&&s.set_custom_element_data(t,"mbsource",a[8])},d(a){a&&s.detach(t)}}}function Ua(e){let t,n,r,a,i,o,l;return{c(){var u,h;t=s.element("casino-tournaments-thumbnail-rule"),s.set_custom_element_data(t,"lang",e[5]),s.set_custom_element_data(t,"tcurl",n=e[16].termsUrl||"#"),s.set_custom_element_data(t,"scorecriterial",r=e[16].scoreCriteria),s.set_custom_element_data(t,"betcount",e[28]),s.set_custom_element_data(t,"starttime",a=_(e[16].startTime).format("DD/MM/YYYY HH:mm:ss")),s.set_custom_element_data(t,"endtime",i=_(e[16].endTime).format("DD/MM/YYYY HH:mm:ss")),s.set_custom_element_data(t,"sportswallet",o=(u=e[16].wallet)==null?void 0:u.sports),s.set_custom_element_data(t,"casinowallet",l=(h=e[16].wallet)==null?void 0:h.casino),s.set_custom_element_data(t,"currency",e[6]),s.set_custom_element_data(t,"exportparts","casino-tournaments-thumbnail-rule, rule, RuleIcon, RuleTxt"),s.set_custom_element_data(t,"clientstyling",e[14]),s.set_custom_element_data(t,"clientstylingurl",e[15]),s.set_custom_element_data(t,"translationurl",e[7]),s.set_custom_element_data(t,"mbsource",e[8])},m(u,h){s.insert(u,t,h)},p(u,h){var d,g;h[0]&32&&s.set_custom_element_data(t,"lang",u[5]),h[0]&65536&&n!==(n=u[16].termsUrl||"#")&&s.set_custom_element_data(t,"tcurl",n),h[0]&65536&&r!==(r=u[16].scoreCriteria)&&s.set_custom_element_data(t,"scorecriterial",r),h[0]&268435456&&s.set_custom_element_data(t,"betcount",u[28]),h[0]&65536&&a!==(a=_(u[16].startTime).format("DD/MM/YYYY HH:mm:ss"))&&s.set_custom_element_data(t,"starttime",a),h[0]&65536&&i!==(i=_(u[16].endTime).format("DD/MM/YYYY HH:mm:ss"))&&s.set_custom_element_data(t,"endtime",i),h[0]&65536&&o!==(o=(d=u[16].wallet)==null?void 0:d.sports)&&s.set_custom_element_data(t,"sportswallet",o),h[0]&65536&&l!==(l=(g=u[16].wallet)==null?void 0:g.casino)&&s.set_custom_element_data(t,"casinowallet",l),h[0]&64&&s.set_custom_element_data(t,"currency",u[6]),h[0]&16384&&s.set_custom_element_data(t,"clientstyling",u[14]),h[0]&32768&&s.set_custom_element_data(t,"clientstylingurl",u[15]),h[0]&128&&s.set_custom_element_data(t,"translationurl",u[7]),h[0]&256&&s.set_custom_element_data(t,"mbsource",u[8])},d(u){u&&s.detach(t)}}}function Ga(e){let t;return{c(){t=s.element("casino-tournaments-thumbnail-games"),s.set_custom_element_data(t,"lang",e[5]),s.set_custom_element_data(t,"clientstyling",e[14]),s.set_custom_element_data(t,"clientstylingurl",e[15]),s.set_custom_element_data(t,"translationurl",e[7]),s.set_custom_element_data(t,"mbsource",e[8])},m(n,r){s.insert(n,t,r)},p(n,r){r[0]&32&&s.set_custom_element_data(t,"lang",n[5]),r[0]&16384&&s.set_custom_element_data(t,"clientstyling",n[14]),r[0]&32768&&s.set_custom_element_data(t,"clientstylingurl",n[15]),r[0]&128&&s.set_custom_element_data(t,"translationurl",n[7]),r[0]&256&&s.set_custom_element_data(t,"mbsource",n[8])},d(n){n&&s.detach(t)}}}function Wa(e){let t,n=e[18]("forwardMyTournaments")+"",r,a,i;return{c(){t=s.element("div"),r=s.text(n),s.attr(t,"class","BottomButton"),s.attr(t,"part","ThumbnailGotoTournamentsButton")},m(o,l){s.insert(o,t,l),s.append(t,r),a||(i=s.listen(t,"click",e[33].bind(this,"MyTournaments")),a=!0)},p(o,l){l[0]&262144&&n!==(n=o[18]("forwardMyTournaments")+"")&&s.set_data(r,n)},d(o){o&&s.detach(t),a=!1,i()}}}function Mf(e){var Oe;let t,n,r,a,i,o,l,u,h,d=e[18]("back")+"",g,m,x,B,k,W,de,Z,H,N,T,j,Ie,xe,rt,Ze,Ne,Pe,St,Je,at,Ye,ve,ee=e[20]&&Na(e);function ke(E,A){return E[27]?vf:wf}let Ue=ke(e),oe=Ue(e),V=e[16]&&Ua(e),fe=((Oe=e[16])==null?void 0:Oe.games)&&Ga(e),le=e[27]&&e[19]&&Wa(e);return{c(){ee&&ee.c(),t=s.space(),n=s.element("div"),r=s.element("div"),a=s.element("div"),i=s.element("div"),o=s.svg_element("svg"),l=s.svg_element("path"),u=s.space(),h=s.element("p"),g=s.text(d),m=s.space(),x=s.element("div"),oe.c(),B=s.space(),k=s.element("div"),W=s.element("div"),de=s.element("div"),Z=s.element("casino-tournaments-tab"),H=s.space(),N=s.element("div"),T=s.element("casino-tournaments-table"),Ie=s.space(),xe=s.element("div"),V&&V.c(),Ze=s.space(),Ne=s.element("div"),fe&&fe.c(),St=s.space(),le&&le.c(),s.attr(l,"stroke-linecap","round"),s.attr(l,"stroke-linejoin","round"),s.attr(l,"stroke-width","2"),s.attr(l,"d","M15 19l-7-7 7-7"),s.attr(o,"fill","none"),s.attr(o,"stroke","currentColor"),s.attr(o,"width","24"),s.attr(o,"height","24"),s.attr(o,"viewBox","0 0 24 24"),s.attr(o,"xmlns","http://www.w3.org/2000/svg"),s.attr(i,"class","BackButton"),s.attr(i,"part","BackButton"),s.attr(a,"class","TopButtons"),s.attr(a,"part","TopButtons"),s.set_custom_element_data(Z,"part","ThumbnailTab"),s.set_custom_element_data(Z,"tabs","leaderboard,rules,games"),s.set_custom_element_data(Z,"tab","leaderboard"),s.set_custom_element_data(Z,"tid",fs),s.set_custom_element_data(Z,"exportparts","CustomStylingContainer, ul, li, LiText, sup, SupText, active"),s.set_custom_element_data(Z,"clientstyling",e[14]),s.set_custom_element_data(Z,"clientstylingurl",e[15]),s.set_custom_element_data(Z,"mbsource",e[8]),s.attr(de,"class","PageTabNav"),s.set_custom_element_data(T,"firstrow","true"),s.set_custom_element_data(T,"sortable","false"),s.set_custom_element_data(T,"lang",e[5]),s.set_custom_element_data(T,"clientstyling",e[14]),s.set_custom_element_data(T,"clientstylingurl",e[15]),s.set_custom_element_data(T,"translationurl",e[7]),s.set_custom_element_data(T,"mbsource",e[8]),s.set_custom_element_data(T,"exportparts",`TableContent, TableUser, TableHeadRow, TableCell, CurrentUserRow, UnqualifiedRow, TableRank, Rank-1, Rank-2, Rank-3, RankFirstRow, TablePlayer, TablePoints, TablePrize, Qualified, TableUserTooltips, TableUserTooltipsEm, ExclamationMark,
|
|
37
|
+
TournamentsTable, LeftTable, LeftTableThead, LeftTableTr, LeftTableTh, LeftTableTd, LeftTableTdEm, LeftTableButton, LeftTableP, LeftTableTbody, FirstRow, RankCol, ScoreChangeFlag, Show, Hidden, Rank_Arror_UP, Rank_Arror_Down, ScoreUp, Flex, RightButton, CollapseButton, TooltipsRow`),s.attr(N,"class",j="TabContent "+(e[4]=="true"?"TournamentTableDetails ":"DisplayNone")+" "+(e[25]!="leaderboard"?"hidden":"")),s.attr(N,"part","ThumbnailTabContent"),s.attr(xe,"class",rt="TabContent Rules "+(e[25]!="rules"?"hidden":"")),s.attr(xe,"part","ThumbnailTabContent"),s.attr(Ne,"class",Pe="TabContent Games "+(e[25]!="games"?"hidden":"")),s.attr(Ne,"part","ThumbnailTabContent"),s.attr(W,"class","LeaderboardSectionWrapper"),s.attr(k,"class","TournamentContentDetails "+(ze(e[29])?"MobileClass":"")),s.attr(k,"part","TournamentContentDetails"),s.attr(x,"class","TournamentContentDetails "+(ze(e[29])?"MobileClass":"")),s.attr(x,"part","TournamentContentDetails "+(ze(e[29])?"MobileClass":"")),s.attr(r,"class","TournamentsSectionWrapper"),s.attr(r,"part","TournamentsSectionWrapper"),s.attr(n,"class",Je="TournamentsPage "+(e[27]?"MiniMode":"")+" "+(e[16]?"hidden":"")),s.attr(n,"part",at=e[27]?"MiniTournamentPage":"TournamentsPage")},m(E,A){ee&&ee.m(E,A),s.insert(E,t,A),s.insert(E,n,A),s.append(n,r),s.append(r,a),s.append(a,i),s.append(i,o),s.append(o,l),s.append(i,u),s.append(i,h),s.append(h,g),s.append(r,m),s.append(r,x),oe.m(x,null),s.append(x,B),s.append(x,k),s.append(k,W),s.append(W,de),s.append(de,Z),s.append(W,H),s.append(W,N),s.append(N,T),s.append(W,Ie),s.append(W,xe),V&&V.m(xe,null),s.append(W,Ze),s.append(W,Ne),fe&&fe.m(Ne,null),s.append(W,St),le&&le.m(W,null),e[47](n),Ye||(ve=s.listen(i,"click",e[31]),Ye=!0)},p(E,A){var Ge;E[20]?ee?ee.p(E,A):(ee=Na(E),ee.c(),ee.m(t.parentNode,t)):ee&&(ee.d(1),ee=null),A[0]&262144&&d!==(d=E[18]("back")+"")&&s.set_data(g,d),Ue===(Ue=ke(E))&&oe?oe.p(E,A):(oe.d(1),oe=Ue(E),oe&&(oe.c(),oe.m(x,B))),A[0]&16384&&s.set_custom_element_data(Z,"clientstyling",E[14]),A[0]&32768&&s.set_custom_element_data(Z,"clientstylingurl",E[15]),A[0]&256&&s.set_custom_element_data(Z,"mbsource",E[8]),A[0]&32&&s.set_custom_element_data(T,"lang",E[5]),A[0]&16384&&s.set_custom_element_data(T,"clientstyling",E[14]),A[0]&32768&&s.set_custom_element_data(T,"clientstylingurl",E[15]),A[0]&128&&s.set_custom_element_data(T,"translationurl",E[7]),A[0]&256&&s.set_custom_element_data(T,"mbsource",E[8]),A[0]&33554448&&j!==(j="TabContent "+(E[4]=="true"?"TournamentTableDetails ":"DisplayNone")+" "+(E[25]!="leaderboard"?"hidden":""))&&s.attr(N,"class",j),E[16]?V?V.p(E,A):(V=Ua(E),V.c(),V.m(xe,null)):V&&(V.d(1),V=null),A[0]&33554432&&rt!==(rt="TabContent Rules "+(E[25]!="rules"?"hidden":""))&&s.attr(xe,"class",rt),(Ge=E[16])!=null&&Ge.games?fe?fe.p(E,A):(fe=Ga(E),fe.c(),fe.m(Ne,null)):fe&&(fe.d(1),fe=null),A[0]&33554432&&Pe!==(Pe="TabContent Games "+(E[25]!="games"?"hidden":""))&&s.attr(Ne,"class",Pe),E[27]&&E[19]?le?le.p(E,A):(le=Wa(E),le.c(),le.m(W,null)):le&&(le.d(1),le=null),A[0]&134283264&&Je!==(Je="TournamentsPage "+(E[27]?"MiniMode":"")+" "+(E[16]?"hidden":""))&&s.attr(n,"class",Je),A[0]&134217728&&at!==(at=E[27]?"MiniTournamentPage":"TournamentsPage")&&s.attr(n,"part",at)},i:s.noop,o:s.noop,d(E){E&&(s.detach(t),s.detach(n)),ee&&ee.d(E),oe.d(),V&&V.d(),fe&&fe.d(),le&&le.d(),e[47](null),Ye=!1,ve()}}}let fs="pageTab";function xf(e,t,n){let r,a,i;s.component_subscribe(e,ds,f=>n(18,i=f));let{session:o=""}=t,{userid:l=""}=t,{tourid:u=""}=t,{endpoint:h=""}=t,{showleaderboard:d=""}=t,{cmsendpoint:g=""}=t,{lang:m=""}=t,{navigationbackbutton:x="Default"}=t,{currency:B="EUR"}=t,{tablelimit:k="30"}=t,{namemask:W=""}=t,{showunqualifiedplayer:de="true"}=t,{mobiletablelimit:Z="15"}=t,{updatetableintime:H="true"}=t,{viewmode:N=""}=t,{minscore:T=""}=t,{scorefractiondigit:j="2"}=t,{translationurl:Ie=""}=t,{mbsource:xe}=t,{loginevent:rt=""}=t,{registerevent:Ze=""}=t,{loginurl:Ne=""}=t,{registerurl:Pe=""}=t,{leaderboardoffset:St="0"}=t,{leaderboardlimit:Je="15"}=t,{keepbrowsercontext:at="false"}=t,{clientstyling:Ye=""}=t,{clientstylingurl:ve=""}=t,ee=!1,ke="",Ue=!0,oe=[],V,fe,le=window.navigator.userAgent,Oe={},E=!1,A,Ge,Qe={},_e=!1,Ce="leaderboard",Ot,rn,yn,We,c;bf({withLocale:"en",translations:{}});const y=()=>{fetch(Ie).then(O=>O.json()).then(O=>{c=O,Object.keys(O).forEach(F=>{fr(F,O[F])})}).catch(O=>{console.log(O)})};Object.keys(Ra).forEach(f=>{fr(f,Ra[f])});const w=f=>{f&&Object.keys(f).forEach(O=>{fr(O,f[O])})},b=["Rank","Player","Points","Prize"],D=f=>{const O=Number(j)||2;return{Rank:f.rank,Player:f.userID==ke?"me":f.shortName,Points:f.score.toLocaleString("en-US",{minimumFractionDigits:O,maximumFractionDigits:O}),Prize:f.prizeName,Unqualified:f.unqualified,BetCount:f.betCount,userID:f.userID}},M=f=>{n(24,_e=!1);let O=[];return f&&f.length>0&&f.forEach(F=>{let Re=D(F);F.userID==ke&&(n(23,Qe=Re),n(24,_e=!0)),O.push(Re)}),O},I=f=>{if(f.data)try{let O=JSON.parse(f.data);O.messageType=="TournamentUpdate"&&(window.postMessage({type:"UpdateTournamentView",tournamentData:O.item},window.location.href),n(16,V=O.item),Q(O.item),we())}catch(O){console.error(O)}},te=(f,O)=>{let F=`${h}/v1/tournaments/updates?filter=id=${f}&${O.toString()}`;Ge=new Ha.EventSourcePolyfill(F,{headers:{accept:"text/event-stream","X-SessionId":o}}),!1!="undefined"&&Ge.addEventListener("message",I)},C=f=>{if(f.data)try{let O=f.data,F=JSON.parse(O);if(!F||!F.items)return;let Re=M(F.items);window.postMessage({type:"CasinoTableData",tableData:Re},window.location.href),n(24,_e=Re.filter(ue=>ue.userID==ke).length>0),F.item&&(E=!0,n(22,Oe=D(F.item)),Oe&&window.postMessage({type:"CasinoTableFirstRowData",tableData:Oe},window.location.href));let me=_e?Qe.Rank:Oe.Rank,$=F.hasOwnProperty("total")&&Ot!=F.total;$&&n(26,Ot=F.total),(me!=rn||$)&&(window.postMessage({type:`TournamentRankInfo_${u}`,rankInfo:{rank:me,overallRank:Ot,prize:_e?Qe.Prize||"-":Oe.Prize||"-"}},window.location.href),rn=me),_e&&window.postMessage({type:"CasinoTableCurrentUserData",tableData:Qe},window.location.href)}catch(O){console.error(O)}},J=(f,O)=>{let F=`${h}/v1/tournaments/${f}/leaderboard/updates?HeartBeat=false&${O.toString()}`;A||(A=new Ha.EventSourcePolyfill(F,{headers:{accept:"text/event-stream","X-SessionId":o}}),typeof A!="undefined"&&(A.addEventListener("open",C),A.addEventListener("message",C),A.addEventListener("error",C)))},Q=f=>{window.postMessage({type:"TournamentsWalletsUpdate",wallet:f.wallet},window.location.href)},P=f=>{window.postMessage({type:"TournamentsGamesUpdate",details:f},window.location.href)},ne=(f,O)=>{let F=new URL(f+`/v1/tournaments/${O}`),Re=new Headers({"X-SessionId":o});F.searchParams.append("expand","games"),F.searchParams.append("language",m),F.searchParams.append("platform",Hr(le));let me={method:"GET",headers:Re};fetch(F.href,me).then($=>$.json()).then($=>{n(16,V=$.item),Q(V),P(V),te(u,F.searchParams)}).finally(()=>{n(20,Ue=!1)})},je=(f,O)=>{let F=new URL(f+`/v1/tournaments/${O}/leaderboard`),Re=new Headers;F.searchParams.append("language",m);let me=`includeUnqualifiedPlayer=${de}`;me=W?`${me},shortNameMask=${W}`:me,me=T?`${me},minscore=${T}`:me,F.searchParams.append("filter",me);let $=ze(le)==!0?Z:k;F.searchParams.append("pagination",`offset=0,limit=${$}`),o&&Re.append("X-SessionId",o),F.searchParams.append("platform",Hr(le)),fetch(F,{method:"GET",headers:Re}).then(ce=>ce.json()).then(ce=>{fe=M(ce.items),ce.item&&!_e&&(E=!0,n(22,Oe=D(ce.item))),rn=_e?Qe.Rank:Oe.Rank,n(26,Ot=ce.total),window.postMessage({type:"CasinoTableData",tableData:fe},window.location.href),window.postMessage({type:"CasinoTableColumns",tableColumns:b},window.location.href),E&&window.postMessage({type:"CasinoTableFirstRowData",tableData:Oe},window.location.href),H==="true"&&J(O,F.searchParams),_e&&window.postMessage({type:"CasinoTableCurrentUserData",tableData:Qe},window.location.href)})},Mt=f=>{if(!f.data||!f.data.type)return;const O=f.data.tid||"";switch(f.data.type){case"UserSessionID":n(19,ee=!0),f.data.session;break;case"PlayerID":ke=f.data.playerID;break;case"TournamentsTabSwitch":O===fs&&n(25,Ce=f.data.tab);break;case"TournamentThumbnailMounted":w(c);break;case"TournamentsTabListenerLoaded":Ft();break;case"TournamentsTableListenerLoaded":je(h,u);break;case"TournamentsRuleListenerLoaded":Q(f.data);break;case"TournamentsGamesListenerLoaded":P(V);break;default:console.warn(`Unhandled message type: ${f.data.type}`);break}},we=()=>{V.state=="Unstarted"&&i("scheduled"),V.state=="Running"&&i("ongoing"),(V.state=="Closed"||V.state=="Closing")&&i("finished")},ge=()=>{x=="Event"?window.postMessage({type:"RedirectBack"},window.location.href):x=="Default"&&window.history.back()},Le=()=>{window.postMessage({type:"OnCloseThumbnail"},window.location.href)},xt=f=>{window.postMessage({type:"GotoFromTournamentsPage",pageType:f},window.location.href)},At=()=>{o.length>0&&o!="false"?(ke=l,n(19,ee=!0)):n(19,ee=!1),n(20,Ue=!1)},Ke=()=>{Ca(m),setTimeout(()=>{Ft()},10)},Bt=()=>{Ca(m),ne(h,u)},be=()=>{fetch(`${g}/${u}`).then(f=>{try{return console.log(f),f.json()}catch(O){console.error(O)}}).then(f=>{f&&f.details&&n(21,oe=f.details)})},Ft=()=>{window.postMessage({type:"TournamentsTabsLocalize",tabTitleTranslations:{leaderboard:i("leaderBoard"),rules:i("rules"),games:i("games")}},window.location.href)};s.onMount(()=>(window.addEventListener("message",Mt,!1),()=>{window.removeEventListener("message",Mt),A&&(A.removeEventListener("open",C),A.removeEventListener("message",C),A.removeEventListener("error",C)),Ge&&Ge.removeEventListener("message",I)}));function ut(f){s.binding_callbacks[f?"unshift":"push"](()=>{We=f,n(17,We)})}return e.$$set=f=>{"session"in f&&n(0,o=f.session),"userid"in f&&n(1,l=f.userid),"tourid"in f&&n(2,u=f.tourid),"endpoint"in f&&n(3,h=f.endpoint),"showleaderboard"in f&&n(4,d=f.showleaderboard),"cmsendpoint"in f&&n(34,g=f.cmsendpoint),"lang"in f&&n(5,m=f.lang),"navigationbackbutton"in f&&n(35,x=f.navigationbackbutton),"currency"in f&&n(6,B=f.currency),"tablelimit"in f&&n(36,k=f.tablelimit),"namemask"in f&&n(37,W=f.namemask),"showunqualifiedplayer"in f&&n(38,de=f.showunqualifiedplayer),"mobiletablelimit"in f&&n(39,Z=f.mobiletablelimit),"updatetableintime"in f&&n(40,H=f.updatetableintime),"viewmode"in f&&n(41,N=f.viewmode),"minscore"in f&&n(42,T=f.minscore),"scorefractiondigit"in f&&n(43,j=f.scorefractiondigit),"translationurl"in f&&n(7,Ie=f.translationurl),"mbsource"in f&&n(8,xe=f.mbsource),"loginevent"in f&&n(9,rt=f.loginevent),"registerevent"in f&&n(10,Ze=f.registerevent),"loginurl"in f&&n(11,Ne=f.loginurl),"registerurl"in f&&n(12,Pe=f.registerurl),"leaderboardoffset"in f&&n(44,St=f.leaderboardoffset),"leaderboardlimit"in f&&n(45,Je=f.leaderboardlimit),"keepbrowsercontext"in f&&n(13,at=f.keepbrowsercontext),"clientstyling"in f&&n(14,Ye=f.clientstyling),"clientstylingurl"in f&&n(15,ve=f.clientstylingurl)},e.$$.update=()=>{e.$$.dirty[0]&3&&o&&l&&At(),e.$$.dirty[0]&32&&m&&Ke(),e.$$.dirty[0]&128&&Ie&&y(),e.$$.dirty[0]&44&&n(46,r=u&&h&&m),e.$$.dirty[0]&12|e.$$.dirty[1]&32768&&r&&Bt()&&je(h,u),e.$$.dirty[0]&4|e.$$.dirty[1]&8&&g&&u&&be(),e.$$.dirty[1]&1024&&n(27,yn=N!="desktop"&&ze(le)),e.$$.dirty[0]&147456&&Ye&&We&&s.setClientStyling(We,Ye),e.$$.dirty[0]&163840&&ve&&We&&s.setClientStylingURL(We,ve),e.$$.dirty[0]&131328&&xe&&We&&s.setStreamStyling(We,`${xe}.Style`),e.$$.dirty[0]&327680&&n(28,a=(V==null?void 0:V.minBetCount)||i("unlimited"))},[o,l,u,h,d,m,B,Ie,xe,rt,Ze,Ne,Pe,at,Ye,ve,V,We,i,ee,Ue,oe,Oe,Qe,_e,Ce,Ot,yn,a,le,we,ge,Le,xt,g,x,k,W,de,Z,H,N,T,j,St,Je,r,ut]}class cs extends s.SvelteComponent{constructor(t){super(),s.init(this,t,xf,Mf,s.safe_not_equal,{session:0,userid:1,tourid:2,endpoint:3,showleaderboard:4,cmsendpoint:34,lang:5,navigationbackbutton:35,currency:6,tablelimit:36,namemask:37,showunqualifiedplayer:38,mobiletablelimit:39,updatetableintime:40,viewmode:41,minscore:42,scorefractiondigit:43,translationurl:7,mbsource:8,loginevent:9,registerevent:10,loginurl:11,registerurl:12,leaderboardoffset:44,leaderboardlimit:45,keepbrowsercontext:13,clientstyling:14,clientstylingurl:15},yf,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),s.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),s.flush()}get tourid(){return this.$$.ctx[2]}set tourid(t){this.$$set({tourid:t}),s.flush()}get endpoint(){return this.$$.ctx[3]}set endpoint(t){this.$$set({endpoint:t}),s.flush()}get showleaderboard(){return this.$$.ctx[4]}set showleaderboard(t){this.$$set({showleaderboard:t}),s.flush()}get cmsendpoint(){return this.$$.ctx[34]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),s.flush()}get lang(){return this.$$.ctx[5]}set lang(t){this.$$set({lang:t}),s.flush()}get navigationbackbutton(){return this.$$.ctx[35]}set navigationbackbutton(t){this.$$set({navigationbackbutton:t}),s.flush()}get currency(){return this.$$.ctx[6]}set currency(t){this.$$set({currency:t}),s.flush()}get tablelimit(){return this.$$.ctx[36]}set tablelimit(t){this.$$set({tablelimit:t}),s.flush()}get namemask(){return this.$$.ctx[37]}set namemask(t){this.$$set({namemask:t}),s.flush()}get showunqualifiedplayer(){return this.$$.ctx[38]}set showunqualifiedplayer(t){this.$$set({showunqualifiedplayer:t}),s.flush()}get mobiletablelimit(){return this.$$.ctx[39]}set mobiletablelimit(t){this.$$set({mobiletablelimit:t}),s.flush()}get updatetableintime(){return this.$$.ctx[40]}set updatetableintime(t){this.$$set({updatetableintime:t}),s.flush()}get viewmode(){return this.$$.ctx[41]}set viewmode(t){this.$$set({viewmode:t}),s.flush()}get minscore(){return this.$$.ctx[42]}set minscore(t){this.$$set({minscore:t}),s.flush()}get scorefractiondigit(){return this.$$.ctx[43]}set scorefractiondigit(t){this.$$set({scorefractiondigit:t}),s.flush()}get translationurl(){return this.$$.ctx[7]}set translationurl(t){this.$$set({translationurl:t}),s.flush()}get mbsource(){return this.$$.ctx[8]}set mbsource(t){this.$$set({mbsource:t}),s.flush()}get loginevent(){return this.$$.ctx[9]}set loginevent(t){this.$$set({loginevent:t}),s.flush()}get registerevent(){return this.$$.ctx[10]}set registerevent(t){this.$$set({registerevent:t}),s.flush()}get loginurl(){return this.$$.ctx[11]}set loginurl(t){this.$$set({loginurl:t}),s.flush()}get registerurl(){return this.$$.ctx[12]}set registerurl(t){this.$$set({registerurl:t}),s.flush()}get leaderboardoffset(){return this.$$.ctx[44]}set leaderboardoffset(t){this.$$set({leaderboardoffset:t}),s.flush()}get leaderboardlimit(){return this.$$.ctx[45]}set leaderboardlimit(t){this.$$set({leaderboardlimit:t}),s.flush()}get keepbrowsercontext(){return this.$$.ctx[13]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),s.flush()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(t){this.$$set({clientstyling:t}),s.flush()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),s.flush()}}customElements.define("casino-tournaments-page-controller",s.create_custom_element(cs,{session:{},userid:{},tourid:{},endpoint:{},showleaderboard:{},cmsendpoint:{},lang:{},navigationbackbutton:{},currency:{},tablelimit:{},namemask:{},showunqualifiedplayer:{},mobiletablelimit:{},updatetableintime:{},viewmode:{},minscore:{},scorefractiondigit:{},translationurl:{},mbsource:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},leaderboardoffset:{},leaderboardlimit:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{}},[],[],!0));const Ef=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=Nt;exports.$format=ds;exports.$locale=yt;exports.CasinoTournamentsPageController_ce=Ef;exports.addMessages=aa;exports.getDevice=Hr;exports.isMobile=ze;
|