@everymatrix/casino-tournaments-list-controller 1.0.16 → 1.0.70

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.
Files changed (30) hide show
  1. package/components/CasinoTournamentsListController-CWLfTxVT.js +6960 -0
  2. package/components/CasinoTournamentsListController-CnWQaXVa.cjs +15 -0
  3. package/components/CasinoTournamentsThumbnail-BFbGzpfu.cjs +4 -0
  4. package/components/CasinoTournamentsThumbnail-mcL0JjXT.js +885 -0
  5. package/components/CasinoTournamentsThumbnailController-Bn8kjfIU.js +1841 -0
  6. package/components/CasinoTournamentsThumbnailController-CwJ7_v2t.cjs +3 -0
  7. package/components/CasinoTournamentsThumbnailDuration-Dl-XBfi1.js +515 -0
  8. package/components/CasinoTournamentsThumbnailDuration-eGvQ1qhM.cjs +1 -0
  9. package/components/CasinoTournamentsThumbnailGamesSlider-BO_HF7nJ.cjs +1 -0
  10. package/components/CasinoTournamentsThumbnailGamesSlider-BscFDLzy.js +457 -0
  11. package/components/CasinoTournamentsThumbnailPrizes-BESiwP4Y.js +330 -0
  12. package/components/CasinoTournamentsThumbnailPrizes-CEt0S6e4.cjs +1 -0
  13. package/es2015/casino-tournaments-list-controller.cjs +1 -0
  14. package/es2015/casino-tournaments-list-controller.js +16 -0
  15. package/package.json +17 -33
  16. package/.eslintrc +0 -84
  17. package/README.md +0 -30
  18. package/dist/casino-tournaments-list-controller.js +0 -2
  19. package/dist/casino-tournaments-list-controller.js.map +0 -1
  20. package/index.html +0 -37
  21. package/index.js +0 -1
  22. package/public/favicon.png +0 -0
  23. package/public/reset.css +0 -48
  24. package/rollup.config.js +0 -67
  25. package/src/CasinoTournamentsListController.svelte +0 -207
  26. package/src/i18n.js +0 -27
  27. package/src/index.ts +0 -4
  28. package/src/translations.js +0 -47
  29. package/stories/CasinoTournamentsListController.stories.js +0 -13
  30. package/tsconfig.json +0 -6
@@ -0,0 +1,15 @@
1
+ "use strict";var gi=Object.defineProperty,pi=Object.defineProperties;var bi=Object.getOwnPropertyDescriptors;var un=Object.getOwnPropertySymbols;var vi=Object.prototype.hasOwnProperty,wi=Object.prototype.propertyIsEnumerable;var nr=(e,t,r)=>t in e?gi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ln=(e,t)=>{for(var r in t||(t={}))vi.call(t,r)&&nr(e,r,t[r]);if(un)for(var r of un(t))wi.call(t,r)&&nr(e,r,t[r]);return e},hn=(e,t)=>pi(e,bi(t));var z=(e,t,r)=>nr(e,typeof t!="symbol"?t+"":t,r);var fn=(e,t,r)=>new Promise((n,s)=>{var i=l=>{try{o(r.next(l))}catch(u){s(u)}},a=l=>{try{o(r.throw(l))}catch(u){s(u)}},o=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,a);o((r=r.apply(e,t)).next())});function j(){}function Yn(e){return e()}function cn(){return Object.create(null)}function je(e){e.forEach(Yn)}function ct(e){return typeof e=="function"}function Ar(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let bt;function Si(e,t){return e===t?!0:(bt||(bt=document.createElement("a")),bt.href=t,e===bt.href)}function xi(e){return Object.keys(e).length===0}function Fn(e,...t){if(e==null){for(const n of t)n(void 0);return j}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Un(e,t,r){e.$$.on_destroy.push(Fn(t,r))}function Ei(e){return e&&ct(e.destroy)?e.destroy:j}function Ft(e,t){e.appendChild(t)}function Gn(e,t,r){const n=Mi(e);if(!n.getElementById(t)){const s=Oe("style");s.id=t,s.textContent=r,Ti(n,s)}}function Mi(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Ti(e,t){return Ft(e.head||e,t),t.sheet}function Ve(e,t,r){e.insertBefore(t,r||null)}function Se(e){e.parentNode&&e.parentNode.removeChild(e)}function $n(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function Oe(e){return document.createElement(e)}function Oi(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Ut(e){return document.createTextNode(e)}function Di(){return Ut(" ")}function Wn(){return Ut("")}function mr(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function Fe(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function S(e,t,r){const n=t.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:Fe(e,t,r)}function ki(e){return Array.from(e.childNodes)}function jn(e,t){t=""+t,e.data!==t&&(e.data=t)}function Pi(e,t,r,n){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}let vt;function Ni(){if(vt===void 0){vt=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(e){vt=!0}}return vt}function Hi(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const n=Oe("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const s=Ni();let i;return s?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",i=mr(window,"message",a=>{a.source===n.contentWindow&&t()})):(n.src="about:blank",n.onload=()=>{i=mr(n.contentWindow,"resize",t),t()}),Ft(e,n),()=>{(s||i&&n.contentWindow)&&i(),Se(n)}}function Ai(e,t,r){e.classList.toggle(t,!!r)}function Li(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let it;function nt(e){it=e}function Ci(){if(!it)throw new Error("Function called outside component initialization");return it}function Vn(e){Ci().$$.on_mount.push(e)}const Ae=[],Nt=[];let Re=[];const dn=[],Ri=Promise.resolve();let _r=!1;function Ii(){_r||(_r=!0,Ri.then(B))}function Ht(e){Re.push(e)}const sr=new Set;let Pe=0;function B(){if(Pe!==0)return;const e=it;do{try{for(;Pe<Ae.length;){const t=Ae[Pe];Pe++,nt(t),Bi(t.$$)}}catch(t){throw Ae.length=0,Pe=0,t}for(nt(null),Ae.length=0,Pe=0;Nt.length;)Nt.pop()();for(let t=0;t<Re.length;t+=1){const r=Re[t];sr.has(r)||(sr.add(r),r())}Re.length=0}while(Ae.length);for(;dn.length;)dn.pop()();_r=!1,sr.clear(),nt(e)}function Bi(e){if(e.fragment!==null){e.update(),je(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Ht)}}function Yi(e){const t=[],r=[];Re.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),Re=t}const Fi=new Set;function Ui(e,t){e&&e.i&&(Fi.delete(e),e.i(t))}function yr(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Gi(e,t,r){const{fragment:n,after_update:s}=e.$$;n&&n.m(t,r),Ht(()=>{const i=e.$$.on_mount.map(Yn).filter(ct);e.$$.on_destroy?e.$$.on_destroy.push(...i):je(i),e.$$.on_mount=[]}),s.forEach(Ht)}function $i(e,t){const r=e.$$;r.fragment!==null&&(Yi(r.after_update),je(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Wi(e,t){e.$$.dirty[0]===-1&&(Ae.push(e),Ii(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function zn(e,t,r,n,s,i,a=null,o=[-1]){const l=it;nt(e);const u=e.$$={fragment:null,ctx:[],props:i,update:j,not_equal:s,bound:cn(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:cn(),dirty:o,skip_bound:!1,root:t.target||l.$$.root};a&&a(u.root);let f=!1;if(u.ctx=r?r(e,t.props||{},(m,_,...D)=>{const N=D.length?D[0]:_;return u.ctx&&s(u.ctx[m],u.ctx[m]=N)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](N),f&&Wi(e,m)),_}):[],u.update(),f=!0,je(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){const m=ki(t.target);u.fragment&&u.fragment.l(m),m.forEach(Se)}else u.fragment&&u.fragment.c();t.intro&&Ui(e.$$.fragment),Gi(e,t.target,t.anchor),B()}nt(l)}let Zn;typeof HTMLElement=="function"&&(Zn=class extends HTMLElement{constructor(t,r,n){super();z(this,"$$ctor");z(this,"$$s");z(this,"$$c");z(this,"$$cn",!1);z(this,"$$d",{});z(this,"$$r",!1);z(this,"$$p_d",{});z(this,"$$l",{});z(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const s=this.$$c.$on(t,r);this.$$l_u.set(r,s)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const s=this.$$l_u.get(r);s&&(s(),this.$$l_u.delete(r))}}connectedCallback(){return fn(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let a;return{c:function(){a=Oe("slot"),i!=="default"&&Fe(a,"name",i)},m:function(u,f){Ve(u,a,f)},d:function(u){u&&Se(a)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Li(this);for(const i of this.$$s)i in n&&(r[i]=[t(i)]);for(const i of this.attributes){const a=this.$$g_p(i.name);a in this.$$d||(this.$$d[a]=Et(a,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:hn(ln({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const s=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const a=Et(i,this.$$d[i],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,a)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const i in this.$$l)for(const a of this.$$l[i]){const o=this.$$c.$on(i,a);this.$$l_u.set(a,o)}this.$$l={}}})}attributeChangedCallback(t,r,n){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Et(t,n,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Et(e,t,r,n){var i;const s=(i=r[e])==null?void 0:i.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Xn(e,t,r,n,s,i){let a=class extends Zn{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Object.keys(t).forEach(o=>{Object.defineProperty(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){var u;l=Et(o,l,t),this.$$d[o]=l,(u=this.$$c)==null||u.$set({[o]:l})}})}),n.forEach(o=>{Object.defineProperty(a.prototype,o,{get(){var l;return(l=this.$$c)==null?void 0:l[o]}})}),e.element=a,a}class qn{constructor(){z(this,"$$");z(this,"$$set")}$destroy(){$i(this,1),this.$destroy=j}$on(t,r){if(!ct(r))return j;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const s=n.indexOf(r);s!==-1&&n.splice(s,1)}}$set(t){this.$$set&&!xi(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ji="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ji);function Vi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zi(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.30.1
3
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4
+ //! license : MIT
5
+ //! momentjs.com
6
+ var Jn;function c(){return Jn.apply(null,arguments)}function Zi(e){Jn=e}function Q(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Te(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function M(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Lr(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(M(e,t))return!1;return!0}function W(e){return e===void 0}function _e(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function dt(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Qn(e,t){var r=[],n,s=e.length;for(n=0;n<s;++n)r.push(t(e[n],n));return r}function pe(e,t){for(var r in t)M(t,r)&&(e[r]=t[r]);return M(t,"toString")&&(e.toString=t.toString),M(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ae(e,t,r,n){return ws(e,t,r,n,!0).utc()}function Xi(){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 p(e){return e._pf==null&&(e._pf=Xi()),e._pf}var gr;Array.prototype.some?gr=Array.prototype.some:gr=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function Cr(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=p(e),r=gr.call(t.parsedDateParts,function(s){return s!=null}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n;return e._isValid}function Gt(e){var t=ae(NaN);return e!=null?pe(p(t),e):p(t).userInvalidated=!0,t}var mn=c.momentProperties=[],ir=!1;function Rr(e,t){var r,n,s,i=mn.length;if(W(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),W(t._i)||(e._i=t._i),W(t._f)||(e._f=t._f),W(t._l)||(e._l=t._l),W(t._strict)||(e._strict=t._strict),W(t._tzm)||(e._tzm=t._tzm),W(t._isUTC)||(e._isUTC=t._isUTC),W(t._offset)||(e._offset=t._offset),W(t._pf)||(e._pf=p(t)),W(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)n=mn[r],s=t[n],W(s)||(e[n]=s);return e}function mt(e){Rr(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ir===!1&&(ir=!0,c.updateOffset(this),ir=!1)}function K(e){return e instanceof mt||e!=null&&e._isAMomentObject!=null}function Kn(e){c.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+e)}function X(e,t){var r=!0;return pe(function(){if(c.deprecationHandler!=null&&c.deprecationHandler(null,e),r){var n=[],s,i,a,o=arguments.length;for(i=0;i<o;i++){if(s="",typeof arguments[i]=="object"){s+=`
7
+ [`+i+"] ";for(a in arguments[0])M(arguments[0],a)&&(s+=a+": "+arguments[0][a]+", ");s=s.slice(0,-2)}else s=arguments[i];n.push(s)}Kn(e+`
8
+ Arguments: `+Array.prototype.slice.call(n).join("")+`
9
+ `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var _n={};function es(e,t){c.deprecationHandler!=null&&c.deprecationHandler(e,t),_n[e]||(Kn(t),_n[e]=!0)}c.suppressDeprecationWarnings=!1;c.deprecationHandler=null;function oe(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function qi(e){var t,r;for(r in e)M(e,r)&&(t=e[r],oe(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function pr(e,t){var r=pe({},e),n;for(n in t)M(t,n)&&(Te(e[n])&&Te(t[n])?(r[n]={},pe(r[n],e[n]),pe(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)M(e,n)&&!M(t,n)&&Te(e[n])&&(r[n]=pe({},r[n]));return r}function Ir(e){e!=null&&this.set(e)}var br;Object.keys?br=Object.keys:br=function(e){var t,r=[];for(t in e)M(e,t)&&r.push(t);return r};var Ji={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Qi(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return oe(n)?n.call(t,r):n}function ie(e,t,r){var n=""+Math.abs(e),s=t-n.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}var Br=/(\[[^\[]*\])|(\\)?([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,wt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ar={},Ie={};function g(e,t,r,n){var s=n;typeof n=="string"&&(s=function(){return this[n]()}),e&&(Ie[e]=s),t&&(Ie[t[0]]=function(){return ie(s.apply(this,arguments),t[1],t[2])}),r&&(Ie[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function Ki(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function ea(e){var t=e.match(Br),r,n;for(r=0,n=t.length;r<n;r++)Ie[t[r]]?t[r]=Ie[t[r]]:t[r]=Ki(t[r]);return function(s){var i="",a;for(a=0;a<n;a++)i+=oe(t[a])?t[a].call(s,e):t[a];return i}}function Mt(e,t){return e.isValid()?(t=ts(t,e.localeData()),ar[t]=ar[t]||ea(t),ar[t](e)):e.localeData().invalidDate()}function ts(e,t){var r=5;function n(s){return t.longDateFormat(s)||s}for(wt.lastIndex=0;r>=0&&wt.test(e);)e=e.replace(wt,n),wt.lastIndex=0,r-=1;return e}var ta={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 ra(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Br).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var na="Invalid date";function sa(){return this._invalidDate}var ia="%d",aa=/\d{1,2}/;function oa(e){return this._ordinal.replace("%d",e)}var ua={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 la(e,t,r,n){var s=this._relativeTime[r];return oe(s)?s(e,t,r,n):s.replace(/%d/i,e)}function ha(e,t){var r=this._relativeTime[e>0?"future":"past"];return oe(r)?r(t):r.replace(/%s/i,t)}var yn={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function q(e){return typeof e=="string"?yn[e]||yn[e.toLowerCase()]:void 0}function Yr(e){var t={},r,n;for(n in e)M(e,n)&&(r=q(n),r&&(t[r]=e[n]));return t}var fa={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ca(e){var t=[],r;for(r in e)M(e,r)&&t.push({unit:r,priority:fa[r]});return t.sort(function(n,s){return n.priority-s.priority}),t}var rs=/\d/,V=/\d\d/,ns=/\d{3}/,Fr=/\d{4}/,$t=/[+-]?\d{6}/,P=/\d\d?/,ss=/\d\d\d\d?/,is=/\d\d\d\d\d\d?/,Wt=/\d{1,3}/,Ur=/\d{1,4}/,jt=/[+-]?\d{1,6}/,ze=/\d+/,Vt=/[+-]?\d+/,da=/Z|[+-]\d\d:?\d\d/gi,zt=/Z|[+-]\d\d(?::?\d\d)?/gi,ma=/[+-]?\d+(\.\d{1,3})?/,_t=/[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,Ze=/^[1-9]\d?/,Gr=/^([1-9]\d|\d)/,At;At={};function d(e,t,r){At[e]=oe(t)?t:function(n,s){return n&&r?r:t}}function _a(e,t){return M(At,e)?At[e](t._strict,t._locale):new RegExp(ya(e))}function ya(e){return de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,s,i){return r||n||s||i}))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Z(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function b(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Z(t)),r}var vr={};function O(e,t){var r,n=t,s;for(typeof e=="string"&&(e=[e]),_e(t)&&(n=function(i,a){a[t]=b(i)}),s=e.length,r=0;r<s;r++)vr[e[r]]=n}function yt(e,t){O(e,function(r,n,s,i){s._w=s._w||{},t(r,s._w,s,i)})}function ga(e,t,r){t!=null&&M(vr,e)&&vr[e](t,r._a,r,e)}function Zt(e){return e%4===0&&e%100!==0||e%400===0}var Y=0,fe=1,se=2,R=3,J=4,ce=5,Me=6,pa=7,ba=8;g("Y",0,0,function(){var e=this.year();return e<=9999?ie(e,4):"+"+e});g(0,["YY",2],0,function(){return this.year()%100});g(0,["YYYY",4],0,"year");g(0,["YYYYY",5],0,"year");g(0,["YYYYYY",6,!0],0,"year");d("Y",Vt);d("YY",P,V);d("YYYY",Ur,Fr);d("YYYYY",jt,$t);d("YYYYYY",jt,$t);O(["YYYYY","YYYYYY"],Y);O("YYYY",function(e,t){t[Y]=e.length===2?c.parseTwoDigitYear(e):b(e)});O("YY",function(e,t){t[Y]=c.parseTwoDigitYear(e)});O("Y",function(e,t){t[Y]=parseInt(e,10)});function st(e){return Zt(e)?366:365}c.parseTwoDigitYear=function(e){return b(e)+(b(e)>68?1900:2e3)};var as=Xe("FullYear",!0);function va(){return Zt(this.year())}function Xe(e,t){return function(r){return r!=null?(os(this,e,r),c.updateOffset(this,t),this):at(this,e)}}function at(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function os(e,t,r){var n,s,i,a,o;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(s?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(s?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(s?n.setUTCHours(r):n.setHours(r));case"Date":return void(s?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=r,a=e.month(),o=e.date(),o=o===29&&a===1&&!Zt(i)?28:o,s?n.setUTCFullYear(i,a,o):n.setFullYear(i,a,o)}}function wa(e){return e=q(e),oe(this[e])?this[e]():this}function Sa(e,t){if(typeof e=="object"){e=Yr(e);var r=ca(e),n,s=r.length;for(n=0;n<s;n++)this[r[n].unit](e[r[n].unit])}else if(e=q(e),oe(this[e]))return this[e](t);return this}function xa(e,t){return(e%t+t)%t}var L;Array.prototype.indexOf?L=Array.prototype.indexOf:L=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function $r(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=xa(t,12);return e+=(t-r)/12,r===1?Zt(e)?29:28:31-r%7%2}g("M",["MM",2],"Mo",function(){return this.month()+1});g("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});g("MMMM",0,0,function(e){return this.localeData().months(this,e)});d("M",P,Ze);d("MM",P,V);d("MMM",function(e,t){return t.monthsShortRegex(e)});d("MMMM",function(e,t){return t.monthsRegex(e)});O(["M","MM"],function(e,t){t[fe]=b(e)-1});O(["MMM","MMMM"],function(e,t,r,n){var s=r._locale.monthsParse(e,n,r._strict);s!=null?t[fe]=s:p(r).invalidMonth=e});var Ea="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),us="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ls=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ma=_t,Ta=_t;function Oa(e,t){return e?Q(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ls).test(t)?"format":"standalone"][e.month()]:Q(this._months)?this._months:this._months.standalone}function Da(e,t){return e?Q(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ls.test(t)?"format":"standalone"][e.month()]:Q(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ka(e,t,r){var n,s,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=ae([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(s=L.call(this._shortMonthsParse,a),s!==-1?s:null):(s=L.call(this._longMonthsParse,a),s!==-1?s:null):t==="MMM"?(s=L.call(this._shortMonthsParse,a),s!==-1?s:(s=L.call(this._longMonthsParse,a),s!==-1?s:null)):(s=L.call(this._longMonthsParse,a),s!==-1?s:(s=L.call(this._shortMonthsParse,a),s!==-1?s:null))}function Pa(e,t,r){var n,s,i;if(this._monthsParseExact)return ka.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=ae([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(i="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function hs(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=b(t);else if(t=e.localeData().monthsParse(t),!_e(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,$r(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function fs(e){return e!=null?(hs(this,e),c.updateOffset(this,!0),this):at(this,"Month")}function Na(){return $r(this.year(),this.month())}function Ha(e){return this._monthsParseExact?(M(this,"_monthsRegex")||cs.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(M(this,"_monthsShortRegex")||(this._monthsShortRegex=Ma),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Aa(e){return this._monthsParseExact?(M(this,"_monthsRegex")||cs.call(this),e?this._monthsStrictRegex:this._monthsRegex):(M(this,"_monthsRegex")||(this._monthsRegex=Ta),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function cs(){function e(l,u){return u.length-l.length}var t=[],r=[],n=[],s,i,a,o;for(s=0;s<12;s++)i=ae([2e3,s]),a=de(this.monthsShort(i,"")),o=de(this.months(i,"")),t.push(a),r.push(o),n.push(o),n.push(a);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function La(e,t,r,n,s,i,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,r,n,s,i,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,r,n,s,i,a),o}function ot(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Lt(e,t,r){var n=7+t-r,s=(7+ot(e,0,n).getUTCDay()-t)%7;return-s+n-1}function ds(e,t,r,n,s){var i=(7+r-n)%7,a=Lt(e,n,s),o=1+7*(t-1)+i+a,l,u;return o<=0?(l=e-1,u=st(l)+o):o>st(e)?(l=e+1,u=o-st(e)):(l=e,u=o),{year:l,dayOfYear:u}}function ut(e,t,r){var n=Lt(e.year(),t,r),s=Math.floor((e.dayOfYear()-n-1)/7)+1,i,a;return s<1?(a=e.year()-1,i=s+me(a,t,r)):s>me(e.year(),t,r)?(i=s-me(e.year(),t,r),a=e.year()+1):(a=e.year(),i=s),{week:i,year:a}}function me(e,t,r){var n=Lt(e,t,r),s=Lt(e+1,t,r);return(st(e)-n+s)/7}g("w",["ww",2],"wo","week");g("W",["WW",2],"Wo","isoWeek");d("w",P,Ze);d("ww",P,V);d("W",P,Ze);d("WW",P,V);yt(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=b(e)});function Ca(e){return ut(e,this._week.dow,this._week.doy).week}var Ra={dow:0,doy:6};function Ia(){return this._week.dow}function Ba(){return this._week.doy}function Ya(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Fa(e){var t=ut(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}g("d",0,"do","day");g("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});g("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});g("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});g("e",0,0,"weekday");g("E",0,0,"isoWeekday");d("d",P);d("e",P);d("E",P);d("dd",function(e,t){return t.weekdaysMinRegex(e)});d("ddd",function(e,t){return t.weekdaysShortRegex(e)});d("dddd",function(e,t){return t.weekdaysRegex(e)});yt(["dd","ddd","dddd"],function(e,t,r,n){var s=r._locale.weekdaysParse(e,n,r._strict);s!=null?t.d=s:p(r).invalidWeekday=e});yt(["d","e","E"],function(e,t,r,n){t[n]=b(e)});function Ua(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Ga(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 $a="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ms="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Wa="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ja=_t,Va=_t,za=_t;function Za(e,t){var r=Q(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Wr(r,this._week.dow):e?r[e.day()]:r}function Xa(e){return e===!0?Wr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function qa(e){return e===!0?Wr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ja(e,t,r){var n,s,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=ae([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(s=L.call(this._weekdaysParse,a),s!==-1?s:null):t==="ddd"?(s=L.call(this._shortWeekdaysParse,a),s!==-1?s:null):(s=L.call(this._minWeekdaysParse,a),s!==-1?s:null):t==="dddd"?(s=L.call(this._weekdaysParse,a),s!==-1||(s=L.call(this._shortWeekdaysParse,a),s!==-1)?s:(s=L.call(this._minWeekdaysParse,a),s!==-1?s:null)):t==="ddd"?(s=L.call(this._shortWeekdaysParse,a),s!==-1||(s=L.call(this._weekdaysParse,a),s!==-1)?s:(s=L.call(this._minWeekdaysParse,a),s!==-1?s:null)):(s=L.call(this._minWeekdaysParse,a),s!==-1||(s=L.call(this._weekdaysParse,a),s!==-1)?s:(s=L.call(this._shortWeekdaysParse,a),s!==-1?s:null))}function Qa(e,t,r){var n,s,i;if(this._weekdaysParseExact)return Ja.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=ae([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function Ka(e){if(!this.isValid())return e!=null?this:NaN;var t=at(this,"Day");return e!=null?(e=Ua(e,this.localeData()),this.add(e-t,"d")):t}function eo(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 to(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Ga(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function ro(e){return this._weekdaysParseExact?(M(this,"_weekdaysRegex")||jr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(M(this,"_weekdaysRegex")||(this._weekdaysRegex=ja),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function no(e){return this._weekdaysParseExact?(M(this,"_weekdaysRegex")||jr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(M(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Va),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function so(e){return this._weekdaysParseExact?(M(this,"_weekdaysRegex")||jr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(M(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=za),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function jr(){function e(f,m){return m.length-f.length}var t=[],r=[],n=[],s=[],i,a,o,l,u;for(i=0;i<7;i++)a=ae([2e3,1]).day(i),o=de(this.weekdaysMin(a,"")),l=de(this.weekdaysShort(a,"")),u=de(this.weekdays(a,"")),t.push(o),r.push(l),n.push(u),s.push(o),s.push(l),s.push(u);t.sort(e),r.sort(e),n.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Vr(){return this.hours()%12||12}function io(){return this.hours()||24}g("H",["HH",2],0,"hour");g("h",["hh",2],0,Vr);g("k",["kk",2],0,io);g("hmm",0,0,function(){return""+Vr.apply(this)+ie(this.minutes(),2)});g("hmmss",0,0,function(){return""+Vr.apply(this)+ie(this.minutes(),2)+ie(this.seconds(),2)});g("Hmm",0,0,function(){return""+this.hours()+ie(this.minutes(),2)});g("Hmmss",0,0,function(){return""+this.hours()+ie(this.minutes(),2)+ie(this.seconds(),2)});function _s(e,t){g(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}_s("a",!0);_s("A",!1);function ys(e,t){return t._meridiemParse}d("a",ys);d("A",ys);d("H",P,Gr);d("h",P,Ze);d("k",P,Ze);d("HH",P,V);d("hh",P,V);d("kk",P,V);d("hmm",ss);d("hmmss",is);d("Hmm",ss);d("Hmmss",is);O(["H","HH"],R);O(["k","kk"],function(e,t,r){var n=b(e);t[R]=n===24?0:n});O(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});O(["h","hh"],function(e,t,r){t[R]=b(e),p(r).bigHour=!0});O("hmm",function(e,t,r){var n=e.length-2;t[R]=b(e.substr(0,n)),t[J]=b(e.substr(n)),p(r).bigHour=!0});O("hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[R]=b(e.substr(0,n)),t[J]=b(e.substr(n,2)),t[ce]=b(e.substr(s)),p(r).bigHour=!0});O("Hmm",function(e,t,r){var n=e.length-2;t[R]=b(e.substr(0,n)),t[J]=b(e.substr(n))});O("Hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[R]=b(e.substr(0,n)),t[J]=b(e.substr(n,2)),t[ce]=b(e.substr(s))});function ao(e){return(e+"").toLowerCase().charAt(0)==="p"}var oo=/[ap]\.?m?\.?/i,uo=Xe("Hours",!0);function lo(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var gs={calendar:Ji,longDateFormat:ta,invalidDate:na,ordinal:ia,dayOfMonthOrdinalParse:aa,relativeTime:ua,months:Ea,monthsShort:us,week:Ra,weekdays:$a,weekdaysMin:Wa,weekdaysShort:ms,meridiemParse:oo},H={},et={},lt;function ho(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function gn(e){return e&&e.toLowerCase().replace("_","-")}function fo(e){for(var t=0,r,n,s,i;t<e.length;){for(i=gn(e[t]).split("-"),r=i.length,n=gn(e[t+1]),n=n?n.split("-"):null;r>0;){if(s=Xt(i.slice(0,r).join("-")),s)return s;if(n&&n.length>=r&&ho(i,n)>=r-1)break;r--}t++}return lt}function co(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Xt(e){var t=null,r;if(H[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&co(e))try{t=lt._abbr,r=zi,r("./locale/"+e),we(t)}catch(n){H[e]=null}return H[e]}function we(e,t){var r;return e&&(W(t)?r=ye(e):r=zr(e,t),r?lt=r:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),lt._abbr}function zr(e,t){if(t!==null){var r,n=gs;if(t.abbr=e,H[e]!=null)es("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."),n=H[e]._config;else if(t.parentLocale!=null)if(H[t.parentLocale]!=null)n=H[t.parentLocale]._config;else if(r=Xt(t.parentLocale),r!=null)n=r._config;else return et[t.parentLocale]||(et[t.parentLocale]=[]),et[t.parentLocale].push({name:e,config:t}),null;return H[e]=new Ir(pr(n,t)),et[e]&&et[e].forEach(function(s){zr(s.name,s.config)}),we(e),H[e]}else return delete H[e],null}function mo(e,t){if(t!=null){var r,n,s=gs;H[e]!=null&&H[e].parentLocale!=null?H[e].set(pr(H[e]._config,t)):(n=Xt(e),n!=null&&(s=n._config),t=pr(s,t),n==null&&(t.abbr=e),r=new Ir(t),r.parentLocale=H[e],H[e]=r),we(e)}else H[e]!=null&&(H[e].parentLocale!=null?(H[e]=H[e].parentLocale,e===we()&&we(e)):H[e]!=null&&delete H[e]);return H[e]}function ye(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return lt;if(!Q(e)){if(t=Xt(e),t)return t;e=[e]}return fo(e)}function _o(){return br(H)}function Zr(e){var t,r=e._a;return r&&p(e).overflow===-2&&(t=r[fe]<0||r[fe]>11?fe:r[se]<1||r[se]>$r(r[Y],r[fe])?se:r[R]<0||r[R]>24||r[R]===24&&(r[J]!==0||r[ce]!==0||r[Me]!==0)?R:r[J]<0||r[J]>59?J:r[ce]<0||r[ce]>59?ce:r[Me]<0||r[Me]>999?Me:-1,p(e)._overflowDayOfYear&&(t<Y||t>se)&&(t=se),p(e)._overflowWeeks&&t===-1&&(t=pa),p(e)._overflowWeekday&&t===-1&&(t=ba),p(e).overflow=t),e}var yo=/^\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)?)?$/,go=/^\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)?)?$/,po=/Z|[+-]\d\d(?::?\d\d)?/,St=[["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]],or=[["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/]],bo=/^\/?Date\((-?\d+)/i,vo=/^(?:(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 ps(e){var t,r,n=e._i,s=yo.exec(n)||go.exec(n),i,a,o,l,u=St.length,f=or.length;if(s){for(p(e).iso=!0,t=0,r=u;t<r;t++)if(St[t][1].exec(s[1])){a=St[t][0],i=St[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(s[3]){for(t=0,r=f;t<r;t++)if(or[t][1].exec(s[3])){o=(s[2]||" ")+or[t][0];break}if(o==null){e._isValid=!1;return}}if(!i&&o!=null){e._isValid=!1;return}if(s[4])if(po.exec(s[4]))l="Z";else{e._isValid=!1;return}e._f=a+(o||"")+(l||""),qr(e)}else e._isValid=!1}function So(e,t,r,n,s,i){var a=[xo(e),us.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(s,10)];return i&&a.push(parseInt(i,10)),a}function xo(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Eo(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Mo(e,t,r){if(e){var n=ms.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(n!==s)return p(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function To(e,t,r){if(e)return wo[e];if(t)return 0;var n=parseInt(r,10),s=n%100,i=(n-s)/100;return i*60+s}function bs(e){var t=vo.exec(Eo(e._i)),r;if(t){if(r=So(t[4],t[3],t[2],t[5],t[6],t[7]),!Mo(t[1],r,e))return;e._a=r,e._tzm=To(t[8],t[9],t[10]),e._d=ot.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function Oo(e){var t=bo.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(ps(e),e._isValid===!1)delete e._isValid;else return;if(bs(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:c.createFromInputFallback(e)}c.createFromInputFallback=X("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 Le(e,t,r){return e!=null?e:t!=null?t:r}function Do(e){var t=new Date(c.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Xr(e){var t,r,n=[],s,i,a;if(!e._d){for(s=Do(e),e._w&&e._a[se]==null&&e._a[fe]==null&&ko(e),e._dayOfYear!=null&&(a=Le(e._a[Y],s[Y]),(e._dayOfYear>st(a)||e._dayOfYear===0)&&(p(e)._overflowDayOfYear=!0),r=ot(a,0,e._dayOfYear),e._a[fe]=r.getUTCMonth(),e._a[se]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=s[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[R]===24&&e._a[J]===0&&e._a[ce]===0&&e._a[Me]===0&&(e._nextDay=!0,e._a[R]=0),e._d=(e._useUTC?ot:La).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[R]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==i&&(p(e).weekdayMismatch=!0)}}function ko(e){var t,r,n,s,i,a,o,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,r=Le(t.GG,e._a[Y],ut(k(),1,4).year),n=Le(t.W,1),s=Le(t.E,1),(s<1||s>7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=ut(k(),i,a),r=Le(t.gg,e._a[Y],u.year),n=Le(t.w,u.week),t.d!=null?(s=t.d,(s<0||s>6)&&(l=!0)):t.e!=null?(s=t.e+i,(t.e<0||t.e>6)&&(l=!0)):s=i),n<1||n>me(r,i,a)?p(e)._overflowWeeks=!0:l!=null?p(e)._overflowWeekday=!0:(o=ds(r,n,s,i,a),e._a[Y]=o.year,e._dayOfYear=o.dayOfYear)}c.ISO_8601=function(){};c.RFC_2822=function(){};function qr(e){if(e._f===c.ISO_8601){ps(e);return}if(e._f===c.RFC_2822){bs(e);return}e._a=[],p(e).empty=!0;var t=""+e._i,r,n,s,i,a,o=t.length,l=0,u,f;for(s=ts(e._f,e._locale).match(Br)||[],f=s.length,r=0;r<f;r++)i=s[r],n=(t.match(_a(i,e))||[])[0],n&&(a=t.substr(0,t.indexOf(n)),a.length>0&&p(e).unusedInput.push(a),t=t.slice(t.indexOf(n)+n.length),l+=n.length),Ie[i]?(n?p(e).empty=!1:p(e).unusedTokens.push(i),ga(i,n,e)):e._strict&&!n&&p(e).unusedTokens.push(i);p(e).charsLeftOver=o-l,t.length>0&&p(e).unusedInput.push(t),e._a[R]<=12&&p(e).bigHour===!0&&e._a[R]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[R]=Po(e._locale,e._a[R],e._meridiem),u=p(e).era,u!==null&&(e._a[Y]=e._locale.erasConvertYear(u,e._a[Y])),Xr(e),Zr(e)}function Po(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function No(e){var t,r,n,s,i,a,o=!1,l=e._f.length;if(l===0){p(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<l;s++)i=0,a=!1,t=Rr({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],qr(t),Cr(t)&&(a=!0),i+=p(t).charsLeftOver,i+=p(t).unusedTokens.length*10,p(t).score=i,o?i<n&&(n=i,r=t):(n==null||i<n||a)&&(n=i,r=t,a&&(o=!0));pe(e,r||t)}function Ho(e){if(!e._d){var t=Yr(e._i),r=t.day===void 0?t.date:t.day;e._a=Qn([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),Xr(e)}}function Ao(e){var t=new mt(Zr(vs(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function vs(e){var t=e._i,r=e._f;return e._locale=e._locale||ye(e._l),t===null||r===void 0&&t===""?Gt({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),K(t)?new mt(Zr(t)):(dt(t)?e._d=t:Q(r)?No(e):r?qr(e):Lo(e),Cr(e)||(e._d=null),e))}function Lo(e){var t=e._i;W(t)?e._d=new Date(c.now()):dt(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Oo(e):Q(t)?(e._a=Qn(t.slice(0),function(r){return parseInt(r,10)}),Xr(e)):Te(t)?Ho(e):_e(t)?e._d=new Date(t):c.createFromInputFallback(e)}function ws(e,t,r,n,s){var i={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(Te(e)&&Lr(e)||Q(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=s,i._l=r,i._i=e,i._f=t,i._strict=n,Ao(i)}function k(e,t,r,n){return ws(e,t,r,n,!1)}var Co=X("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=k.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Gt()}),Ro=X("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=k.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Gt()});function Ss(e,t){var r,n;if(t.length===1&&Q(t[0])&&(t=t[0]),!t.length)return k();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function Io(){var e=[].slice.call(arguments,0);return Ss("isBefore",e)}function Bo(){var e=[].slice.call(arguments,0);return Ss("isAfter",e)}var Yo=function(){return Date.now?Date.now():+new Date},tt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Fo(e){var t,r=!1,n,s=tt.length;for(t in e)if(M(e,t)&&!(L.call(tt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<s;++n)if(e[tt[n]]){if(r)return!1;parseFloat(e[tt[n]])!==b(e[tt[n]])&&(r=!0)}return!0}function Uo(){return this._isValid}function Go(){return ee(NaN)}function qt(e){var t=Yr(e),r=t.year||0,n=t.quarter||0,s=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,l=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=Fo(t),this._milliseconds=+f+u*1e3+l*6e4+o*1e3*60*60,this._days=+a+i*7,this._months=+s+n*3+r*12,this._data={},this._locale=ye(),this._bubble()}function Tt(e){return e instanceof qt}function wr(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function $o(e,t,r){var n=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),i=0,a;for(a=0;a<n;a++)b(e[a])!==b(t[a])&&i++;return i+s}function xs(e,t){g(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+ie(~~(r/60),2)+t+ie(~~r%60,2)})}xs("Z",":");xs("ZZ","");d("Z",zt);d("ZZ",zt);O(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Jr(zt,e)});var Wo=/([\+\-]|\d\d)/gi;function Jr(e,t){var r=(t||"").match(e),n,s,i;return r===null?null:(n=r[r.length-1]||[],s=(n+"").match(Wo)||["-",0,0],i=+(s[1]*60)+b(s[2]),i===0?0:s[0]==="+"?i:-i)}function Qr(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(K(e)||dt(e)?e.valueOf():k(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),c.updateOffset(r,!1),r):k(e).local()}function Sr(e){return-Math.round(e._d.getTimezoneOffset())}c.updateOffset=function(){};function jo(e,t,r){var n=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Jr(zt,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(s=Sr(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),n!==e&&(!t||this._changeInProgress?Ts(this,ee(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,c.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:Sr(this)}function Vo(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function zo(e){return this.utcOffset(0,e)}function Zo(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Sr(this),"m")),this}function Xo(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Jr(da,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function qo(e){return this.isValid()?(e=e?k(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Jo(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Qo(){if(!W(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Rr(e,this),e=vs(e),e._a?(t=e._isUTC?ae(e._a):k(e._a),this._isDSTShifted=this.isValid()&&$o(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ko(){return this.isValid()?!this._isUTC:!1}function eu(){return this.isValid()?this._isUTC:!1}function Es(){return this.isValid()?this._isUTC&&this._offset===0:!1}var tu=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ru=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ee(e,t){var r=e,n=null,s,i,a;return Tt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:_e(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=tu.exec(e))?(s=n[1]==="-"?-1:1,r={y:0,d:b(n[se])*s,h:b(n[R])*s,m:b(n[J])*s,s:b(n[ce])*s,ms:b(wr(n[Me]*1e3))*s}):(n=ru.exec(e))?(s=n[1]==="-"?-1:1,r={y:Ee(n[2],s),M:Ee(n[3],s),w:Ee(n[4],s),d:Ee(n[5],s),h:Ee(n[6],s),m:Ee(n[7],s),s:Ee(n[8],s)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(a=nu(k(r.from),k(r.to)),r={},r.ms=a.milliseconds,r.M=a.months),i=new qt(r),Tt(e)&&M(e,"_locale")&&(i._locale=e._locale),Tt(e)&&M(e,"_isValid")&&(i._isValid=e._isValid),i}ee.fn=qt.prototype;ee.invalid=Go;function Ee(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function pn(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function nu(e,t){var r;return e.isValid()&&t.isValid()?(t=Qr(t,e),e.isBefore(t)?r=pn(e,t):(r=pn(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Ms(e,t){return function(r,n){var s,i;return n!==null&&!isNaN(+n)&&(es(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=r,r=n,n=i),s=ee(r,n),Ts(this,s,e),this}}function Ts(e,t,r,n){var s=t._milliseconds,i=wr(t._days),a=wr(t._months);e.isValid()&&(n=n==null?!0:n,a&&hs(e,at(e,"Month")+a*r),i&&os(e,"Date",at(e,"Date")+i*r),s&&e._d.setTime(e._d.valueOf()+s*r),n&&c.updateOffset(e,i||a))}var su=Ms(1,"add"),iu=Ms(-1,"subtract");function Os(e){return typeof e=="string"||e instanceof String}function au(e){return K(e)||dt(e)||Os(e)||_e(e)||uu(e)||ou(e)||e===null||e===void 0}function ou(e){var t=Te(e)&&!Lr(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,i,a=n.length;for(s=0;s<a;s+=1)i=n[s],r=r||M(e,i);return t&&r}function uu(e){var t=Q(e),r=!1;return t&&(r=e.filter(function(n){return!_e(n)&&Os(e)}).length===0),t&&r}function lu(e){var t=Te(e)&&!Lr(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,i;for(s=0;s<n.length;s+=1)i=n[s],r=r||M(e,i);return t&&r}function hu(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function fu(e,t){arguments.length===1&&(arguments[0]?au(arguments[0])?(e=arguments[0],t=void 0):lu(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||k(),n=Qr(r,this).startOf("day"),s=c.calendarFormat(this,n)||"sameElse",i=t&&(oe(t[s])?t[s].call(this,r):t[s]);return this.format(i||this.localeData().calendar(s,this,k(r)))}function cu(){return new mt(this)}function du(e,t){var r=K(e)?e:k(e);return this.isValid()&&r.isValid()?(t=q(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function mu(e,t){var r=K(e)?e:k(e);return this.isValid()&&r.isValid()?(t=q(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function _u(e,t,r,n){var s=K(e)?e:k(e),i=K(t)?t:k(t);return this.isValid()&&s.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(s,r):!this.isBefore(s,r))&&(n[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function yu(e,t){var r=K(e)?e:k(e),n;return this.isValid()&&r.isValid()?(t=q(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function gu(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function pu(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function bu(e,t,r){var n,s,i;if(!this.isValid())return NaN;if(n=Qr(e,this),!n.isValid())return NaN;switch(s=(n.utcOffset()-this.utcOffset())*6e4,t=q(t),t){case"year":i=Ot(this,n)/12;break;case"month":i=Ot(this,n);break;case"quarter":i=Ot(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-s)/864e5;break;case"week":i=(this-n-s)/6048e5;break;default:i=this-n}return r?i:Z(i)}function Ot(e,t){if(e.date()<t.date())return-Ot(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),s,i;return t-n<0?(s=e.clone().add(r-1,"months"),i=(t-n)/(n-s)):(s=e.clone().add(r+1,"months"),i=(t-n)/(s-n)),-(r+i)||0}c.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";c.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function vu(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function wu(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?Mt(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):oe(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Mt(r,"Z")):Mt(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Su(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,s,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+n+s+i)}function xu(e){e||(e=this.isUtc()?c.defaultFormatUtc:c.defaultFormat);var t=Mt(this,e);return this.localeData().postformat(t)}function Eu(e,t){return this.isValid()&&(K(e)&&e.isValid()||k(e).isValid())?ee({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Mu(e){return this.from(k(),e)}function Tu(e,t){return this.isValid()&&(K(e)&&e.isValid()||k(e).isValid())?ee({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ou(e){return this.to(k(),e)}function Ds(e){var t;return e===void 0?this._locale._abbr:(t=ye(e),t!=null&&(this._locale=t),this)}var ks=X("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 Ps(){return this._locale}var Ct=1e3,Be=60*Ct,Rt=60*Be,Ns=(365*400+97)*24*Rt;function Ye(e,t){return(e%t+t)%t}function Hs(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Ns:new Date(e,t,r).valueOf()}function As(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Ns:Date.UTC(e,t,r)}function Du(e){var t,r;if(e=q(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?As:Hs,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ye(t+(this._isUTC?0:this.utcOffset()*Be),Rt);break;case"minute":t=this._d.valueOf(),t-=Ye(t,Be);break;case"second":t=this._d.valueOf(),t-=Ye(t,Ct);break}return this._d.setTime(t),c.updateOffset(this,!0),this}function ku(e){var t,r;if(e=q(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?As:Hs,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Rt-Ye(t+(this._isUTC?0:this.utcOffset()*Be),Rt)-1;break;case"minute":t=this._d.valueOf(),t+=Be-Ye(t,Be)-1;break;case"second":t=this._d.valueOf(),t+=Ct-Ye(t,Ct)-1;break}return this._d.setTime(t),c.updateOffset(this,!0),this}function Pu(){return this._d.valueOf()-(this._offset||0)*6e4}function Nu(){return Math.floor(this.valueOf()/1e3)}function Hu(){return new Date(this.valueOf())}function Au(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Lu(){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 Cu(){return this.isValid()?this.toISOString():null}function Ru(){return Cr(this)}function Iu(){return pe({},p(this))}function Bu(){return p(this).overflow}function Yu(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}g("N",0,0,"eraAbbr");g("NN",0,0,"eraAbbr");g("NNN",0,0,"eraAbbr");g("NNNN",0,0,"eraName");g("NNNNN",0,0,"eraNarrow");g("y",["y",1],"yo","eraYear");g("y",["yy",2],0,"eraYear");g("y",["yyy",3],0,"eraYear");g("y",["yyyy",4],0,"eraYear");d("N",Kr);d("NN",Kr);d("NNN",Kr);d("NNNN",qu);d("NNNNN",Ju);O(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var s=r._locale.erasParse(e,n,r._strict);s?p(r).era=s:p(r).invalidEra=e});d("y",ze);d("yy",ze);d("yyy",ze);d("yyyy",ze);d("yo",Qu);O(["y","yy","yyy","yyyy"],Y);O(["yo"],function(e,t,r,n){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Y]=r._locale.eraYearOrdinalParse(e,s):t[Y]=parseInt(e,10)});function Fu(e,t){var r,n,s,i=this._eras||ye("en")._eras;for(r=0,n=i.length;r<n;++r){switch(typeof i[r].since){case"string":s=c(i[r].since).startOf("day"),i[r].since=s.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":s=c(i[r].until).startOf("day").valueOf(),i[r].until=s.valueOf();break}}return i}function Uu(e,t,r){var n,s,i=this.eras(),a,o,l;for(e=e.toUpperCase(),n=0,s=i.length;n<s;++n)if(a=i[n].name.toUpperCase(),o=i[n].abbr.toUpperCase(),l=i[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return i[n];break;case"NNNN":if(a===e)return i[n];break;case"NNNNN":if(l===e)return i[n];break}else if([a,o,l].indexOf(e)>=0)return i[n]}function Gu(e,t){var r=e.since<=e.until?1:-1;return t===void 0?c(e.since).year():c(e.since).year()+(t-e.offset)*r}function $u(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function Wu(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function ju(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function Vu(){var e,t,r,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=s[e].since<=s[e].until?1:-1,n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return(this.year()-c(s[e].since).year())*r+s[e].offset;return this.year()}function zu(e){return M(this,"_erasNameRegex")||en.call(this),e?this._erasNameRegex:this._erasRegex}function Zu(e){return M(this,"_erasAbbrRegex")||en.call(this),e?this._erasAbbrRegex:this._erasRegex}function Xu(e){return M(this,"_erasNarrowRegex")||en.call(this),e?this._erasNarrowRegex:this._erasRegex}function Kr(e,t){return t.erasAbbrRegex(e)}function qu(e,t){return t.erasNameRegex(e)}function Ju(e,t){return t.erasNarrowRegex(e)}function Qu(e,t){return t._eraYearOrdinalRegex||ze}function en(){var e=[],t=[],r=[],n=[],s,i,a,o,l,u=this.eras();for(s=0,i=u.length;s<i;++s)a=de(u[s].name),o=de(u[s].abbr),l=de(u[s].narrow),t.push(a),e.push(o),r.push(l),n.push(a),n.push(o),n.push(l);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}g(0,["gg",2],0,function(){return this.weekYear()%100});g(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Jt(e,t){g(0,[e,e.length],0,t)}Jt("gggg","weekYear");Jt("ggggg","weekYear");Jt("GGGG","isoWeekYear");Jt("GGGGG","isoWeekYear");d("G",Vt);d("g",Vt);d("GG",P,V);d("gg",P,V);d("GGGG",Ur,Fr);d("gggg",Ur,Fr);d("GGGGG",jt,$t);d("ggggg",jt,$t);yt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=b(e)});yt(["gg","GG"],function(e,t,r,n){t[n]=c.parseTwoDigitYear(e)});function Ku(e){return Ls.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function el(e){return Ls.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function tl(){return me(this.year(),1,4)}function rl(){return me(this.isoWeekYear(),1,4)}function nl(){var e=this.localeData()._week;return me(this.year(),e.dow,e.doy)}function sl(){var e=this.localeData()._week;return me(this.weekYear(),e.dow,e.doy)}function Ls(e,t,r,n,s){var i;return e==null?ut(this,n,s).year:(i=me(e,n,s),t>i&&(t=i),il.call(this,e,t,r,n,s))}function il(e,t,r,n,s){var i=ds(e,t,r,n,s),a=ot(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}g("Q",0,"Qo","quarter");d("Q",rs);O("Q",function(e,t){t[fe]=(b(e)-1)*3});function al(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}g("D",["DD",2],"Do","date");d("D",P,Ze);d("DD",P,V);d("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});O(["D","DD"],se);O("Do",function(e,t){t[se]=b(e.match(P)[0])});var Cs=Xe("Date",!0);g("DDD",["DDDD",3],"DDDo","dayOfYear");d("DDD",Wt);d("DDDD",ns);O(["DDD","DDDD"],function(e,t,r){r._dayOfYear=b(e)});function ol(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}g("m",["mm",2],0,"minute");d("m",P,Gr);d("mm",P,V);O(["m","mm"],J);var ul=Xe("Minutes",!1);g("s",["ss",2],0,"second");d("s",P,Gr);d("ss",P,V);O(["s","ss"],ce);var ll=Xe("Seconds",!1);g("S",0,0,function(){return~~(this.millisecond()/100)});g(0,["SS",2],0,function(){return~~(this.millisecond()/10)});g(0,["SSS",3],0,"millisecond");g(0,["SSSS",4],0,function(){return this.millisecond()*10});g(0,["SSSSS",5],0,function(){return this.millisecond()*100});g(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});g(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});g(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});g(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});d("S",Wt,rs);d("SS",Wt,V);d("SSS",Wt,ns);var be,Rs;for(be="SSSS";be.length<=9;be+="S")d(be,ze);function hl(e,t){t[Me]=b(("0."+e)*1e3)}for(be="S";be.length<=9;be+="S")O(be,hl);Rs=Xe("Milliseconds",!1);g("z",0,0,"zoneAbbr");g("zz",0,0,"zoneName");function fl(){return this._isUTC?"UTC":""}function cl(){return this._isUTC?"Coordinated Universal Time":""}var h=mt.prototype;h.add=su;h.calendar=fu;h.clone=cu;h.diff=bu;h.endOf=ku;h.format=xu;h.from=Eu;h.fromNow=Mu;h.to=Tu;h.toNow=Ou;h.get=wa;h.invalidAt=Bu;h.isAfter=du;h.isBefore=mu;h.isBetween=_u;h.isSame=yu;h.isSameOrAfter=gu;h.isSameOrBefore=pu;h.isValid=Ru;h.lang=ks;h.locale=Ds;h.localeData=Ps;h.max=Ro;h.min=Co;h.parsingFlags=Iu;h.set=Sa;h.startOf=Du;h.subtract=iu;h.toArray=Au;h.toObject=Lu;h.toDate=Hu;h.toISOString=wu;h.inspect=Su;typeof Symbol!="undefined"&&Symbol.for!=null&&(h[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});h.toJSON=Cu;h.toString=vu;h.unix=Nu;h.valueOf=Pu;h.creationData=Yu;h.eraName=$u;h.eraNarrow=Wu;h.eraAbbr=ju;h.eraYear=Vu;h.year=as;h.isLeapYear=va;h.weekYear=Ku;h.isoWeekYear=el;h.quarter=h.quarters=al;h.month=fs;h.daysInMonth=Na;h.week=h.weeks=Ya;h.isoWeek=h.isoWeeks=Fa;h.weeksInYear=nl;h.weeksInWeekYear=sl;h.isoWeeksInYear=tl;h.isoWeeksInISOWeekYear=rl;h.date=Cs;h.day=h.days=Ka;h.weekday=eo;h.isoWeekday=to;h.dayOfYear=ol;h.hour=h.hours=uo;h.minute=h.minutes=ul;h.second=h.seconds=ll;h.millisecond=h.milliseconds=Rs;h.utcOffset=jo;h.utc=zo;h.local=Zo;h.parseZone=Xo;h.hasAlignedHourOffset=qo;h.isDST=Jo;h.isLocal=Ko;h.isUtcOffset=eu;h.isUtc=Es;h.isUTC=Es;h.zoneAbbr=fl;h.zoneName=cl;h.dates=X("dates accessor is deprecated. Use date instead.",Cs);h.months=X("months accessor is deprecated. Use month instead",fs);h.years=X("years accessor is deprecated. Use year instead",as);h.zone=X("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Vo);h.isDSTShifted=X("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Qo);function dl(e){return k(e*1e3)}function ml(){return k.apply(null,arguments).parseZone()}function Is(e){return e}var T=Ir.prototype;T.calendar=Qi;T.longDateFormat=ra;T.invalidDate=sa;T.ordinal=oa;T.preparse=Is;T.postformat=Is;T.relativeTime=la;T.pastFuture=ha;T.set=qi;T.eras=Fu;T.erasParse=Uu;T.erasConvertYear=Gu;T.erasAbbrRegex=Zu;T.erasNameRegex=zu;T.erasNarrowRegex=Xu;T.months=Oa;T.monthsShort=Da;T.monthsParse=Pa;T.monthsRegex=Aa;T.monthsShortRegex=Ha;T.week=Ca;T.firstDayOfYear=Ba;T.firstDayOfWeek=Ia;T.weekdays=Za;T.weekdaysMin=qa;T.weekdaysShort=Xa;T.weekdaysParse=Qa;T.weekdaysRegex=ro;T.weekdaysShortRegex=no;T.weekdaysMinRegex=so;T.isPM=ao;T.meridiem=lo;function It(e,t,r,n){var s=ye(),i=ae().set(n,t);return s[r](i,e)}function Bs(e,t,r){if(_e(e)&&(t=e,e=void 0),e=e||"",t!=null)return It(e,t,r,"month");var n,s=[];for(n=0;n<12;n++)s[n]=It(e,n,r,"month");return s}function tn(e,t,r,n){typeof e=="boolean"?(_e(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,_e(t)&&(r=t,t=void 0),t=t||"");var s=ye(),i=e?s._week.dow:0,a,o=[];if(r!=null)return It(t,(r+i)%7,n,"day");for(a=0;a<7;a++)o[a]=It(t,(a+i)%7,n,"day");return o}function _l(e,t){return Bs(e,t,"months")}function yl(e,t){return Bs(e,t,"monthsShort")}function gl(e,t,r){return tn(e,t,r,"weekdays")}function pl(e,t,r){return tn(e,t,r,"weekdaysShort")}function bl(e,t,r){return tn(e,t,r,"weekdaysMin")}we("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,r=b(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});c.lang=X("moment.lang is deprecated. Use moment.locale instead.",we);c.langData=X("moment.langData is deprecated. Use moment.localeData instead.",ye);var le=Math.abs;function vl(){var e=this._data;return this._milliseconds=le(this._milliseconds),this._days=le(this._days),this._months=le(this._months),e.milliseconds=le(e.milliseconds),e.seconds=le(e.seconds),e.minutes=le(e.minutes),e.hours=le(e.hours),e.months=le(e.months),e.years=le(e.years),this}function Ys(e,t,r,n){var s=ee(t,r);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function wl(e,t){return Ys(this,e,t,1)}function Sl(e,t){return Ys(this,e,t,-1)}function bn(e){return e<0?Math.floor(e):Math.ceil(e)}function xl(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,s,i,a,o,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=bn(xr(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,s=Z(e/1e3),n.seconds=s%60,i=Z(s/60),n.minutes=i%60,a=Z(i/60),n.hours=a%24,t+=Z(a/24),l=Z(Fs(t)),r+=l,t-=bn(xr(l)),o=Z(r/12),r%=12,n.days=t,n.months=r,n.years=o,this}function Fs(e){return e*4800/146097}function xr(e){return e*146097/4800}function El(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=q(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+Fs(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(xr(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function ge(e){return function(){return this.as(e)}}var Us=ge("ms"),Ml=ge("s"),Tl=ge("m"),Ol=ge("h"),Dl=ge("d"),kl=ge("w"),Pl=ge("M"),Nl=ge("Q"),Hl=ge("y"),Al=Us;function Ll(){return ee(this)}function Cl(e){return e=q(e),this.isValid()?this[e+"s"]():NaN}function De(e){return function(){return this.isValid()?this._data[e]:NaN}}var Rl=De("milliseconds"),Il=De("seconds"),Bl=De("minutes"),Yl=De("hours"),Fl=De("days"),Ul=De("months"),Gl=De("years");function $l(){return Z(this.days()/7)}var he=Math.round,Ce={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Wl(e,t,r,n,s){return s.relativeTime(t||1,!!r,e,n)}function jl(e,t,r,n){var s=ee(e).abs(),i=he(s.as("s")),a=he(s.as("m")),o=he(s.as("h")),l=he(s.as("d")),u=he(s.as("M")),f=he(s.as("w")),m=he(s.as("y")),_=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||a<=1&&["m"]||a<r.m&&["mm",a]||o<=1&&["h"]||o<r.h&&["hh",o]||l<=1&&["d"]||l<r.d&&["dd",l];return r.w!=null&&(_=_||f<=1&&["w"]||f<r.w&&["ww",f]),_=_||u<=1&&["M"]||u<r.M&&["MM",u]||m<=1&&["y"]||["yy",m],_[2]=t,_[3]=+e>0,_[4]=n,Wl.apply(null,_)}function Vl(e){return e===void 0?he:typeof e=="function"?(he=e,!0):!1}function zl(e,t){return Ce[e]===void 0?!1:t===void 0?Ce[e]:(Ce[e]=t,e==="s"&&(Ce.ss=t-1),!0)}function Zl(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Ce,s,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},Ce,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),s=this.localeData(),i=jl(this,!r,n,s),r&&(i=s.pastFuture(+this,i)),s.postformat(i)}var ur=Math.abs;function Ne(e){return(e>0)-(e<0)||+e}function Qt(){if(!this.isValid())return this.localeData().invalidDate();var e=ur(this._milliseconds)/1e3,t=ur(this._days),r=ur(this._months),n,s,i,a,o=this.asSeconds(),l,u,f,m;return o?(n=Z(e/60),s=Z(n/60),e%=60,n%=60,i=Z(r/12),r%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",u=Ne(this._months)!==Ne(o)?"-":"",f=Ne(this._days)!==Ne(o)?"-":"",m=Ne(this._milliseconds)!==Ne(o)?"-":"",l+"P"+(i?u+i+"Y":"")+(r?u+r+"M":"")+(t?f+t+"D":"")+(s||n||e?"T":"")+(s?m+s+"H":"")+(n?m+n+"M":"")+(e?m+a+"S":"")):"P0D"}var x=qt.prototype;x.isValid=Uo;x.abs=vl;x.add=wl;x.subtract=Sl;x.as=El;x.asMilliseconds=Us;x.asSeconds=Ml;x.asMinutes=Tl;x.asHours=Ol;x.asDays=Dl;x.asWeeks=kl;x.asMonths=Pl;x.asQuarters=Nl;x.asYears=Hl;x.valueOf=Al;x._bubble=xl;x.clone=Ll;x.get=Cl;x.milliseconds=Rl;x.seconds=Il;x.minutes=Bl;x.hours=Yl;x.days=Fl;x.weeks=$l;x.months=Ul;x.years=Gl;x.humanize=Zl;x.toISOString=Qt;x.toString=Qt;x.toJSON=Qt;x.locale=Ds;x.localeData=Ps;x.toIsoString=X("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qt);x.lang=ks;g("X",0,0,"unix");g("x",0,0,"valueOf");d("x",Vt);d("X",ma);O("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});O("x",function(e,t,r){r._d=new Date(b(e))});//! moment.js
10
+ c.version="2.30.1";Zi(k);c.fn=h;c.min=Io;c.max=Bo;c.now=Yo;c.utc=ae;c.unix=dl;c.months=_l;c.isDate=dt;c.locale=we;c.invalid=Gt;c.duration=ee;c.isMoment=K;c.weekdays=gl;c.parseZone=ml;c.localeData=ye;c.isDuration=Tt;c.monthsShort=yl;c.weekdaysMin=bl;c.defineLocale=zr;c.updateLocale=mo;c.locales=_o;c.weekdaysShort=pl;c.normalizeUnits=q;c.relativeTimeRounding=Vl;c.relativeTimeThreshold=zl;c.calendarFormat=hu;c.prototype=h;c.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"};const He=[];function Xl(e,t){return{subscribe:Kt(e,t).subscribe}}function Kt(e,t=j){let r;const n=new Set;function s(o){if(Ar(e,o)&&(e=o,r)){const l=!He.length;for(const u of n)u[1](),He.push(u,e);if(l){for(let u=0;u<He.length;u+=2)He[u][0](He[u+1]);He.length=0}}}function i(o){s(o(e))}function a(o,l=j){const u=[o,l];return n.add(u),n.size===1&&(r=t(s,i)||j),o(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:s,update:i,subscribe:a}}function qe(e,t,r){const n=!Array.isArray(e),s=n?[e]:e;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=t.length<2;return Xl(r,(a,o)=>{let l=!1;const u=[];let f=0,m=j;const _=()=>{if(f)return;m();const N=t(n?u[0]:u,a,o);i?a(N):m=ct(N)?N:j},D=s.map((N,C)=>Fn(N,U=>{u[C]=U,f&=~(1<<C),l&&_()},()=>{f|=1<<C}));return l=!0,_(),function(){je(D),m(),l=!1}})}var ql=function(t){return Jl(t)&&!Ql(t)};function Jl(e){return!!e&&typeof e=="object"}function Ql(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||th(e)}var Kl=typeof Symbol=="function"&&Symbol.for,eh=Kl?Symbol.for("react.element"):60103;function th(e){return e.$$typeof===eh}function rh(e){return Array.isArray(e)?[]:{}}function ht(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ue(rh(e),e,t):e}function nh(e,t,r){return e.concat(t).map(function(n){return ht(n,r)})}function sh(e,t){if(!t.customMerge)return Ue;var r=t.customMerge(e);return typeof r=="function"?r:Ue}function ih(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function vn(e){return Object.keys(e).concat(ih(e))}function Gs(e,t){try{return t in e}catch(r){return!1}}function ah(e,t){return Gs(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function oh(e,t,r){var n={};return r.isMergeableObject(e)&&vn(e).forEach(function(s){n[s]=ht(e[s],r)}),vn(t).forEach(function(s){ah(e,s)||(Gs(e,s)&&r.isMergeableObject(t[s])?n[s]=sh(s,r)(e[s],t[s],r):n[s]=ht(t[s],r))}),n}function Ue(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||nh,r.isMergeableObject=r.isMergeableObject||ql,r.cloneUnlessOtherwiseSpecified=ht;var n=Array.isArray(t),s=Array.isArray(e),i=n===s;return i?n?r.arrayMerge(e,t,r):oh(e,t,r):ht(t,r)}Ue.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,s){return Ue(n,s,r)},{})};var uh=Ue,lh=uh;const hh=Vi(lh);var Er=function(e,t){return Er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},Er(e,t)};function gt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Er(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var E=function(){return E=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},E.apply(this,arguments)};function fh(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function ch(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function dh(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),s,i=[],a;try{for(;(t===void 0||t-- >0)&&!(s=n.next()).done;)i.push(s.value)}catch(o){a={error:o}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function Dt(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,i;n<s;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var v;(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"})(v||(v={}));var A;(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"})(A||(A={}));var Ge;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ge||(Ge={}));function wn(e){return e.type===A.literal}function mh(e){return e.type===A.argument}function $s(e){return e.type===A.number}function Ws(e){return e.type===A.date}function js(e){return e.type===A.time}function Vs(e){return e.type===A.select}function zs(e){return e.type===A.plural}function _h(e){return e.type===A.pound}function Zs(e){return e.type===A.tag}function Xs(e){return!!(e&&typeof e=="object"&&e.type===Ge.number)}function Mr(e){return!!(e&&typeof e=="object"&&e.type===Ge.dateTime)}var qs=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,yh=/(?:[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 gh(e){var t={};return e.replace(yh,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===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"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-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=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-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"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-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"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<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 ph=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function bh(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(ph).filter(function(_){return _.length>0}),r=[],n=0,s=t;n<s.length;n++){var i=s[n],a=i.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var o=a[0],l=a.slice(1),u=0,f=l;u<f.length;u++){var m=f[u];if(m.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:l})}return r}function vh(e){return e.replace(/^(.*?)-/,"")}var Sn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Js=/^(@+)?(\+|#+)?[rs]?$/g,wh=/(\*)(0+)|(#+)(0+)|(0+)/g,Qs=/^(0+)$/;function xn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Js,function(r,n,s){return typeof s!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):s==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof s=="string"?s.length:0)),""}),t}function Ks(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 Sh(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 r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Qs.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function En(e){var t={},r=Ks(e);return r||t}function xh(e){for(var t={},r=0,n=e;r<n.length;r++){var s=n[r];switch(s.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=s.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=vh(s.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=E(E(E({},t),{notation:"scientific"}),s.options.reduce(function(l,u){return E(E({},l),En(u))},{}));continue;case"engineering":t=E(E(E({},t),{notation:"engineering"}),s.options.reduce(function(l,u){return E(E({},l),En(u))},{}));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(s.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(s.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(wh,function(l,u,f,m,_,D){if(u)t.minimumIntegerDigits=f.length;else{if(m&&_)throw new Error("We currently do not support maximum integer digits");if(D)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Qs.test(s.stem)){t.minimumIntegerDigits=s.stem.length;continue}if(Sn.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(Sn,function(l,u,f,m,_,D){return f==="*"?t.minimumFractionDigits=u.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:_&&D?(t.minimumFractionDigits=_.length,t.maximumFractionDigits=_.length+D.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var i=s.options[0];i==="w"?t=E(E({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=E(E({},t),xn(i)));continue}if(Js.test(s.stem)){t=E(E({},t),xn(s.stem));continue}var a=Ks(s.stem);a&&(t=E(E({},t),a));var o=Sh(s.stem);o&&(t=E(E({},t),o))}return t}var xt={"001":["H","h"],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","hB","h","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","hB","h","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","hB","h","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"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"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 Eh(e,t){for(var r="",n=0;n<e.length;n++){var s=e.charAt(n);if(s==="j"){for(var i=0;n+1<e.length&&e.charAt(n+1)===s;)i++,n++;var a=1+(i&1),o=i<2?1:3+(i>>1),l="a",u=Mh(t);for((u=="H"||u=="k")&&(o=0);o-- >0;)r+=l;for(;a-- >0;)r=u+r}else s==="J"?r+="H":r+=s}return r}function Mh(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 r=e.language,n;r!=="root"&&(n=e.maximize().region);var s=xt[n||""]||xt[r||""]||xt["".concat(r,"-001")]||xt["001"];return s[0]}var lr,Th=new RegExp("^".concat(qs.source,"*")),Oh=new RegExp("".concat(qs.source,"*$"));function w(e,t){return{start:e,end:t}}var Dh=!!String.prototype.startsWith&&"_a".startsWith("a",1),kh=!!String.fromCodePoint,Ph=!!Object.fromEntries,Nh=!!String.prototype.codePointAt,Hh=!!String.prototype.trimStart,Ah=!!String.prototype.trimEnd,Lh=!!Number.isSafeInteger,Ch=Lh?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Tr=!0;try{var Rh=ti("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Tr=((lr=Rh.exec("a"))===null||lr===void 0?void 0:lr[0])==="a"}catch(e){Tr=!1}var Mn=Dh?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Or=kh?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",s=t.length,i=0,a;s>i;){if(a=t[i++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},Tn=Ph?Object.fromEntries:function(t){for(var r={},n=0,s=t;n<s.length;n++){var i=s[n],a=i[0],o=i[1];r[a]=o}return r},ei=Nh?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var s=t.charCodeAt(r),i;return s<55296||s>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?s:(s-55296<<10)+(i-56320)+65536}},Ih=Hh?function(t){return t.trimStart()}:function(t){return t.replace(Th,"")},Bh=Ah?function(t){return t.trimEnd()}:function(t){return t.replace(Oh,"")};function ti(e,t){return new RegExp(e,t)}var Dr;if(Tr){var On=ti("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Dr=function(t,r){var n;On.lastIndex=r;var s=On.exec(t);return(n=s[1])!==null&&n!==void 0?n:""}}else Dr=function(t,r){for(var n=[];;){var s=ei(t,r);if(s===void 0||ri(s)||Gh(s))break;n.push(s),r+=s>=65536?2:1}return Or.apply(void 0,n)};var Yh=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.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,r,n){for(var s=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,n);if(a.err)return a;s.push(a.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),s.push({type:A.pound,location:w(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(v.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&kr(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;s.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;s.push(a.val)}}}return{val:s,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:A.literal,value:"<".concat(s,"/>"),location:w(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!kr(this.char()))return this.error(v.INVALID_TAG,w(o,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return s!==u?this.error(v.UNMATCHED_CLOSING_TAG,w(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:A.tag,value:s,children:a,location:w(n,this.clonePosition())},err:null}:this.error(v.INVALID_TAG,w(o,this.clonePosition())))}else return this.error(v.UNCLOSED_TAG,w(n,this.clonePosition()))}else return this.error(v.INVALID_TAG,w(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Uh(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),s="";;){var i=this.tryParseQuote(r);if(i){s+=i;continue}var a=this.tryParseUnquoted(t,r);if(a){s+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){s+=o;continue}break}var l=w(n,this.clonePosition());return{val:{type:A.literal,value:s,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Fh(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 r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Or.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Or(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(v.EMPTY_ARGUMENT,w(n,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(v.MALFORMED_ARGUMENT,w(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:A.argument,value:s,location:w(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition())):this.parseArgumentOptions(t,r,s,n);default:return this.error(v.MALFORMED_ARGUMENT,w(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Dr(this.message,r),s=r+n.length;this.bumpTo(s);var i=this.clonePosition(),a=w(t,i);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,s){var i,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(o){case"":return this.error(v.EXPECT_ARGUMENT_TYPE,w(a,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var _=Bh(m.val);if(_.length===0)return this.error(v.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));var D=w(f,this.clonePosition());u={style:_,styleLocation:D}}var N=this.tryParseArgumentClose(s);if(N.err)return N;var C=w(s,this.clonePosition());if(u&&Mn(u==null?void 0:u.style,"::",0)){var U=Ih(u.style.slice(2));if(o==="number"){var m=this.parseNumberSkeletonFromString(U,u.styleLocation);return m.err?m:{val:{type:A.number,value:n,location:C,style:m.val},err:null}}else{if(U.length===0)return this.error(v.EXPECT_DATE_TIME_SKELETON,C);var te=U;this.locale&&(te=Eh(U,this.locale));var _={type:Ge.dateTime,pattern:te,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?gh(te):{}},G=o==="date"?A.date:A.time;return{val:{type:G,value:n,location:C,style:_},err:null}}}return{val:{type:o==="number"?A.number:o==="date"?A.date:A.time,value:n,location:C,style:(i=u==null?void 0:u.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var $=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS,w($,E({},$)));this.bumpSpace();var I=this.parseIdentifierIfPossible(),ue=0;if(o!=="select"&&I.value==="offset"){if(!this.bumpIf(":"))return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),I=this.parseIdentifierIfPossible(),ue=m.val}var xe=this.tryParsePluralOrSelectOptions(t,o,r,I);if(xe.err)return xe;var N=this.tryParseArgumentClose(s);if(N.err)return N;var pt=w(s,this.clonePosition());return o==="select"?{val:{type:A.select,value:n,options:Tn(xe.val),location:pt},err:null}:{val:{type:A.plural,value:n,options:Tn(xe.val),offset:ue,pluralType:o==="plural"?"cardinal":"ordinal",location:pt},err:null}}default:return this.error(v.INVALID_ARGUMENT_TYPE,w(a,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE,w(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,w(s,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(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=bh(t)}catch(s){return this.error(v.INVALID_NUMBER_SKELETON,r)}return{val:{type:Ge.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?xh(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,s){for(var i,a=!1,o=[],l=new Set,u=s.value,f=s.location;;){if(u.length===0){var m=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var _=this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR,v.INVALID_PLURAL_ARGUMENT_SELECTOR);if(_.err)return _;f=w(m,this.clonePosition()),u=this.message.slice(m.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?v.DUPLICATE_SELECT_ARGUMENT_SELECTOR:v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);u==="other"&&(a=!0),this.bumpSpace();var D=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,w(this.clonePosition(),this.clonePosition()));var N=this.parseMessage(t+1,r,n);if(N.err)return N;var C=this.tryParseArgumentClose(D);if(C.err)return C;o.push([u,{value:N.val,location:w(D,this.clonePosition())}]),l.add(u),this.bumpSpace(),i=this.parseIdentifierIfPossible(),u=i.value,f=i.location}return o.length===0?this.error(r==="select"?v.EXPECT_SELECT_ARGUMENT_SELECTOR:v.EXPECT_PLURAL_ARGUMENT_SELECTOR,w(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(v.MISSING_OTHER_CLAUSE,w(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=a*10+(o-48),this.bump();else break}var l=w(s,this.clonePosition());return i?(a*=n,Ch(a)?{val:a,err:null}:this.error(r,l)):this.error(t,l)},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 r=ei(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},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(Mn(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!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 r=this.offset();if(r===t)break;if(r>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()&&ri(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function kr(e){return e>=97&&e<=122||e>=65&&e<=90}function Fh(e){return kr(e)||e===47}function Uh(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 ri(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Gh(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 Pr(e){e.forEach(function(t){if(delete t.location,Vs(t)||zs(t))for(var r in t.options)delete t.options[r].location,Pr(t.options[r].value);else $s(t)&&Xs(t.style)||(Ws(t)||js(t))&&Mr(t.style)?delete t.style.location:Zs(t)&&Pr(t.children)})}function $h(e,t){t===void 0&&(t={}),t=E({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Yh(e,t).parse();if(r.err){var n=SyntaxError(v[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Pr(r.val),r.val}function hr(e,t){var r=t&&t.cache?t.cache:Xh,n=t&&t.serializer?t.serializer:Zh,s=t&&t.strategy?t.strategy:jh;return s(e,{cache:r,serializer:n})}function Wh(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ni(e,t,r,n){var s=Wh(n)?n:r(n),i=t.get(s);return typeof i=="undefined"&&(i=e.call(this,n),t.set(s,i)),i}function si(e,t,r){var n=Array.prototype.slice.call(arguments,3),s=r(n),i=t.get(s);return typeof i=="undefined"&&(i=e.apply(this,n),t.set(s,i)),i}function rn(e,t,r,n,s){return r.bind(t,e,n,s)}function jh(e,t){var r=e.length===1?ni:si;return rn(e,this,r,t.cache.create(),t.serializer)}function Vh(e,t){return rn(e,this,si,t.cache.create(),t.serializer)}function zh(e,t){return rn(e,this,ni,t.cache.create(),t.serializer)}var Zh=function(){return JSON.stringify(arguments)};function nn(){this.cache=Object.create(null)}nn.prototype.get=function(e){return this.cache[e]};nn.prototype.set=function(e,t){this.cache[e]=t};var Xh={create:function(){return new nn}},fr={variadic:Vh,monadic:zh},$e;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})($e||($e={}));var er=function(e){gt(t,e);function t(r,n,s){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=s,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Dn=function(e){gt(t,e);function t(r,n,s,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(s).join('", "'),'"'),$e.INVALID_VALUE,i)||this}return t}(er),qh=function(e){gt(t,e);function t(r,n,s){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),$e.INVALID_VALUE,s)||this}return t}(er),Jh=function(e){gt(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),$e.MISSING_VALUE,n)||this}return t}(er),F;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(F||(F={}));function Qh(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==F.literal||r.type!==F.literal?t.push(r):n.value+=r.value,t},[])}function Kh(e){return typeof e=="function"}function kt(e,t,r,n,s,i,a){if(e.length===1&&wn(e[0]))return[{type:F.literal,value:e[0].value}];for(var o=[],l=0,u=e;l<u.length;l++){var f=u[l];if(wn(f)){o.push({type:F.literal,value:f.value});continue}if(_h(f)){typeof i=="number"&&o.push({type:F.literal,value:r.getNumberFormat(t).format(i)});continue}var m=f.value;if(!(s&&m in s))throw new Jh(m,a);var _=s[m];if(mh(f)){(!_||typeof _=="string"||typeof _=="number")&&(_=typeof _=="string"||typeof _=="number"?String(_):""),o.push({type:typeof _=="string"?F.literal:F.object,value:_});continue}if(Ws(f)){var D=typeof f.style=="string"?n.date[f.style]:Mr(f.style)?f.style.parsedOptions:void 0;o.push({type:F.literal,value:r.getDateTimeFormat(t,D).format(_)});continue}if(js(f)){var D=typeof f.style=="string"?n.time[f.style]:Mr(f.style)?f.style.parsedOptions:n.time.medium;o.push({type:F.literal,value:r.getDateTimeFormat(t,D).format(_)});continue}if($s(f)){var D=typeof f.style=="string"?n.number[f.style]:Xs(f.style)?f.style.parsedOptions:void 0;D&&D.scale&&(_=_*(D.scale||1)),o.push({type:F.literal,value:r.getNumberFormat(t,D).format(_)});continue}if(Zs(f)){var N=f.children,C=f.value,U=s[C];if(!Kh(U))throw new qh(C,"function",a);var te=kt(N,t,r,n,s,i),G=U(te.map(function(ue){return ue.value}));Array.isArray(G)||(G=[G]),o.push.apply(o,G.map(function(ue){return{type:typeof ue=="string"?F.literal:F.object,value:ue}}))}if(Vs(f)){var $=f.options[_]||f.options.other;if(!$)throw new Dn(f.value,_,Object.keys(f.options),a);o.push.apply(o,kt($.value,t,r,n,s));continue}if(zs(f)){var $=f.options["=".concat(_)];if(!$){if(!Intl.PluralRules)throw new er(`Intl.PluralRules is not available in this environment.
11
+ Try polyfilling it using "@formatjs/intl-pluralrules"
12
+ `,$e.MISSING_INTL_API,a);var I=r.getPluralRules(t,{type:f.pluralType}).select(_-(f.offset||0));$=f.options[I]||f.options.other}if(!$)throw new Dn(f.value,_,Object.keys(f.options),a);o.push.apply(o,kt($.value,t,r,n,s,_-(f.offset||0)));continue}}return Qh(o)}function ef(e,t){return t?E(E(E({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=E(E({},e[n]),t[n]||{}),r},{})):e}function tf(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=ef(e[n],t[n]),r},E({},e)):e}function cr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function rf(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:hr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Dt([void 0],r,!1)))},{cache:cr(e.number),strategy:fr.variadic}),getDateTimeFormat:hr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Dt([void 0],r,!1)))},{cache:cr(e.dateTime),strategy:fr.variadic}),getPluralRules:hr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Dt([void 0],r,!1)))},{cache:cr(e.pluralRules),strategy:fr.variadic})}}var nf=function(){function e(t,r,n,s){var i=this;if(r===void 0&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=i.formatToParts(l);if(u.length===1)return u[0].value;var f=u.reduce(function(m,_){return!m.length||_.type!==F.literal||typeof m[m.length-1]!="string"?m.push(_.value):m[m.length-1]+=_.value,m},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(l){return kt(i.ast,i.locales,i.formatters,i.formats,l,void 0,i.message)},this.resolvedOptions=function(){var l;return{locale:((l=i.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=s||{};a.formatters;var o=fh(a,["formatters"]);this.ast=e.__parse(t,E(E({},o),{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=tf(e.formats,n),this.formatters=s&&s.formatters||rf(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 r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=$h,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 sf(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let s=0;s<r.length;s++)if(typeof n=="object"){if(s>0){const i=r.slice(s,r.length).join(".");if(i in n){n=n[i];break}}n=n[r[s]]}else n=void 0;return n}const ve={},af=(e,t,r)=>r&&(t in ve||(ve[t]={}),e in ve[t]||(ve[t][e]=r),r),ii=(e,t)=>{if(t==null)return;if(t in ve&&e in ve[t])return ve[t][e];const r=tr(t);for(let n=0;n<r.length;n++){const s=r[n],i=uf(s,e);if(i)return af(e,t,i)}};let sn;const Je=Kt({});function of(e){return sn[e]||null}function ai(e){return e in sn}function uf(e,t){if(!ai(e))return null;const r=of(e);return sf(r,t)}function lf(e){if(e==null)return;const t=tr(e);for(let r=0;r<t.length;r++){const n=t[r];if(ai(n))return n}}function an(e,...t){delete ve[e],Je.update(r=>(r[e]=hh.all([r[e]||{},...t]),r))}qe([Je],([e])=>Object.keys(e));Je.subscribe(e=>sn=e);const Pt={};function hf(e,t){Pt[e].delete(t),Pt[e].size===0&&delete Pt[e]}function oi(e){return Pt[e]}function ff(e){return tr(e).map(t=>{const r=oi(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Nr(e){return e==null?!1:tr(e).some(t=>{var r;return(r=oi(t))==null?void 0:r.size})}function cf(e,t){return Promise.all(t.map(n=>(hf(e,n),n().then(s=>s.default||s)))).then(n=>an(e,...n))}const rt={};function ui(e){if(!Nr(e))return e in rt?rt[e]:Promise.resolve();const t=ff(e);return rt[e]=Promise.all(t.map(([r,n])=>cf(r,n))).then(()=>{if(Nr(e))return ui(e);delete rt[e]}),rt[e]}const df={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"}}},mf={fallbackLocale:null,loadingDelay:200,formats:df,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},_f=mf;function We(){return _f}const dr=Kt(!1);var yf=Object.defineProperty,gf=Object.defineProperties,pf=Object.getOwnPropertyDescriptors,kn=Object.getOwnPropertySymbols,bf=Object.prototype.hasOwnProperty,vf=Object.prototype.propertyIsEnumerable,Pn=(e,t,r)=>t in e?yf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wf=(e,t)=>{for(var r in t||(t={}))bf.call(t,r)&&Pn(e,r,t[r]);if(kn)for(var r of kn(t))vf.call(t,r)&&Pn(e,r,t[r]);return e},Sf=(e,t)=>gf(e,pf(t));let Hr;const Bt=Kt(null);function Nn(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function tr(e,t=We().fallbackLocale){const r=Nn(e);return t?[...new Set([...r,...Nn(t)])]:r}function ke(){return Hr!=null?Hr:void 0}Bt.subscribe(e=>{Hr=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const xf=e=>{if(e&&lf(e)&&Nr(e)){const{loadingDelay:t}=We();let r;return typeof window!="undefined"&&ke()!=null&&t?r=window.setTimeout(()=>dr.set(!0),t):dr.set(!0),ui(e).then(()=>{Bt.set(e)}).finally(()=>{clearTimeout(r),dr.set(!1)})}return Bt.set(e)},Qe=Sf(wf({},Bt),{set:xf}),rr=e=>{const t=Object.create(null);return n=>{const s=JSON.stringify(n);return s in t?t[s]:t[s]=e(n)}};var Ef=Object.defineProperty,Yt=Object.getOwnPropertySymbols,li=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,Hn=(e,t,r)=>t in e?Ef(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,on=(e,t)=>{for(var r in t||(t={}))li.call(t,r)&&Hn(e,r,t[r]);if(Yt)for(var r of Yt(t))hi.call(t,r)&&Hn(e,r,t[r]);return e},Ke=(e,t)=>{var r={};for(var n in e)li.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Yt)for(var n of Yt(e))t.indexOf(n)<0&&hi.call(e,n)&&(r[n]=e[n]);return r};const ft=(e,t)=>{const{formats:r}=We();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Mf=rr(e=>{var t=e,{locale:r,format:n}=t,s=Ke(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(s=ft("number",n)),new Intl.NumberFormat(r,s)}),Tf=rr(e=>{var t=e,{locale:r,format:n}=t,s=Ke(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?s=ft("date",n):Object.keys(s).length===0&&(s=ft("date","short")),new Intl.DateTimeFormat(r,s)}),Of=rr(e=>{var t=e,{locale:r,format:n}=t,s=Ke(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?s=ft("time",n):Object.keys(s).length===0&&(s=ft("time","short")),new Intl.DateTimeFormat(r,s)}),Df=(e={})=>{var t=e,{locale:r=ke()}=t,n=Ke(t,["locale"]);return Mf(on({locale:r},n))},kf=(e={})=>{var t=e,{locale:r=ke()}=t,n=Ke(t,["locale"]);return Tf(on({locale:r},n))},Pf=(e={})=>{var t=e,{locale:r=ke()}=t,n=Ke(t,["locale"]);return Of(on({locale:r},n))},Nf=rr((e,t=ke())=>new nf(e,t,We().formats,{ignoreTag:We().ignoreTag})),Hf=(e,t={})=>{var r,n,s,i;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:l=ke(),default:u}=a;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=ii(e,l);if(!f)f=(i=(s=(n=(r=We()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?s:u)!=null?i:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!o)return f;let m=f;try{m=Nf(f,l).format(o)}catch(_){_ instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,_.message)}return m},Af=(e,t)=>Pf(t).format(e),Lf=(e,t)=>kf(t).format(e),Cf=(e,t)=>Df(t).format(e),Rf=(e,t=ke())=>ii(e,t),fi=qe([Qe,Je],()=>Hf);qe([Qe],()=>Af);qe([Qe],()=>Lf);qe([Qe],()=>Cf);qe([Qe,Je],()=>Rf);function An(e,t){an(e,t)}const Ln={en:{tournamentsList:{nothing:"Nothing to show here."}},hr:{tournamentsList:{nothing:"Nema ničega za prikazati ovdje."}},"zh-hk":{tournamentsList:{nothing:"這裡沒有什麼可顯示的。"}},fr:{tournamentsList:{nothing:"Rien à montrer ici."}},ro:{tournamentsList:{nothing:"Niciun turneu disponibil aici."}},tr:{tournamentsList:{nothing:"Burada gösterilecek bir şey yok."}},el:{tournamentsList:{nothing:"Δεν υπάρχει τίποτα εδώ."}},es:{tournamentsList:{nothing:"Nada que mostrar aquí."}},hu:{tournamentsList:{nothing:"Nincs megjelenítendő adat."}},pt:{tournamentsList:{nothing:"Nada para mostrar aqui."}}};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailController-CwJ7_v2t.cjs")).then(t=>t.CasinoTournamentsThumbnailController_ce).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-controller")&&customElements.define("casino-tournaments-thumbnail-controller",t.element)})}function If(e){Gn(e,"svelte-1a7r6ea",".svelte-1a7r6ea,.svelte-1a7r6ea::before,.svelte-1a7r6ea::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentList.svelte-1a7r6ea{width:100%;display:grid;grid-template-columns:repeat(auto-fit, minmax(min(380px, 100%), 1fr));grid-auto-flow:dense;gap:25px}")}function Cn(e,t,r){const n=e.slice();return n[30]=t[r],n[32]=r,n}function Rn(e){let t,r=yr(e[14]),n=[];for(let i=0;i<r.length;i+=1)n[i]=Bn(Cn(e,r,i));let s=null;return r.length||(s=In(e)),{c(){for(let i=0;i<n.length;i+=1)n[i].c();t=Wn(),s&&s.c()},m(i,a){for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(i,a);Ve(i,t,a),s&&s.m(i,a)},p(i,a){if(a[0]&53247){r=yr(i[14]);let o;for(o=0;o<r.length;o+=1){const l=Cn(i,r,o);n[o]?n[o].p(l,a):(n[o]=Bn(l),n[o].c(),n[o].m(t.parentNode,t))}for(;o<n.length;o+=1)n[o].d(1);n.length=r.length,!r.length&&s?s.p(i,a):r.length?s&&(s.d(1),s=null):(s=In(i),s.c(),s.m(t.parentNode,t))}},d(i){i&&Se(t),$n(n,i),s&&s.d(i)}}}function In(e){let t,r=e[15]("tournamentsList.nothing")+"",n;return{c(){t=Oe("p"),n=Ut(r),Fe(t,"class","svelte-1a7r6ea")},m(s,i){Ve(s,t,i),Ft(t,n)},p(s,i){i[0]&32768&&r!==(r=s[15]("tournamentsList.nothing")+"")&&jn(n,r)},d(s){s&&Se(t)}}}function Bn(e){let t,r,n;return{c(){t=Oe("casino-tournaments-thumbnail-controller"),S(t,"touridx",e[32]+1),S(t,"session",e[0]),S(t,"userid",e[1]),S(t,"endpoint",e[2]),S(t,"showdetails","true"),S(t,"showslider","false"),S(t,"tournamenturl",r=e[30].href),S(t,"maxwidth",n=e[14].length<=2),S(t,"loginurl",e[5]),S(t,"loginevent",e[3]),S(t,"registerurl",e[6]),S(t,"registerevent",e[4]),S(t,"clientstyling",e[10]),S(t,"clientstylingurl",e[11]),S(t,"lang",e[8]),S(t,"currency",e[7]),S(t,"keepbrowsercontext",e[9]),S(t,"exportparts",`Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
13
+ TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,
14
+ TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton
15
+ TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper`),S(t,"class","svelte-1a7r6ea")},m(s,i){Ve(s,t,i)},p(s,i){i[0]&1&&S(t,"session",s[0]),i[0]&2&&S(t,"userid",s[1]),i[0]&4&&S(t,"endpoint",s[2]),i[0]&16384&&r!==(r=s[30].href)&&S(t,"tournamenturl",r),i[0]&16384&&n!==(n=s[14].length<=2)&&S(t,"maxwidth",n),i[0]&32&&S(t,"loginurl",s[5]),i[0]&8&&S(t,"loginevent",s[3]),i[0]&64&&S(t,"registerurl",s[6]),i[0]&16&&S(t,"registerevent",s[4]),i[0]&1024&&S(t,"clientstyling",s[10]),i[0]&2048&&S(t,"clientstylingurl",s[11]),i[0]&256&&S(t,"lang",s[8]),i[0]&128&&S(t,"currency",s[7]),i[0]&512&&S(t,"keepbrowsercontext",s[9])},d(s){s&&Se(t)}}}function Bf(e){let t,r=!e[13]&&Rn(e);return{c(){t=Oe("div"),r&&r.c(),Fe(t,"class","TournamentList svelte-1a7r6ea"),Fe(t,"part","TournamentList")},m(n,s){Ve(n,t,s),r&&r.m(t,null),e[18](t)},p(n,s){n[13]?r&&(r.d(1),r=null):r?r.p(n,s):(r=Rn(n),r.c(),r.m(t,null))},i:j,o:j,d(n){n&&Se(t),r&&r.d(),e[18](null)}}}function Yf(e,t,r){let n;Un(e,fi,y=>r(15,n=y));let{session:s=""}=t,{userid:i=""}=t,{numberoftournaments:a="6"}=t,{endpoint:o=""}=t,{loginevent:l=""}=t,{registerevent:u=""}=t,{loginurl:f=""}=t,{registerurl:m=""}=t,{currency:_=""}=t,{lang:D="en"}=t,{keepbrowsercontext:N="false"}=t,{clientstyling:C=""}=t,{clientstylingurl:U=""}=t,{translationurl:te=""}=t,G,$=!1;c();let I="";const ue=()=>{fetch(te).then(re=>re.json()).then(re=>{Object.keys(re).forEach(ne=>{An(ne,re[ne])})}).catch(re=>{console.log(re)})};Object.keys(Ln).forEach(y=>{An(y,Ln[y])});const xe=y=>{if(y.data&&y.data.type=="TournamentList"&&(r(14,I=[]),r(13,$=!0),r(14,I=y.data.tournamentList),setTimeout(()=>{r(13,$=!1)},10)),y.data&&y.data.type=="TournamentListShowMore"&&r(14,I=[...I,...y.data.tournamentList]),y.data.type=="UpdateTournamentView"){if(!I)return;I.filter(ne=>ne.id==y.data.tournamentData.id).length==0&&(I.pop(),r(14,I=[y.data.tournamentData,...I]),setTimeout(()=>{I.forEach((ne,yi)=>{window.postMessage({type:`UpdateSingleTournament_${yi+1}`,tournamentData:ne},window.location.href)})},100))}y.data&&y.data.type=="UserSessionID"&&y.data.session},pt=()=>{s.length>0&&s!="false"},di=()=>{let y=document.createElement("style");y.innerHTML=C,G.appendChild(y)},mi=()=>{let y=new URL(U),re=document.createElement("style");fetch(y.href).then(ne=>ne.text()).then(ne=>{re.innerHTML=ne,setTimeout(()=>{G.appendChild(re)},1),setTimeout(()=>{},500)})};Vn(()=>(window.addEventListener("message",xe,!0),()=>{window.removeEventListener("message",xe,!0)}));function _i(y){Nt[y?"unshift":"push"](()=>{G=y,r(12,G)})}return e.$$set=y=>{"session"in y&&r(0,s=y.session),"userid"in y&&r(1,i=y.userid),"numberoftournaments"in y&&r(16,a=y.numberoftournaments),"endpoint"in y&&r(2,o=y.endpoint),"loginevent"in y&&r(3,l=y.loginevent),"registerevent"in y&&r(4,u=y.registerevent),"loginurl"in y&&r(5,f=y.loginurl),"registerurl"in y&&r(6,m=y.registerurl),"currency"in y&&r(7,_=y.currency),"lang"in y&&r(8,D=y.lang),"keepbrowsercontext"in y&&r(9,N=y.keepbrowsercontext),"clientstyling"in y&&r(10,C=y.clientstyling),"clientstylingurl"in y&&r(11,U=y.clientstylingurl),"translationurl"in y&&r(17,te=y.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&5120&&G&&C&&di(),e.$$.dirty[0]&6144&&G&&U&&mi(),e.$$.dirty[0]&131072&&te&&ue(),e.$$.dirty[0]&1&&s&&pt(),e.$$.dirty[0]&2},[s,i,o,l,u,f,m,_,D,N,C,U,G,$,I,n,a,te,_i]}class ci extends qn{constructor(t){super(),zn(this,t,Yf,Bf,Ar,{session:0,userid:1,numberoftournaments:16,endpoint:2,loginevent:3,registerevent:4,loginurl:5,registerurl:6,currency:7,lang:8,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:17},If,[-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),B()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),B()}get numberoftournaments(){return this.$$.ctx[16]}set numberoftournaments(t){this.$$set({numberoftournaments:t}),B()}get endpoint(){return this.$$.ctx[2]}set endpoint(t){this.$$set({endpoint:t}),B()}get loginevent(){return this.$$.ctx[3]}set loginevent(t){this.$$set({loginevent:t}),B()}get registerevent(){return this.$$.ctx[4]}set registerevent(t){this.$$set({registerevent:t}),B()}get loginurl(){return this.$$.ctx[5]}set loginurl(t){this.$$set({loginurl:t}),B()}get registerurl(){return this.$$.ctx[6]}set registerurl(t){this.$$set({registerurl:t}),B()}get currency(){return this.$$.ctx[7]}set currency(t){this.$$set({currency:t}),B()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),B()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),B()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),B()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),B()}get translationurl(){return this.$$.ctx[17]}set translationurl(t){this.$$set({translationurl:t}),B()}}Xn(ci,{session:{},userid:{},numberoftournaments:{},endpoint:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},lang:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);const Ff=Object.freeze(Object.defineProperty({__proto__:null,default:ci},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=Je;exports.$format=fi;exports.$locale=Qe;exports.CasinoTournamentsListController_ce=Ff;exports.SvelteComponent=qn;exports.__extends=gt;exports.__read=dh;exports.__spreadArray=Dt;exports.__values=ch;exports.action_destroyer=Ei;exports.addMessages=an;exports.add_iframe_resize_listener=Hi;exports.add_render_callback=Ht;exports.append=Ft;exports.append_styles=Gn;exports.attr=Fe;exports.binding_callbacks=Nt;exports.component_subscribe=Un;exports.create_custom_element=Xn;exports.destroy_each=$n;exports.detach=Se;exports.element=Oe;exports.empty=Wn;exports.ensure_array_like=yr;exports.flush=B;exports.init=zn;exports.insert=Ve;exports.is_function=ct;exports.listen=mr;exports.noop=j;exports.onMount=Vn;exports.run_all=je;exports.safe_not_equal=Ar;exports.set_custom_element_data=S;exports.set_data=jn;exports.set_style=Pi;exports.space=Di;exports.src_url_equal=Si;exports.svg_element=Oi;exports.text=Ut;exports.toggle_class=Ai;
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-CnWQaXVa.cjs");function W(i,t){e.addMessages(i,t)}function ee(i){e.$locale.set(i)}const x={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hr:{tournamentsThumbnail:{enrolled:"Upisan",scoreCriteria:"Kriterij rezultata",minbet:"Minimalan broj opklada",seegames:"Možete vidjeti igre",here:"ovdje",scheduled:"U tijeku",ongoing:"Završeno",finished:"Počinje u",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj opklada",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",stake:"Ulog",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"}},"zh-hk":{tournamentsThumbnail:{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},fr:{tournamentsThumbnail:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},ro:{tournamentsThumbnail:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În curs",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",stake:"Turnover",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"}},tr:{tournamentsThumbnail:{enrolled:"Kayıtlı",scoreCriteria:"Puan Kriterleri",minbet:"minimum bahis sayısı",seegames:"Oyunları görebilirsiniz",here:"Burada",scheduled:"planlanmış",ongoing:"devam ediyor",finished:"Bitti",startingAt:"Buradan başlayarak:",startedAt:"Başlangıç:",mostRounds:"En Çok Tur",betCount:"Bahis Sayısı",maxWinStakeRatio:"Bahis Başına Maksimum Kazanç",winStakeRatio:"Bahis Başına Toplam Kazanç",stake:"Devir",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",startingAtWithTime:"{startTime} başlar",startedAtWithTime:"{startTime} başlatıldı"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"}},pt:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hu:{tournamentsThumbnail:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}}};function te(i){e.append_styles(i,"svelte-7aiybk",':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.svelte-7aiybk.svelte-7aiybk,.svelte-7aiybk.svelte-7aiybk::before,.svelte-7aiybk.svelte-7aiybk::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}a.svelte-7aiybk.svelte-7aiybk{color:var(--emfe-w-color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail.svelte-7aiybk.svelte-7aiybk{position:relative}.Thumbnail.svelte-7aiybk .CardImg.svelte-7aiybk{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail.svelte-7aiybk .CardImg.CardImgFinished.svelte-7aiybk{filter:grayscale(1)}.Thumbnail.svelte-7aiybk .Status.svelte-7aiybk{background:var(--emfe-w-color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail.svelte-7aiybk .Enrolled.svelte-7aiybk{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail.svelte-7aiybk .Details.svelte-7aiybk{padding:10px 20px 0}.Thumbnail.svelte-7aiybk .Details .Title.svelte-7aiybk{font-size:18px;padding-bottom:10px}.Thumbnail.svelte-7aiybk .Details .Date.svelte-7aiybk{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail.svelte-7aiybk .Details .ScoreCriteria.svelte-7aiybk{font-size:12px;padding-bottom:4px}.Thumbnail.svelte-7aiybk .Details .Games.svelte-7aiybk{font-size:12px}')}function E(i){let t,a,r,l,u,s;return{c(){t=e.element("div"),a=e.text(i[13]),e.attr(t,"class",r="Status "+i[15]+" svelte-7aiybk"),e.attr(t,"part",l="Status "+i[15])},m(o,b){e.insert(o,t,b),e.append(t,a),u||(s=e.action_destroyer(i[18].call(null,t)),u=!0)},p(o,b){b[0]&8192&&e.set_data(a,o[13]),b[0]&32768&&r!==(r="Status "+o[15]+" svelte-7aiybk")&&e.attr(t,"class",r),b[0]&32768&&l!==(l="Status "+o[15])&&e.attr(t,"part",l)},d(o){o&&e.detach(t),u=!1,s()}}}function P(i){let t,a=i[5]&&L(i);return{c(){a&&a.c(),t=e.empty()},m(r,l){a&&a.m(r,l),e.insert(r,t,l)},p(r,l){r[5]?a?a.p(r,l):(a=L(r),a.c(),a.m(t.parentNode,t)):a&&(a.d(1),a=null)},d(r){r&&e.detach(t),a&&a.d(r)}}}function L(i){let t,a=i[16]("tournamentsThumbnail.enrolled")+"",r;return{c(){t=e.element("div"),r=e.text(a),e.attr(t,"class","Enrolled svelte-7aiybk"),e.attr(t,"part","Enrolled")},m(l,u){e.insert(l,t,u),e.append(t,r)},p(l,u){u[0]&65536&&a!==(a=l[16]("tournamentsThumbnail.enrolled")+"")&&e.set_data(r,a)},d(l){l&&e.detach(t)}}}function ae(i){let t,a,r,l,u;return{c(){t=e.element("div"),e.attr(t,"class",a="CardImg "+(i[0]=="Closing"||i[0]=="Closed"?"CardImgFinished":"")+" svelte-7aiybk"),e.attr(t,"part",r="CardImg "+(i[0]=="Closing"||i[0]=="Closed"?"CardImgFinished":"")),e.set_style(t,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(s,o){e.insert(s,t,o),l||(u=e.action_destroyer(i[18].call(null,t)),l=!0)},p(s,o){o[0]&1&&a!==(a="CardImg "+(s[0]=="Closing"||s[0]=="Closed"?"CardImgFinished":"")+" svelte-7aiybk")&&e.attr(t,"class",a),o[0]&1&&r!==(r="CardImg "+(s[0]=="Closing"||s[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",r)},d(s){s&&e.detach(t),l=!1,u()}}}function ie(i){let t,a,r,l,u;return{c(){t=e.element("div"),e.attr(t,"class",a="CardImg "+(i[0]=="Closing"||i[0]=="Closed"?"CardImgFinished":"")+" svelte-7aiybk"),e.attr(t,"part",r="CardImg "+(i[0]=="Closing"||i[0]=="Closed"?"CardImgFinished":"")),e.set_style(t,"background-image","url('"+i[4]+"')")},m(s,o){e.insert(s,t,o),l||(u=e.action_destroyer(i[18].call(null,t)),l=!0)},p(s,o){o[0]&1&&a!==(a="CardImg "+(s[0]=="Closing"||s[0]=="Closed"?"CardImgFinished":"")+" svelte-7aiybk")&&e.attr(t,"class",a),o[0]&1&&r!==(r="CardImg "+(s[0]=="Closing"||s[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",r),o[0]&16&&e.set_style(t,"background-image","url('"+s[4]+"')")},d(s){s&&e.detach(t),l=!1,u()}}}function B(i){let t,a,r,l,u;return{c(){t=e.element("div"),a=e.text(i[11]),e.attr(t,"class","Date svelte-7aiybk"),e.attr(t,"part","Date")},m(s,o){e.insert(s,t,o),e.append(t,a),l||(u=e.action_destroyer(r=i[17].call(null,t,i[2])),l=!0)},p(s,o){o[0]&2048&&e.set_data(a,s[11]),r&&e.is_function(r.update)&&o[0]&4&&r.update.call(null,s[2])},d(s){s&&e.detach(t),l=!1,u()}}}function U(i){let t,a,r=i[16]("tournamentsThumbnail.scoreCriteria")+"",l,u,s,o,b,_=i[16]("tournamentsThumbnail.minbet")+"",h,g,C,A,y,c,d,m=i[16]("tournamentsThumbnail.seegames")+"",p,D,k,S=i[16]("tournamentsThumbnail.here")+"",j,M,R,w;return{c(){t=e.element("div"),a=e.element("p"),l=e.text(r),u=e.text(`:
2
+
3
+ `),s=e.element("span"),o=e.text(i[14]),b=e.text(`
4
+ (`),h=e.text(_),g=e.space(),C=e.text(i[6]),A=e.text(")"),y=e.space(),c=e.element("div"),d=e.element("p"),p=e.text(m),D=e.space(),k=e.element("a"),j=e.text(S),e.attr(s,"part","ScoreCriteriaSpan"),e.attr(s,"class","svelte-7aiybk"),e.attr(a,"part","ScoreCriteriaP"),e.attr(a,"class","svelte-7aiybk"),e.attr(t,"class","ScoreCriteria svelte-7aiybk"),e.attr(t,"part","ScoreCriteria"),e.attr(k,"part","GamesAnchor"),e.attr(k,"href",i[8]),e.attr(k,"target",M=i[9]==="true"?"_self":"_blank"),e.attr(k,"class","svelte-7aiybk"),e.attr(d,"part","GamesP"),e.attr(d,"class","svelte-7aiybk"),e.attr(c,"class","Games svelte-7aiybk"),e.attr(c,"part","Games")},m(f,T){e.insert(f,t,T),e.append(t,a),e.append(a,l),e.append(a,u),e.append(a,s),e.append(s,o),e.append(a,b),e.append(a,h),e.append(a,g),e.append(a,C),e.append(a,A),e.insert(f,y,T),e.insert(f,c,T),e.append(c,d),e.append(d,p),e.append(d,D),e.append(d,k),e.append(k,j),R||(w=[e.action_destroyer(i[19].call(null,s)),e.listen(k,"click",i[28])],R=!0)},p(f,T){T[0]&65536&&r!==(r=f[16]("tournamentsThumbnail.scoreCriteria")+"")&&e.set_data(l,r),T[0]&16384&&e.set_data(o,f[14]),T[0]&65536&&_!==(_=f[16]("tournamentsThumbnail.minbet")+"")&&e.set_data(h,_),T[0]&64&&e.set_data(C,f[6]),T[0]&65536&&m!==(m=f[16]("tournamentsThumbnail.seegames")+"")&&e.set_data(p,m),T[0]&65536&&S!==(S=f[16]("tournamentsThumbnail.here")+"")&&e.set_data(j,S),T[0]&256&&e.attr(k,"href",f[8]),T[0]&512&&M!==(M=f[9]==="true"?"_self":"_blank")&&e.attr(k,"target",M)},d(f){f&&(e.detach(t),e.detach(y),e.detach(c)),R=!1,e.run_all(w)}}}function ne(i){let t,a,r,l,u,s,o,b,_,h=i[0]&&E(i),g=i[7]=="true"&&P(i);function C(m,p){return m[4]?ie:ae}let A=C(i),y=A(i),c=i[2]&&B(i),d=i[12]&&U(i);return{c(){t=e.element("div"),h&&h.c(),a=e.space(),g&&g.c(),r=e.space(),y.c(),l=e.space(),u=e.element("div"),s=e.element("div"),o=e.text(i[1]),b=e.space(),c&&c.c(),_=e.space(),d&&d.c(),e.attr(s,"class","Title svelte-7aiybk"),e.attr(s,"part","Title"),e.attr(u,"class","Details svelte-7aiybk"),e.attr(u,"part","Details"),e.attr(t,"class","Thumbnail svelte-7aiybk"),e.attr(t,"part","Thumbnail")},m(m,p){e.insert(m,t,p),h&&h.m(t,null),e.append(t,a),g&&g.m(t,null),e.append(t,r),y.m(t,null),e.append(t,l),e.append(t,u),e.append(u,s),e.append(s,o),e.append(u,b),c&&c.m(u,null),e.append(u,_),d&&d.m(u,null),i[29](t)},p(m,p){m[0]?h?h.p(m,p):(h=E(m),h.c(),h.m(t,a)):h&&(h.d(1),h=null),m[7]=="true"?g?g.p(m,p):(g=P(m),g.c(),g.m(t,r)):g&&(g.d(1),g=null),A===(A=C(m))&&y?y.p(m,p):(y.d(1),y=A(m),y&&(y.c(),y.m(t,l))),p[0]&2&&e.set_data(o,m[1]),m[2]?c?c.p(m,p):(c=B(m),c.c(),c.m(u,_)):c&&(c.d(1),c=null),m[12]?d?d.p(m,p):(d=U(m),d.c(),d.m(u,null)):d&&(d.d(1),d=null)},i:e.noop,o:e.noop,d(m){m&&e.detach(t),h&&h.d(),g&&g.d(),y.d(),c&&c.d(),d&&d.d(),i[29](null)}}}function re(i,t,a){let r;e.component_subscribe(i,e.$format,n=>a(16,r=n));let{session:l=""}=t,{userid:u=""}=t,{title:s=""}=t,{startdate:o=""}=t,{status:b=""}=t,{tourid:_=""}=t,{thumbnail:h=""}=t,{userenrolled:g=""}=t,{scorecriteria:C=""}=t,{minbetcount:A=""}=t,{showenrolled:y="false"}=t,{gameurl:c=""}=t,{lang:d="en"}=t,{keepbrowsercontext:m="false"}=t,{clientstyling:p=""}=t,{clientstylingurl:D=""}=t,{translationurl:k=""}=t,S,j="",M=!1,R="",w="",f="";const T=()=>{fetch(k).then(v=>v.json()).then(v=>{Object.keys(v).forEach(J=>{W(J,v[J])})}).catch(v=>{console.log(v)})};Object.keys(x).forEach(n=>{W(n,x[n])});const N=n=>{n.data&&(n.data&&n.data.type=="SessionID"&&a(12,M=!0),n.data.type==`TournamentStatus_${_}`&&a(0,b=n.data.status))},z=()=>{const n={month:"long"};let v=new Date(o),J=new Intl.DateTimeFormat("en",n).format(v),Q=v.getDate(),X=v.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});const $=()=>r(b==="Running"?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt");a(11,j=`${Q} `+r(`tournamentsThumbnail.${J}`)+", "+$()+` ${X}`)},F=()=>{b=="Unstarted"&&(a(13,R=r("tournamentsThumbnail.scheduled")),a(15,f="StatusUnstarted")),b=="Running"&&(a(13,R=r("tournamentsThumbnail.ongoing")),a(15,f="StatusRunning")),(b=="Closed"||b=="Closing")&&a(13,R=r("tournamentsThumbnail.finished")),b=="Closed"&&a(15,f="StatusClosed"),b=="Closing"&&a(15,f="StatusClosing")},I=()=>{C=="BetCount"&&a(14,w=r("tournamentsThumbnail.betCount")),C=="MaxWinStakeRatio"&&a(14,w=r("tournamentsThumbnail.maxWinStakeRatio")),C=="WinStakeRatio"&&a(14,w=r("tournamentsThumbnail.winStakeRatio")),C=="Stake"&&a(14,w=r("tournamentsThumbnail.stake"))},O=(n,v)=>{window.postMessage({type:"tournamentGamesClicked",tourId:v},window.location.href)},K=()=>{l.length>0&&l!="false"?a(12,M=!0):a(12,M=!1)},H=()=>{let n=document.createElement("style");n.innerHTML=p,S.appendChild(n)},V=()=>{let n=new URL(D),v=document.createElement("style");fetch(n.href).then(J=>J.text()).then(J=>{v.innerHTML=J,setTimeout(()=>{S.appendChild(v)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.addEventListener("message",N,!1),()=>{window.removeEventListener("message",N)}));const q=()=>{ee(d),I(),F(),o&&z()},Y=()=>O();function Z(n){e.binding_callbacks[n?"unshift":"push"](()=>{S=n,a(10,S)})}return i.$$set=n=>{"session"in n&&a(21,l=n.session),"userid"in n&&a(22,u=n.userid),"title"in n&&a(1,s=n.title),"startdate"in n&&a(2,o=n.startdate),"status"in n&&a(0,b=n.status),"tourid"in n&&a(3,_=n.tourid),"thumbnail"in n&&a(4,h=n.thumbnail),"userenrolled"in n&&a(5,g=n.userenrolled),"scorecriteria"in n&&a(23,C=n.scorecriteria),"minbetcount"in n&&a(6,A=n.minbetcount),"showenrolled"in n&&a(7,y=n.showenrolled),"gameurl"in n&&a(8,c=n.gameurl),"lang"in n&&a(24,d=n.lang),"keepbrowsercontext"in n&&a(9,m=n.keepbrowsercontext),"clientstyling"in n&&a(25,p=n.clientstyling),"clientstylingurl"in n&&a(26,D=n.clientstylingurl),"translationurl"in n&&a(27,k=n.translationurl)},i.$$.update=()=>{i.$$.dirty[0]&33555456&&S&&p&&H(),i.$$.dirty[0]&67109888&&S&&D&&V(),i.$$.dirty[0]&134217728&&k&&T(),i.$$.dirty[0]&2097152&&l&&K(),i.$$.dirty[0]&1&&b&&F(),i.$$.dirty[0]&16777218&&d&&s&&q(),i.$$.dirty[0]&4&&o&&z(),i.$$.dirty[0]&8388608&&C&&I()},[b,s,o,_,h,g,A,y,c,m,S,j,M,R,w,f,r,z,F,I,O,l,u,C,d,p,D,k,Y,Z]}class G extends e.SvelteComponent{constructor(t){super(),e.init(this,t,re,ne,e.safe_not_equal,{session:21,userid:22,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:23,minbetcount:6,showenrolled:7,gameurl:8,lang:24,keepbrowsercontext:9,clientstyling:25,clientstylingurl:26,translationurl:27},te,[-1,-1])}get session(){return this.$$.ctx[21]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[22]}set userid(t){this.$$set({userid:t}),e.flush()}get title(){return this.$$.ctx[1]}set title(t){this.$$set({title:t}),e.flush()}get startdate(){return this.$$.ctx[2]}set startdate(t){this.$$set({startdate:t}),e.flush()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),e.flush()}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),e.flush()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(t){this.$$set({thumbnail:t}),e.flush()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(t){this.$$set({userenrolled:t}),e.flush()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(t){this.$$set({scorecriteria:t}),e.flush()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(t){this.$$set({minbetcount:t}),e.flush()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(t){this.$$set({showenrolled:t}),e.flush()}get gameurl(){return this.$$.ctx[8]}set gameurl(t){this.$$set({gameurl:t}),e.flush()}get lang(){return this.$$.ctx[24]}set lang(t){this.$$set({lang:t}),e.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),e.flush()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[27]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(G,{session:{},userid:{},title:{},startdate:{},status:{},tourid:{},thumbnail:{},userenrolled:{},scorecriteria:{},minbetcount:{},showenrolled:{},gameurl:{},lang:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=G;