@everymatrix/casino-tournament-banner 1.55.0 → 1.56.2

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.
@@ -2,7 +2,7 @@ const NAMESPACE = 'casino-tournament-banner';
2
2
  const BUILD = /* casino-tournament-banner */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -358,31 +358,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
358
358
  if (nonce != null) {
359
359
  styleElm.setAttribute("nonce", nonce);
360
360
  }
361
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
362
- if (styleContainerNode.nodeName === "HEAD") {
363
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
364
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
365
- styleContainerNode.insertBefore(styleElm, referenceNode2);
366
- } else if ("host" in styleContainerNode) {
367
- if (supportsConstructableStylesheets) {
368
- const stylesheet = new CSSStyleSheet();
369
- stylesheet.replaceSync(style);
370
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
371
- } else {
372
- const existingStyleContainer = styleContainerNode.querySelector("style");
373
- if (existingStyleContainer) {
374
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
375
- } else {
376
- styleContainerNode.prepend(styleElm);
377
- }
378
- }
379
- } else {
380
- styleContainerNode.append(styleElm);
381
- }
382
- }
383
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
384
- styleContainerNode.insertBefore(styleElm, null);
385
- }
361
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
386
362
  }
387
363
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
388
364
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -405,7 +381,7 @@ var attachStyles = (hostRef) => {
405
381
  const scopeId2 = addStyle(
406
382
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
407
383
  cmpMeta);
408
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
384
+ if (flags & 10 /* needsScopedEncapsulation */) {
409
385
  elm["s-sc"] = scopeId2;
410
386
  elm.classList.add(scopeId2 + "-h");
411
387
  }
@@ -449,11 +425,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
449
425
  if (memberName === "list") {
450
426
  isProp = false;
451
427
  } else if (oldValue == null || elm[memberName] != n) {
452
- if (typeof elm.__lookupSetter__(memberName) === "function") {
453
- elm[memberName] = n;
454
- } else {
455
- elm.setAttribute(memberName, n);
456
- }
428
+ elm[memberName] = n;
457
429
  }
458
430
  } else {
459
431
  elm[memberName] = newValue;
@@ -533,9 +505,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
533
505
  {
534
506
  updateElement(null, newVNode2, isSvgMode);
535
507
  }
536
- const rootNode = elm.getRootNode();
537
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
538
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
508
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
539
509
  elm.classList.add(elm["s-si"] = scopeId);
540
510
  }
541
511
  if (newVNode2.$children$) {
@@ -699,10 +669,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
699
669
  elm.textContent = "";
700
670
  }
701
671
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
702
- } else if (
703
- // don't do this on initial render as it can cause non-hydrated content to be removed
704
- !isInitialRender && BUILD.updatable && oldChildren !== null
705
- ) {
672
+ } else if (oldChildren !== null) {
706
673
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
707
674
  }
708
675
  if (isSvgMode && tag === "svg") {
@@ -971,8 +938,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
971
938
  if (this.hasOwnProperty(propName)) {
972
939
  newValue = this[propName];
973
940
  delete this[propName];
974
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
975
- this[propName] == newValue) {
941
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
976
942
  return;
977
943
  } else if (propName == null) {
978
944
  const hostRef = getHostRef(this);
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-4d03c228.js';
2
- export { s as setNonce } from './index-4d03c228.js';
1
+ import { b as bootstrapLazy } from './index-4dc9a6b7.js';
2
+ export { s as setNonce } from './index-4dc9a6b7.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1015,8 +1015,6 @@ export declare namespace JSXBase {
1015
1015
  autoPlay?: boolean;
1016
1016
  autoplay?: boolean | string;
1017
1017
  controls?: boolean;
1018
- controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
1019
- controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
1020
1018
  crossOrigin?: string;
1021
1019
  crossorigin?: string;
1022
1020
  loop?: boolean;
@@ -1566,10 +1564,6 @@ export declare namespace JSXBase {
1566
1564
  onSubmitCapture?: (event: Event) => void;
1567
1565
  onInvalid?: (event: Event) => void;
1568
1566
  onInvalidCapture?: (event: Event) => void;
1569
- onBeforeToggle?: (event: Event) => void;
1570
- onBeforeToggleCapture?: (event: Event) => void;
1571
- onToggle?: (event: Event) => void;
1572
- onToggleCapture?: (event: Event) => void;
1573
1567
  onLoad?: (event: Event) => void;
1574
1568
  onLoadCapture?: (event: Event) => void;
1575
1569
  onError?: (event: Event) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournament-banner",
3
- "version": "1.55.0",
3
+ "version": "1.56.2",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1,2 +0,0 @@
1
- var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],y=[],w=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?$(b):f.raf(b))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{v(m),v(y),(d=m.length>0)&&f.raf(b)},$=e=>h().then(e),g=w(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>k,unwrap:()=>x,unwrapErr:()=>P});var k=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?R(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=R(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},R=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),D={},H=e=>n(e).$hostElement$,T=(e,t,n)=>{const l=H(e);return{emit:e=>L(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},L=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},N=new WeakMap,U=e=>"sc-"+e.$,W=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=q(n),s=q(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(G);t=t.replace(V,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},F=/\s/,q=e=>e?e.split(F):[],G="Capture",V=RegExp(G+"$"),_=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,s=t.u||S;for(const e of z(Object.keys(o)))e in s||W(l,e,o[e],void 0,n,t.l);for(const e of z(Object.keys(s)))W(l,e,o[e],s[e],n,t.l)};function z(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var B=!1,I=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else{if(B||(B="svg"===l.m),o=l.v=a.createElementNS(B?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),B&&"foreignObject"===l.m&&(B=!1),_(null,l,B),o.getRootNode().querySelector("body"),l.h)for(r=0;r<l.h.length;++r)s=I(e,l,r),s&&o.appendChild(s);"svg"===l.m?B=!1:"foreignObject"===o.tagName&&(B=!0)}return o["s-hn"]=M,o},J=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=I(null,n,o),r&&(l[o].v=r,Y(i,r,t)))},K=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;e&&e.remove()}}},Q=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),X=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(_(e,t,B="svg"===r||"foreignObject"!==r&&B),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],y=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--d];else if(Q(h,m,o))X(h,m,o),h=t[++i],m=l[++c];else if(Q(p,y,o))X(p,y,o),p=t[--f],y=l[--d];else if(Q(h,y,o))X(h,y,o),Y(e,h.v,p.v.nextSibling),h=t[++i],y=l[--d];else if(Q(p,m,o))X(p,m,o),Y(e,p.v,h.v),p=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=I(t&&t[c],n,u):(X(r,m,o),t[u]=void 0,s=r.v),m=l[++c]):(s=I(t&&t[c],n,c),m=l[++c]),s&&Y(h.v.parentNode,s,h.v)}i>f?J(e,null==l[d+1]?null:l[d+1].v,n,l,c,d):c>d&&K(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),J(l,null,t,s,0,s.length-1)):!n&&null!==o&&K(o,0,o.length-1),B&&"svg"===r&&(B=!1)):e.i!==i&&(l.data=i)},Y=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Z=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},ee=(e,t)=>{if(e.l|=16,!(4&e.l))return Z(e,e.j),g((()=>te(e,t)));e.l|=512},te=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.O&&(e.O.map((([e,t])=>ce(n,e,t))),e.O=void 0),l=ce(n,"componentWillLoad")),ne(l,(()=>oe(e,n,t)))},ne=(e,t)=>le(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),le=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,oe=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=U(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=N.get(e=e.head||e);if(r||N.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const l=null!=(n=f.C)?n:O(a);if(null!=l&&s.setAttribute("nonce",l),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(p){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);se(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>re(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},se=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.M||R(null,null),r=(e=>e&&e.m===D)(t)?t:A(null,null,t);if(M=l.tagName,o.P&&(r.u=r.u||{},o.P.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.M=r,r.v=s.v=l.shadowRoot||l,X(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},re=e=>{const t=e.$hostElement$,n=e.j;ce(e.t,"componentDidRender"),64&e.l||(e.l|=64,ue(t),e.A(t),n||ie()),e.S&&(e.S(),e.S=void 0),512&e.l&&$((()=>ee(e,!1))),e.l&=-517},ie=()=>{ue(a.documentElement),$((()=>L(u,"appload",{detail:{namespace:"casino-tournament-banner"}})))},ce=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ue=e=>e.classList.add("hydrated"),ae=(e,t,l)=>{var o,r;const i=e.prototype;if(t.R||t.D||e.watchers){e.watchers&&!t.D&&(t.D=e.watchers);const c=Object.entries(null!=(o=t.R)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).H.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.H.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.R[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.H.set(t,l),a)){if(o.D&&128&u){const e=o.D[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&ee(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.D)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.D)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},fe=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,y=a.head,w=y.querySelector("meta[charset]"),v=a.createElement("style"),b=[];let $,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],$:l[1],R:l[2],T:l[3]};4&c.l&&(S=!0),c.R=l[2],c.T=l[3],c.P=[],c.D=null!=(o=l[4])?o:{};const u=c.$,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,H:new Map};l.L=new Promise((e=>l.A=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,he(this,e,c.T)),$&&(clearTimeout($),$=null),g?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)he(e,t,l.T),(null==t?void 0:t.t)||(null==t?void 0:t.L)&&t.L.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(t,t.j=n);break}}l.R&&Object.entries(l.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.N){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.N;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.$}#${t.U}" was not found`);l.isProxied||(n.D=l.watchers,ae(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=U(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>ee(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.W&&(e.W.map((e=>e())),e.W=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.L)&&e.L.then((()=>{}))}})()))}componentOnReady(){return n(this).L}};c.N=e[0],d.includes(u)||m.get(u)||(h.push(u),m.define(u,ae(a,c,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=f.C)?o:O(a);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>$=setTimeout(ie,30)))},he=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=de(e,n),r=pe(t,o),i=me(n);f.ael(s,l,r,i),(t.W=t.W||[]).push((()=>f.rel(s,l,r,i)))}))},pe=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.O=e.O||[]).push([t,n])}catch(e){s(e)}},de=(e,t)=>8&t?u:e,me=e=>({passive:!!(1&e),capture:!!(2&e)}),ye=e=>f.C=e;export{fe as b,T as c,H as g,A as h,h as p,l as r,ye as s}
@@ -1,9 +0,0 @@
1
- import{r as t,h as e,g as i,c as n}from"./p-890a4a7f.js";const r={en:{joined:"Joined",join:"Join",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 ",startedAtWithTime:"Started ",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Log in",register:"Register",details:"Details",joinerror:"An error occurred while registering in the tournament, please try again.",tournament:"Tournament",terms:"Terms and conditions",left:"left",minutes:"minutes",hours:"hours",days:"days"},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月",login:"登錄",register:"登記",details:"細節",join:"加入",joinerror:"加入錦標賽時出錯,請重試",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{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",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Connexion",register:"Enregistre",details:"Détails",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",startingAtWithTime:"Începând de",startedAtWithTime:"A inceput:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie",login:"Autentificare",register:"Înregistrare",details:"Detalii",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou.",left:"rămase",minutes:"minute",hours:"ore",days:"zile",tournament:"turneu"},tr:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",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",login:"Giriş",register:"Kayıt Ol",details:"Detaylar",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου",login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά.",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre",login:"Iniciar sesión",register:"Regístrate",details:"Detalles",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"},pt:{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",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Entrar",register:"Registro",details:"Detalhes",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"},hu:{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",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra.",left:"bal",minutes:"perc",hours:"óra",days:"nap"},hr:{joined:"Pridružen",enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",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",login:"Prijaviti se",register:"Registracija",details:"Detalji",join:"join",joinerror:"Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"}},s=(t,e)=>{var i,n;return(null===(i=r[e])||void 0===i?void 0:i[t])||(null===(n=r.en)||void 0===n?void 0:n[t])};
2
- //! moment.js
3
- //! version : 2.30.1
4
- //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
5
- //! license : MIT
6
- //! momentjs.com
7
- var a,o;function u(){return a.apply(null,arguments)}function h(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function d(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(c(t,e))return!1;return!0}function f(t){return void 0===t}function m(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function g(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function b(t,e){var i,n=[],r=t.length;for(i=0;i<r;++i)n.push(e(t[i],i));return n}function y(t,e){for(var i in e)c(e,i)&&(t[i]=e[i]);return c(e,"toString")&&(t.toString=e.toString),c(e,"valueOf")&&(t.valueOf=e.valueOf),t}function v(t,e,i,n){return Ee(t,e,i,n,!0).utc()}function p(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function M(t){var e=null,i=!1,n=t._d&&!isNaN(t._d.getTime());return n&&(e=p(t),i=o.call(e.parsedDateParts,(function(t){return null!=t})),n=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i),t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t)?n:(t._isValid=n,t._isValid)}function k(t){var e=v(NaN);return null!=t?y(p(e),t):p(e).userInvalidated=!0,e}o=Array.prototype.some?Array.prototype.some:function(t){var e,i=Object(this),n=i.length>>>0;for(e=0;e<n;e++)if(e in i&&t.call(this,i[e],e,i))return!0;return!1};var S=u.momentProperties=[],w=!1;function D(t,e){var i,n,r,s=S.length;if(f(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),f(e._i)||(t._i=e._i),f(e._f)||(t._f=e._f),f(e._l)||(t._l=e._l),f(e._strict)||(t._strict=e._strict),f(e._tzm)||(t._tzm=e._tzm),f(e._isUTC)||(t._isUTC=e._isUTC),f(e._offset)||(t._offset=e._offset),f(e._pf)||(t._pf=p(e)),f(e._locale)||(t._locale=e._locale),s>0)for(i=0;i<s;i++)f(r=e[n=S[i]])||(t[n]=r);return t}function Y(t){D(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,u.updateOffset(this),w=!1)}function A(t){return t instanceof Y||null!=t&&null!=t._isAMomentObject}function N(t){!1===u.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function j(t,e){var i=!0;return y((function(){if(null!=u.deprecationHandler&&u.deprecationHandler(null,t),i){var n,r,s,a=[],o=arguments.length;for(r=0;r<o;r++){if(n="","object"==typeof arguments[r]){for(s in n+="\n["+r+"] ",arguments[0])c(arguments[0],s)&&(n+=s+": "+arguments[0][s]+", ");n=n.slice(0,-2)}else n=arguments[r];a.push(n)}N(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var T,x={};function R(t,e){null!=u.deprecationHandler&&u.deprecationHandler(t,e),x[t]||(N(e),x[t]=!0)}function C(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function W(t,e){var i,n=y({},t);for(i in e)c(e,i)&&(d(t[i])&&d(e[i])?(n[i]={},y(n[i],t[i]),y(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)c(t,i)&&!c(e,i)&&d(t[i])&&(n[i]=y({},n[i]));return n}function J(t){null!=t&&this.set(t)}function H(t,e,i){var n=""+Math.abs(t);return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}u.suppressDeprecationWarnings=!1,u.deprecationHandler=null,T=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)c(t,e)&&i.push(e);return i};var O=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,E=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},B={};function G(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&(B[t]=r),e&&(B[e[0]]=function(){return H(r.apply(this,arguments),e[1],e[2])}),i&&(B[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function L(t,e){return t.isValid()?(e=z(e,t.localeData()),F[e]=F[e]||function(t){var e,i,n,r=t.match(O);for(e=0,i=r.length;e<i;e++)r[e]=B[r[e]]?B[r[e]]:(n=r[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,s="";for(n=0;n<i;n++)s+=C(r[n])?r[n].call(e,t):r[n];return s}}(e),F[e](t)):t.localeData().invalidDate()}function z(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(E.lastIndex=0;i>=0&&E.test(t);)t=t.replace(E,n),E.lastIndex=0,i-=1;return t}var _={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 I(t){return"string"==typeof t?_[t]||_[t.toLowerCase()]:void 0}function Z(t){var e,i,n={};for(i in t)c(t,i)&&(e=I(i))&&(n[e]=t[i]);return n}var P,V={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},U=/\d/,$=/\d\d/,q=/\d{3}/,K=/\d{4}/,Q=/[+-]?\d{6}/,X=/\d\d?/,tt=/\d\d\d\d?/,et=/\d\d\d\d\d\d?/,it=/\d{1,3}/,nt=/\d{1,4}/,rt=/[+-]?\d{1,6}/,st=/\d+/,at=/[+-]?\d+/,ot=/Z|[+-]\d\d:?\d\d/gi,ut=/Z|[+-]\d\d(?::?\d\d)?/gi,ht=/[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,dt=/^[1-9]\d?/,ct=/^([1-9]\d|\d)/;function lt(t,e,i){P[t]=C(e)?e:function(t){return t&&i?i:e}}function ft(t,e){return c(P,t)?P[t](e._strict,e._locale):new RegExp(mt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,r){return e||i||n||r}))))}function mt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function gt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function bt(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=gt(e)),i}P={};var yt={};function vt(t,e){var i,n,r=e;for("string"==typeof t&&(t=[t]),m(e)&&(r=function(t,i){i[e]=bt(t)}),n=t.length,i=0;i<n;i++)yt[t[i]]=r}function pt(t,e){vt(t,(function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)}))}function Mt(t,e,i){null!=e&&c(yt,t)&&yt[t](e,i._a,i,t)}function kt(t){return t%4==0&&t%100!=0||t%400==0}var St=0,wt=1,Dt=2,Yt=3,At=4,Nt=5,jt=6,Tt=7,xt=8;function Rt(t){return kt(t)?366:365}G("Y",0,0,(function(){var t=this.year();return t<=9999?H(t,4):"+"+t})),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"),lt("Y",at),lt("YY",X,$),lt("YYYY",nt,K),lt("YYYYY",rt,Q),lt("YYYYYY",rt,Q),vt(["YYYYY","YYYYYY"],St),vt("YYYY",(function(t,e){e[St]=2===t.length?u.parseTwoDigitYear(t):bt(t)})),vt("YY",(function(t,e){e[St]=u.parseTwoDigitYear(t)})),vt("Y",(function(t,e){e[St]=parseInt(t,10)})),u.parseTwoDigitYear=function(t){return bt(t)+(bt(t)>68?1900:2e3)};var Ct,Wt=Jt("FullYear",!0);function Jt(t,e){return function(i){return null!=i?(Ot(this,t,i),u.updateOffset(this,e),this):Ht(this,t)}}function Ht(t,e){if(!t.isValid())return NaN;var i=t._d,n=t._isUTC;switch(e){case"Milliseconds":return n?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return n?i.getUTCSeconds():i.getSeconds();case"Minutes":return n?i.getUTCMinutes():i.getMinutes();case"Hours":return n?i.getUTCHours():i.getHours();case"Date":return n?i.getUTCDate():i.getDate();case"Day":return n?i.getUTCDay():i.getDay();case"Month":return n?i.getUTCMonth():i.getMonth();case"FullYear":return n?i.getUTCFullYear():i.getFullYear();default:return NaN}}function Ot(t,e,i){var n,r,s,a,o;if(t.isValid()&&!isNaN(i)){switch(n=t._d,r=t._isUTC,e){case"Milliseconds":return void(r?n.setUTCMilliseconds(i):n.setMilliseconds(i));case"Seconds":return void(r?n.setUTCSeconds(i):n.setSeconds(i));case"Minutes":return void(r?n.setUTCMinutes(i):n.setMinutes(i));case"Hours":return void(r?n.setUTCHours(i):n.setHours(i));case"Date":return void(r?n.setUTCDate(i):n.setDate(i));case"FullYear":break;default:return}s=i,a=t.month(),o=29!==(o=t.date())||1!==a||kt(s)?o:28,r?n.setUTCFullYear(s,a,o):n.setFullYear(s,a,o)}}function Et(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?kt(t)?29:28:31-i%7%2}Ct=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},G("M",["MM",2],"Mo",(function(){return this.month()+1})),G("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),G("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),lt("M",X,dt),lt("MM",X,$),lt("MMM",(function(t,e){return e.monthsShortRegex(t)})),lt("MMMM",(function(t,e){return e.monthsRegex(t)})),vt(["M","MM"],(function(t,e){e[wt]=bt(t)-1})),vt(["MMM","MMMM"],(function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[wt]=r:p(i).invalidMonth=t}));var Ft="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Bt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Gt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Lt=ht,zt=ht;function _t(t,e,i){var n,r,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=v([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=Ct.call(this._shortMonthsParse,a))?r:null:-1!==(r=Ct.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=Ct.call(this._shortMonthsParse,a))||-1!==(r=Ct.call(this._longMonthsParse,a))?r:null:-1!==(r=Ct.call(this._longMonthsParse,a))||-1!==(r=Ct.call(this._shortMonthsParse,a))?r:null}function It(t,e){if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=bt(e);else if(!m(e=t.localeData().monthsParse(e)))return t;var i=e,n=t.date();return n=n<29?n:Math.min(n,Et(t.year(),i)),t._isUTC?t._d.setUTCMonth(i,n):t._d.setMonth(i,n),t}function Zt(t){return null!=t?(It(this,t),u.updateOffset(this,!0),this):Ht(this,"Month")}function Pt(){function t(t,e){return e.length-t.length}var e,i,n,r,s=[],a=[],o=[];for(e=0;e<12;e++)i=v([2e3,e]),n=mt(this.monthsShort(i,"")),r=mt(this.months(i,"")),s.push(n),a.push(r),o.push(r),o.push(n);s.sort(t),a.sort(t),o.sort(t),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Vt(t,e,i,n,r,s,a){var o;return t<100&&t>=0?(o=new Date(t+400,e,i,n,r,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,i,n,r,s,a),o}function Ut(t){var e,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function $t(t,e,i){var n=7+e-i;return-(7+Ut(t,0,n).getUTCDay()-e)%7+n-1}function qt(t,e,i,n,r){var s,a,o=1+7*(e-1)+(7+i-n)%7+$t(t,n,r);return o<=0?a=Rt(s=t-1)+o:o>Rt(t)?(s=t+1,a=o-Rt(t)):(s=t,a=o),{year:s,dayOfYear:a}}function Kt(t,e,i){var n,r,s=$t(t.year(),e,i),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?n=a+Qt(r=t.year()-1,e,i):a>Qt(t.year(),e,i)?(n=a-Qt(t.year(),e,i),r=t.year()+1):(r=t.year(),n=a),{week:n,year:r}}function Qt(t,e,i){var n=$t(t,e,i),r=$t(t+1,e,i);return(Rt(t)-n+r)/7}function Xt(t,e){return t.slice(e,7).concat(t.slice(0,e))}G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),lt("w",X,dt),lt("ww",X,$),lt("W",X,dt),lt("WW",X,$),pt(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=bt(t)})),G("d",0,"do","day"),G("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),G("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),G("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),lt("d",X),lt("e",X),lt("E",X),lt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),lt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),lt("dddd",(function(t,e){return e.weekdaysRegex(t)})),pt(["dd","ddd","dddd"],(function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:p(i).invalidWeekday=t})),pt(["d","e","E"],(function(t,e,i,n){e[n]=bt(t)}));var te="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ee="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ie="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ne=ht,re=ht,se=ht;function ae(t,e,i){var n,r,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=v([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(r=Ct.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Ct.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Ct.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=Ct.call(this._weekdaysParse,a))||-1!==(r=Ct.call(this._shortWeekdaysParse,a))||-1!==(r=Ct.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Ct.call(this._shortWeekdaysParse,a))||-1!==(r=Ct.call(this._weekdaysParse,a))||-1!==(r=Ct.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Ct.call(this._minWeekdaysParse,a))||-1!==(r=Ct.call(this._weekdaysParse,a))||-1!==(r=Ct.call(this._shortWeekdaysParse,a))?r:null}function oe(){function t(t,e){return e.length-t.length}var e,i,n,r,s,a=[],o=[],u=[],h=[];for(e=0;e<7;e++)i=v([2e3,1]).day(e),n=mt(this.weekdaysMin(i,"")),r=mt(this.weekdaysShort(i,"")),s=mt(this.weekdays(i,"")),a.push(n),o.push(r),u.push(s),h.push(n),h.push(r),h.push(s);a.sort(t),o.sort(t),u.sort(t),h.sort(t),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ue(){return this.hours()%12||12}function he(t,e){G(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function de(t,e){return e._meridiemParse}G("H",["HH",2],0,"hour"),G("h",["hh",2],0,ue),G("k",["kk",2],0,(function(){return this.hours()||24})),G("hmm",0,0,(function(){return""+ue.apply(this)+H(this.minutes(),2)})),G("hmmss",0,0,(function(){return""+ue.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)})),G("Hmm",0,0,(function(){return""+this.hours()+H(this.minutes(),2)})),G("Hmmss",0,0,(function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)})),he("a",!0),he("A",!1),lt("a",de),lt("A",de),lt("H",X,ct),lt("h",X,dt),lt("k",X,dt),lt("HH",X,$),lt("hh",X,$),lt("kk",X,$),lt("hmm",tt),lt("hmmss",et),lt("Hmm",tt),lt("Hmmss",et),vt(["H","HH"],Yt),vt(["k","kk"],(function(t,e){var i=bt(t);e[Yt]=24===i?0:i})),vt(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),vt(["h","hh"],(function(t,e,i){e[Yt]=bt(t),p(i).bigHour=!0})),vt("hmm",(function(t,e,i){var n=t.length-2;e[Yt]=bt(t.substr(0,n)),e[At]=bt(t.substr(n)),p(i).bigHour=!0})),vt("hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[Yt]=bt(t.substr(0,n)),e[At]=bt(t.substr(n,2)),e[Nt]=bt(t.substr(r)),p(i).bigHour=!0})),vt("Hmm",(function(t,e){var i=t.length-2;e[Yt]=bt(t.substr(0,i)),e[At]=bt(t.substr(i))})),vt("Hmmss",(function(t,e){var i=t.length-4,n=t.length-2;e[Yt]=bt(t.substr(0,i)),e[At]=bt(t.substr(i,2)),e[Nt]=bt(t.substr(n))}));var ce,le=Jt("Hours",!0),fe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ft,monthsShort:Bt,week:{dow:0,doy:6},weekdays:te,weekdaysMin:ie,weekdaysShort:ee,meridiemParse:/[ap]\.?m?\.?/i},me={},ge={};function be(t,e){var i,n=Math.min(t.length,e.length);for(i=0;i<n;i+=1)if(t[i]!==e[i])return i;return n}function ye(t){return t?t.toLowerCase().replace("_","-"):t}function ve(t){var e=null;if(void 0===me[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return!(!t||!t.match("^[^/\\\\]*$"))}(t))try{e=ce._abbr,require("./locale/"+t),pe(e)}catch(e){me[t]=null}return me[t]}function pe(t,e){var i;return t&&((i=f(e)?ke(t):Me(t,e))?ce=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ce._abbr}function Me(t,e){if(null!==e){var i,n=fe;if(e.abbr=t,null!=me[t])R("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=me[t]._config;else if(null!=e.parentLocale)if(null!=me[e.parentLocale])n=me[e.parentLocale]._config;else{if(null==(i=ve(e.parentLocale)))return ge[e.parentLocale]||(ge[e.parentLocale]=[]),ge[e.parentLocale].push({name:t,config:e}),null;n=i._config}return me[t]=new J(W(n,e)),ge[t]&&ge[t].forEach((function(t){Me(t.name,t.config)})),pe(t),me[t]}return delete me[t],null}function ke(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ce;if(!h(t)){if(e=ve(t))return e;t=[t]}return function(t){for(var e,i,n,r,s=0;s<t.length;){for(e=(r=ye(t[s]).split("-")).length,i=(i=ye(t[s+1]))?i.split("-"):null;e>0;){if(n=ve(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&be(r,i)>=e-1)break;e--}s++}return ce}(t)}function Se(t){var e,i=t._a;return i&&-2===p(t).overflow&&(e=i[wt]<0||i[wt]>11?wt:i[Dt]<1||i[Dt]>Et(i[St],i[wt])?Dt:i[Yt]<0||i[Yt]>24||24===i[Yt]&&(0!==i[At]||0!==i[Nt]||0!==i[jt])?Yt:i[At]<0||i[At]>59?At:i[Nt]<0||i[Nt]>59?Nt:i[jt]<0||i[jt]>999?jt:-1,p(t)._overflowDayOfYear&&(e<St||e>Dt)&&(e=Dt),p(t)._overflowWeeks&&-1===e&&(e=Tt),p(t)._overflowWeekday&&-1===e&&(e=xt),p(t).overflow=e),t}var we=/^\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)?)?$/,De=/^\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)?)?$/,Ye=/Z|[+-]\d\d(?::?\d\d)?/,Ae=[["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]],Ne=[["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/]],je=/^\/?Date\((-?\d+)/i,Te=/^(?:(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}))$/,xe={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Re(t){var e,i,n,r,s,a,o=t._i,u=we.exec(o)||De.exec(o),h=Ae.length,d=Ne.length;if(u){for(p(t).iso=!0,e=0,i=h;e<i;e++)if(Ae[e][1].exec(u[1])){r=Ae[e][0],n=!1!==Ae[e][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(e=0,i=d;e<i;e++)if(Ne[e][1].exec(u[3])){s=(u[2]||" ")+Ne[e][0];break}if(null==s)return void(t._isValid=!1)}if(!n&&null!=s)return void(t._isValid=!1);if(u[4]){if(!Ye.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=r+(s||"")+(a||""),He(t)}else t._isValid=!1}function Ce(t){var e,i,n,r,s,a,o,u,h,d=Te.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(d){if(i=d[3],n=d[2],r=d[5],s=d[6],a=d[7],o=[(u=d[4],h=parseInt(u,10),h<=49?2e3+h:h<=999?1900+h:h),Bt.indexOf(i),parseInt(n,10),parseInt(r,10),parseInt(s,10)],a&&o.push(parseInt(a,10)),!function(t,e,i){return!t||ee.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(p(i).weekdayMismatch=!0,i._isValid=!1,!1)}(d[1],e=o,t))return;t._a=e,t._tzm=function(t,e,i){if(t)return xe[t];if(e)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(d[8],d[9],d[10]),t._d=Ut.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0}else t._isValid=!1}function We(t,e,i){return null!=t?t:null!=e?e:i}function Je(t){var e,i,n,r,s,a=[];if(!t._d){for(n=function(t){var e=new Date(u.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[Dt]&&null==t._a[wt]&&function(t){var e,i,n,r,s,a,o,u,h;null!=(e=t._w).GG||null!=e.W||null!=e.E?(s=1,a=4,i=We(e.GG,t._a[St],Kt(Fe(),1,4).year),n=We(e.W,1),((r=We(e.E,1))<1||r>7)&&(u=!0)):(s=t._locale._week.dow,a=t._locale._week.doy,h=Kt(Fe(),s,a),i=We(e.gg,t._a[St],h.year),n=We(e.w,h.week),null!=e.d?((r=e.d)<0||r>6)&&(u=!0):null!=e.e?(r=e.e+s,(e.e<0||e.e>6)&&(u=!0)):r=s),n<1||n>Qt(i,s,a)?p(t)._overflowWeeks=!0:null!=u?p(t)._overflowWeekday=!0:(o=qt(i,n,r,s,a),t._a[St]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(s=We(t._a[St],n[St]),(t._dayOfYear>Rt(s)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),i=Ut(s,0,t._dayOfYear),t._a[wt]=i.getUTCMonth(),t._a[Dt]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Yt]&&0===t._a[At]&&0===t._a[Nt]&&0===t._a[jt]&&(t._nextDay=!0,t._a[Yt]=0),t._d=(t._useUTC?Ut:Vt).apply(null,a),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Yt]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(p(t).weekdayMismatch=!0)}}function He(t){if(t._f!==u.ISO_8601)if(t._f!==u.RFC_2822){t._a=[],p(t).empty=!0;var e,i,n,r,s,a,o,h=""+t._i,d=h.length,c=0;for(o=(n=z(t._f,t._locale).match(O)||[]).length,e=0;e<o;e++)(i=(h.match(ft(r=n[e],t))||[])[0])&&((s=h.substr(0,h.indexOf(i))).length>0&&p(t).unusedInput.push(s),h=h.slice(h.indexOf(i)+i.length),c+=i.length),B[r]?(i?p(t).empty=!1:p(t).unusedTokens.push(r),Mt(r,i,t)):t._strict&&!i&&p(t).unusedTokens.push(r);p(t).charsLeftOver=d-c,h.length>0&&p(t).unusedInput.push(h),t._a[Yt]<=12&&!0===p(t).bigHour&&t._a[Yt]>0&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[Yt]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[Yt],t._meridiem),null!==(a=p(t).era)&&(t._a[St]=t._locale.erasConvertYear(a,t._a[St])),Je(t),Se(t)}else Ce(t);else Re(t)}function Oe(t){var e=t._i,i=t._f;return t._locale=t._locale||ke(t._l),null===e||void 0===i&&""===e?k({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),A(e)?new Y(Se(e)):(g(e)?t._d=e:h(i)?function(t){var e,i,n,r,s,a,o=!1,u=t._f.length;if(0===u)return p(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<u;r++)s=0,a=!1,e=D({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],He(e),M(e)&&(a=!0),s+=p(e).charsLeftOver,s+=10*p(e).unusedTokens.length,p(e).score=s,o?s<n&&(n=s,i=e):(null==n||s<n||a)&&(n=s,i=e,a&&(o=!0));y(t,i||e)}(t):i?He(t):function(t){var e=t._i;f(e)?t._d=new Date(u.now()):g(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=je.exec(t._i);null===e?(Re(t),!1===t._isValid&&(delete t._isValid,Ce(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:u.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):h(e)?(t._a=b(e.slice(0),(function(t){return parseInt(t,10)})),Je(t)):d(e)?function(t){if(!t._d){var e=Z(t._i);t._a=b([e.year,e.month,void 0===e.day?e.date:e.day,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Je(t)}}(t):m(e)?t._d=new Date(e):u.createFromInputFallback(t)}(t),M(t)||(t._d=null),t))}function Ee(t,e,i,n,r){var s,a={};return!0!==e&&!1!==e||(n=e,e=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(d(t)&&l(t)||h(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=i,a._i=t,a._f=e,a._strict=n,(s=new Y(Se(Oe(a))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Fe(t,e,i,n){return Ee(t,e,i,n,!1)}u.createFromInputFallback=j("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),u.ISO_8601=function(){},u.RFC_2822=function(){};var Be=j("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Fe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:k()})),Ge=j("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Fe.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:k()}));function Le(t,e){var i,n;if(1===e.length&&h(e[0])&&(e=e[0]),!e.length)return Fe();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var ze=["year","quarter","month","week","day","hour","minute","second","millisecond"];function _e(t){var e=Z(t),i=e.year||0,n=e.quarter||0,r=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,o=e.hour||0,u=e.minute||0,h=e.second||0,d=e.millisecond||0;this._isValid=function(t){var e,i,n=!1,r=ze.length;for(e in t)if(c(t,e)&&(-1===Ct.call(ze,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<r;++i)if(t[ze[i]]){if(n)return!1;parseFloat(t[ze[i]])!==bt(t[ze[i]])&&(n=!0)}return!0}(e),this._milliseconds=+d+1e3*h+6e4*u+1e3*o*60*60,this._days=+a+7*s,this._months=+r+3*n+12*i,this._data={},this._locale=ke(),this._bubble()}function Ie(t){return t instanceof _e}function Ze(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Pe(t,e){G(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+H(~~(t/60),2)+e+H(~~t%60,2)}))}Pe("Z",":"),Pe("ZZ",""),lt("Z",ut),lt("ZZ",ut),vt(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=Ue(ut,t)}));var Ve=/([\+\-]|\d\d)/gi;function Ue(t,e){var i,n,r=(e||"").match(t);return null===r?null:0===(n=60*(i=((r[r.length-1]||[])+"").match(Ve)||["-",0,0])[1]+bt(i[2]))?0:"+"===i[0]?n:-n}function $e(t,e){var i,n;return e._isUTC?(i=e.clone(),n=(A(t)||g(t)?t.valueOf():Fe(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),u.updateOffset(i,!1),i):Fe(t).local()}function qe(t){return-Math.round(t._d.getTimezoneOffset())}function Ke(){return!!this.isValid()&&this._isUTC&&0===this._offset}u.updateOffset=function(){};var Qe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Xe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ti(t,e){var i,n,r,s,a,o,u=t,h=null;return Ie(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:m(t)||!isNaN(+t)?(u={},e?u[e]=+t:u.milliseconds=+t):(h=Qe.exec(t))?(i="-"===h[1]?-1:1,u={y:0,d:bt(h[Dt])*i,h:bt(h[Yt])*i,m:bt(h[At])*i,s:bt(h[Nt])*i,ms:bt(Ze(1e3*h[jt]))*i}):(h=Xe.exec(t))?u={y:ei(h[2],i="-"===h[1]?-1:1),M:ei(h[3],i),w:ei(h[4],i),d:ei(h[5],i),h:ei(h[6],i),m:ei(h[7],i),s:ei(h[8],i)}:null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(s=Fe(u.from),a=Fe(u.to),r=s.isValid()&&a.isValid()?(a=$e(a,s),s.isBefore(a)?o=ii(s,a):((o=ii(a,s)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),n=new _e(u),Ie(t)&&c(t,"_locale")&&(n._locale=t._locale),Ie(t)&&c(t,"_isValid")&&(n._isValid=t._isValid),n}function ei(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function ii(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function ni(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(R(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),ri(this,ti(i,n),t),this}}function ri(t,e,i,n){var r=e._milliseconds,s=Ze(e._days),a=Ze(e._months);t.isValid()&&(n=null==n||n,a&&It(t,Ht(t,"Month")+a*i),s&&Ot(t,"Date",Ht(t,"Date")+s*i),r&&t._d.setTime(t._d.valueOf()+r*i),n&&u.updateOffset(t,s||a))}ti.fn=_e.prototype,ti.invalid=function(){return ti(NaN)};var si=ni(1,"add"),ai=ni(-1,"subtract");function oi(t){return"string"==typeof t||t instanceof String}function ui(t,e){if(t.date()<e.date())return-ui(e,t);var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(i+1,"months")-n)))||0}function hi(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ke(t))&&(this._locale=e),this)}u.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",u.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var di=j("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ci(){return this._locale}var li=1e3,fi=6e4,mi=36e5,gi=126227808e5;function bi(t,e){return(t%e+e)%e}function yi(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-gi:new Date(t,e,i).valueOf()}function vi(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-gi:Date.UTC(t,e,i)}function pi(t,e){return e.erasAbbrRegex(t)}function Mi(){var t,e,i,n,r,s=[],a=[],o=[],u=[],h=this.eras();for(t=0,e=h.length;t<e;++t)i=mt(h[t].name),n=mt(h[t].abbr),r=mt(h[t].narrow),a.push(i),s.push(n),o.push(r),u.push(i),u.push(n),u.push(r);this._erasRegex=new RegExp("^("+u.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function ki(t,e){G(0,[t,t.length],0,e)}function Si(t,e,i,n,r){var s;return null==t?Kt(this,n,r).year:(e>(s=Qt(t,n,r))&&(e=s),wi.call(this,t,e,i,n,r))}function wi(t,e,i,n,r){var s=qt(t,e,i,n,r),a=Ut(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}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"),lt("N",pi),lt("NN",pi),lt("NNN",pi),lt("NNNN",(function(t,e){return e.erasNameRegex(t)})),lt("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),vt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,i,n){var r=i._locale.erasParse(t,n,i._strict);r?p(i).era=r:p(i).invalidEra=t})),lt("y",st),lt("yy",st),lt("yyy",st),lt("yyyy",st),lt("yo",(function(t,e){return e._eraYearOrdinalRegex||st})),vt(["y","yy","yyy","yyyy"],St),vt(["yo"],(function(t,e,i){var n;i._locale._eraYearOrdinalRegex&&(n=t.match(i._locale._eraYearOrdinalRegex)),e[St]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(t,n):parseInt(t,10)})),G(0,["gg",2],0,(function(){return this.weekYear()%100})),G(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ki("gggg","weekYear"),ki("ggggg","weekYear"),ki("GGGG","isoWeekYear"),ki("GGGGG","isoWeekYear"),lt("G",at),lt("g",at),lt("GG",X,$),lt("gg",X,$),lt("GGGG",nt,K),lt("gggg",nt,K),lt("GGGGG",rt,Q),lt("ggggg",rt,Q),pt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=bt(t)})),pt(["gg","GG"],(function(t,e,i,n){e[n]=u.parseTwoDigitYear(t)})),G("Q",0,"Qo","quarter"),lt("Q",U),vt("Q",(function(t,e){e[wt]=3*(bt(t)-1)})),G("D",["DD",2],"Do","date"),lt("D",X,dt),lt("DD",X,$),lt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),vt(["D","DD"],Dt),vt("Do",(function(t,e){e[Dt]=bt(t.match(X)[0])}));var Di=Jt("Date",!0);G("DDD",["DDDD",3],"DDDo","dayOfYear"),lt("DDD",it),lt("DDDD",q),vt(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=bt(t)})),G("m",["mm",2],0,"minute"),lt("m",X,ct),lt("mm",X,$),vt(["m","mm"],At);var Yi=Jt("Minutes",!1);G("s",["ss",2],0,"second"),lt("s",X,ct),lt("ss",X,$),vt(["s","ss"],Nt);var Ai,Ni,ji=Jt("Seconds",!1);for(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 10*this.millisecond()})),G(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),G(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),G(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),G(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),G(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),lt("S",it,U),lt("SS",it,$),lt("SSS",it,q),Ai="SSSS";Ai.length<=9;Ai+="S")lt(Ai,st);function Ti(t,e){e[jt]=bt(1e3*("0."+t))}for(Ai="S";Ai.length<=9;Ai+="S")vt(Ai,Ti);Ni=Jt("Milliseconds",!1),G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");var xi=Y.prototype;function Ri(t){return t}xi.add=si,xi.calendar=function(t,e){var i;1===arguments.length&&(arguments[0]?A(i=arguments[0])||g(i)||oi(i)||m(i)||function(t){var e=h(t),i=!1;return e&&(i=0===t.filter((function(e){return!m(e)&&oi(t)})).length),e&&i}(i)||function(t){var e,i=d(t)&&!l(t),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=r.length;for(e=0;e<s;e+=1)n=n||c(t,r[e]);return i&&n}(i)||null==i?(t=arguments[0],e=void 0):function(t){var e,i=d(t)&&!l(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)n=n||c(t,r[e]);return i&&n}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Fe(),r=$e(n,this).startOf("day"),s=u.calendarFormat(this,r)||"sameElse",a=e&&(C(e[s])?e[s].call(this,n):e[s]);return this.format(a||this.localeData().calendar(s,this,Fe(n)))},xi.clone=function(){return new Y(this)},xi.diff=function(t,e,i){var n,r,s;if(!this.isValid())return NaN;if(!(n=$e(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=I(e)){case"year":s=ui(this,n)/12;break;case"month":s=ui(this,n);break;case"quarter":s=ui(this,n)/3;break;case"second":s=(this-n)/1e3;break;case"minute":s=(this-n)/6e4;break;case"hour":s=(this-n)/36e5;break;case"day":s=(this-n-r)/864e5;break;case"week":s=(this-n-r)/6048e5;break;default:s=this-n}return i?s:gt(s)},xi.endOf=function(t){var e,i;if(void 0===(t=I(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?vi:yi,t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=mi-bi(e+(this._isUTC?0:this.utcOffset()*fi),mi)-1;break;case"minute":e=this._d.valueOf(),e+=fi-bi(e,fi)-1;break;case"second":e=this._d.valueOf(),e+=li-bi(e,li)-1}return this._d.setTime(e),u.updateOffset(this,!0),this},xi.format=function(t){t||(t=this.isUtc()?u.defaultFormatUtc:u.defaultFormat);var e=L(this,t);return this.localeData().postformat(e)},xi.from=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Fe(t).isValid())?ti({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},xi.fromNow=function(t){return this.from(Fe(),t)},xi.to=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Fe(t).isValid())?ti({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},xi.toNow=function(t){return this.to(Fe(),t)},xi.get=function(t){return C(this[t=I(t)])?this[t]():this},xi.invalidAt=function(){return p(this).overflow},xi.isAfter=function(t,e){var i=A(t)?t:Fe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},xi.isBefore=function(t,e){var i=A(t)?t:Fe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},xi.isBetween=function(t,e,i,n){var r=A(t)?t:Fe(t),s=A(e)?e:Fe(e);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(s,i):!this.isAfter(s,i))},xi.isSame=function(t,e){var i,n=A(t)?t:Fe(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},xi.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},xi.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},xi.isValid=function(){return M(this)},xi.lang=di,xi.locale=hi,xi.localeData=ci,xi.max=Ge,xi.min=Be,xi.parsingFlags=function(){return y({},p(this))},xi.set=function(t,e){if("object"==typeof t){var i,n=function(t){var e,i=[];for(e in t)c(t,e)&&i.push({unit:e,priority:V[e]});return i.sort((function(t,e){return t.priority-e.priority})),i}(t=Z(t)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](t[n[i].unit])}else if(C(this[t=I(t)]))return this[t](e);return this},xi.startOf=function(t){var e,i;if(void 0===(t=I(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?vi:yi,t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=bi(e+(this._isUTC?0:this.utcOffset()*fi),mi);break;case"minute":e=this._d.valueOf(),e-=bi(e,fi);break;case"second":e=this._d.valueOf(),e-=bi(e,li)}return this._d.setTime(e),u.updateOffset(this,!0),this},xi.subtract=ai,xi.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},xi.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},xi.toDate=function(){return new Date(this.valueOf())},xi.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?L(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",L(i,"Z")):L(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},xi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,i="moment",n="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(xi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),xi.toJSON=function(){return this.isValid()?this.toISOString():null},xi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},xi.unix=function(){return Math.floor(this.valueOf()/1e3)},xi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},xi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},xi.eraName=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].name;if(n[t].until<=i&&i<=n[t].since)return n[t].name}return""},xi.eraNarrow=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].narrow;if(n[t].until<=i&&i<=n[t].since)return n[t].narrow}return""},xi.eraAbbr=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].abbr;if(n[t].until<=i&&i<=n[t].since)return n[t].abbr}return""},xi.eraYear=function(){var t,e,i,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(i=r[t].since<=r[t].until?1:-1,n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return(this.year()-u(r[t].since).year())*i+r[t].offset;return this.year()},xi.year=Wt,xi.isLeapYear=function(){return kt(this.year())},xi.weekYear=function(t){return Si.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},xi.isoWeekYear=function(t){return Si.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},xi.quarter=xi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},xi.month=Zt,xi.daysInMonth=function(){return Et(this.year(),this.month())},xi.week=xi.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},xi.isoWeek=xi.isoWeeks=function(t){var e=Kt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},xi.weeksInYear=function(){var t=this.localeData()._week;return Qt(this.year(),t.dow,t.doy)},xi.weeksInWeekYear=function(){var t=this.localeData()._week;return Qt(this.weekYear(),t.dow,t.doy)},xi.isoWeeksInYear=function(){return Qt(this.year(),1,4)},xi.isoWeeksInISOWeekYear=function(){return Qt(this.isoWeekYear(),1,4)},xi.date=Di,xi.day=xi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=Ht(this,"Day");return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},xi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},xi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},xi.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},xi.hour=xi.hours=le,xi.minute=xi.minutes=Yi,xi.second=xi.seconds=ji,xi.millisecond=xi.milliseconds=Ni,xi.utcOffset=function(t,e,i){var n,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ue(ut,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=qe(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==t&&(!e||this._changeInProgress?ri(this,ti(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,u.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:qe(this)},xi.utc=function(t){return this.utcOffset(0,t)},xi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(qe(this),"m")),this},xi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ue(ot,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},xi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Fe(t).utcOffset():0,(this.utcOffset()-t)%60==0)},xi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},xi.isLocal=function(){return!!this.isValid()&&!this._isUTC},xi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},xi.isUtc=Ke,xi.isUTC=Ke,xi.zoneAbbr=function(){return this._isUTC?"UTC":""},xi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},xi.dates=j("dates accessor is deprecated. Use date instead.",Di),xi.months=j("months accessor is deprecated. Use month instead",Zt),xi.years=j("years accessor is deprecated. Use year instead",Wt),xi.zone=j("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),xi.isDSTShifted=j("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!f(this._isDSTShifted))return this._isDSTShifted;var t,e={};return D(e,this),(e=Oe(e))._a?(t=e._isUTC?v(e._a):Fe(e._a),this._isDSTShifted=this.isValid()&&function(t,e){var i,n=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(i=0;i<n;i++)bt(t[i])!==bt(e[i])&&s++;return s+r}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Ci=J.prototype;function Wi(t,e,i,n){var r=ke(),s=v().set(n,e);return r[i](s,t)}function Ji(t,e,i){if(m(t)&&(e=t,t=void 0),t=t||"",null!=e)return Wi(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Wi(t,n,i,"month");return r}function Hi(t,e,i,n){"boolean"==typeof t?(m(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,m(e)&&(i=e,e=void 0),e=e||"");var r,s=ke(),a=t?s._week.dow:0,o=[];if(null!=i)return Wi(e,(i+a)%7,n,"day");for(r=0;r<7;r++)o[r]=Wi(e,(r+a)%7,n,"day");return o}Ci.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return C(n)?n.call(e,i):n},Ci.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(O).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Ci.invalidDate=function(){return this._invalidDate},Ci.ordinal=function(t){return this._ordinal.replace("%d",t)},Ci.preparse=Ri,Ci.postformat=Ri,Ci.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return C(r)?r(t,e,i,n):r.replace(/%d/i,t)},Ci.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return C(i)?i(e):i.replace(/%s/i,e)},Ci.set=function(t){var e,i;for(i in t)c(t,i)&&(C(e=t[i])?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ci.eras=function(){var t,e,i,n=this._eras||ke("en")._eras;for(t=0,e=n.length;t<e;++t)switch("string"==typeof n[t].since&&(i=u(n[t].since).startOf("day"),n[t].since=i.valueOf()),typeof n[t].until){case"undefined":n[t].until=1/0;break;case"string":i=u(n[t].until).startOf("day").valueOf(),n[t].until=i.valueOf()}return n},Ci.erasParse=function(t,e,i){var n,r,s,a,o,u=this.eras();for(t=t.toUpperCase(),n=0,r=u.length;n<r;++n)if(s=u[n].name.toUpperCase(),a=u[n].abbr.toUpperCase(),o=u[n].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(a===t)return u[n];break;case"NNNN":if(s===t)return u[n];break;case"NNNNN":if(o===t)return u[n]}else if([s,a,o].indexOf(t)>=0)return u[n]},Ci.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?u(t.since).year():u(t.since).year()+(e-t.offset)*i},Ci.erasAbbrRegex=function(t){return c(this,"_erasAbbrRegex")||Mi.call(this),t?this._erasAbbrRegex:this._erasRegex},Ci.erasNameRegex=function(t){return c(this,"_erasNameRegex")||Mi.call(this),t?this._erasNameRegex:this._erasRegex},Ci.erasNarrowRegex=function(t){return c(this,"_erasNarrowRegex")||Mi.call(this),t?this._erasNarrowRegex:this._erasRegex},Ci.months=function(t,e){return t?h(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Gt).test(e)?"format":"standalone"][t.month()]:h(this._months)?this._months:this._months.standalone},Ci.monthsShort=function(t,e){return t?h(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Gt.test(e)?"format":"standalone"][t.month()]:h(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ci.monthsParse=function(t,e,i){var n,r,s;if(this._monthsParseExact)return _t.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=v([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},Ci.monthsRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Pt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=zt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Ci.monthsShortRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Pt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Lt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Ci.week=function(t){return Kt(t,this._week.dow,this._week.doy).week},Ci.firstDayOfYear=function(){return this._week.doy},Ci.firstDayOfWeek=function(){return this._week.dow},Ci.weekdays=function(t,e){var i=h(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Xt(i,this._week.dow):t?i[t.day()]:i},Ci.weekdaysMin=function(t){return!0===t?Xt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Ci.weekdaysShort=function(t){return!0===t?Xt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Ci.weekdaysParse=function(t,e,i){var n,r,s;if(this._weekdaysParseExact)return ae.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=v([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},Ci.weekdaysRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||oe.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=ne),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Ci.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||oe.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=re),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ci.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||oe.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=se),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ci.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Ci.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},pe("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===bt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),u.lang=j("moment.lang is deprecated. Use moment.locale instead.",pe),u.langData=j("moment.langData is deprecated. Use moment.localeData instead.",ke);var Oi=Math.abs;function Ei(t,e,i,n){var r=ti(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function Fi(t){return t<0?Math.floor(t):Math.ceil(t)}function Bi(t){return 4800*t/146097}function Gi(t){return 146097*t/4800}function Li(t){return function(){return this.as(t)}}var zi=Li("ms"),_i=Li("s"),Ii=Li("m"),Zi=Li("h"),Pi=Li("d"),Vi=Li("w"),Ui=Li("M"),$i=Li("Q"),qi=Li("y"),Ki=zi;function Qi(t){return function(){return this.isValid()?this._data[t]:NaN}}var Xi=Qi("milliseconds"),tn=Qi("seconds"),en=Qi("minutes"),nn=Qi("hours"),rn=Qi("days"),sn=Qi("months"),an=Qi("years"),on=Math.round,un={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function hn(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}var dn=Math.abs;function cn(t){return(t>0)-(t<0)||+t}function ln(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,r,s,a,o,u=dn(this._milliseconds)/1e3,h=dn(this._days),d=dn(this._months),c=this.asSeconds();return c?(t=gt(u/60),e=gt(t/60),u%=60,t%=60,i=gt(d/12),d%=12,n=u?u.toFixed(3).replace(/\.?0+$/,""):"",r=c<0?"-":"",s=cn(this._months)!==cn(c)?"-":"",a=cn(this._days)!==cn(c)?"-":"",o=cn(this._milliseconds)!==cn(c)?"-":"",r+"P"+(i?s+i+"Y":"")+(d?s+d+"M":"")+(h?a+h+"D":"")+(e||t||u?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(u?o+n+"S":"")):"P0D"}var fn=_e.prototype;fn.isValid=function(){return this._isValid},fn.abs=function(){var t=this._data;return this._milliseconds=Oi(this._milliseconds),this._days=Oi(this._days),this._months=Oi(this._months),t.milliseconds=Oi(t.milliseconds),t.seconds=Oi(t.seconds),t.minutes=Oi(t.minutes),t.hours=Oi(t.hours),t.months=Oi(t.months),t.years=Oi(t.years),this},fn.add=function(t,e){return Ei(this,t,e,1)},fn.subtract=function(t,e){return Ei(this,t,e,-1)},fn.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=I(t))||"quarter"===t||"year"===t)switch(i=this._months+Bi(e=this._days+n/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(Gi(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},fn.asMilliseconds=zi,fn.asSeconds=_i,fn.asMinutes=Ii,fn.asHours=Zi,fn.asDays=Pi,fn.asWeeks=Vi,fn.asMonths=Ui,fn.asQuarters=$i,fn.asYears=qi,fn.valueOf=Ki,fn._bubble=function(){var t,e,i,n,r,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return s>=0&&a>=0&&o>=0||s<=0&&a<=0&&o<=0||(s+=864e5*Fi(Gi(o)+a),a=0,o=0),u.milliseconds=s%1e3,t=gt(s/1e3),u.seconds=t%60,e=gt(t/60),u.minutes=e%60,i=gt(e/60),u.hours=i%24,a+=gt(i/24),o+=r=gt(Bi(a)),a-=Fi(Gi(r)),n=gt(o/12),o%=12,u.days=a,u.months=o,u.years=n,this},fn.clone=function(){return ti(this)},fn.get=function(t){return t=I(t),this.isValid()?this[t+"s"]():NaN},fn.milliseconds=Xi,fn.seconds=tn,fn.minutes=en,fn.hours=nn,fn.days=rn,fn.weeks=function(){return gt(this.days()/7)},fn.months=sn,fn.years=an,fn.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,r=!1,s=un;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(s=Object.assign({},un,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),n=function(t,e,i,n){var r=ti(t).abs(),s=on(r.as("s")),a=on(r.as("m")),o=on(r.as("h")),u=on(r.as("d")),h=on(r.as("M")),d=on(r.as("w")),c=on(r.as("y")),l=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||a<=1&&["m"]||a<i.m&&["mm",a]||o<=1&&["h"]||o<i.h&&["hh",o]||u<=1&&["d"]||u<i.d&&["dd",u];return null!=i.w&&(l=l||d<=1&&["w"]||d<i.w&&["ww",d]),(l=l||h<=1&&["M"]||h<i.M&&["MM",h]||c<=1&&["y"]||["yy",c])[2]=e,l[3]=+t>0,l[4]=n,hn.apply(null,l)}(this,!r,s,i=this.localeData()),r&&(n=i.pastFuture(+this,n)),i.postformat(n)},fn.toISOString=ln,fn.toString=ln,fn.toJSON=ln,fn.locale=hi,fn.localeData=ci,fn.toIsoString=j("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ln),fn.lang=di,G("X",0,0,"unix"),G("x",0,0,"valueOf"),lt("x",at),lt("X",/[+-]?\d+(\.\d{1,3})?/),vt("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t))})),vt("x",(function(t,e,i){i._d=new Date(bt(t))})),
8
- //! moment.js
9
- u.version="2.30.1",a=Fe,u.fn=xi,u.min=function(){return Le("isBefore",[].slice.call(arguments,0))},u.max=function(){return Le("isAfter",[].slice.call(arguments,0))},u.now=function(){return Date.now?Date.now():+new Date},u.utc=v,u.unix=function(t){return Fe(1e3*t)},u.months=function(t,e){return Ji(t,e,"months")},u.isDate=g,u.locale=pe,u.invalid=k,u.duration=ti,u.isMoment=A,u.weekdays=function(t,e,i){return Hi(t,e,i,"weekdays")},u.parseZone=function(){return Fe.apply(null,arguments).parseZone()},u.localeData=ke,u.isDuration=Ie,u.monthsShort=function(t,e){return Ji(t,e,"monthsShort")},u.weekdaysMin=function(t,e,i){return Hi(t,e,i,"weekdaysMin")},u.defineLocale=Me,u.updateLocale=function(t,e){if(null!=e){var i,n,r=fe;null!=me[t]&&null!=me[t].parentLocale?me[t].set(W(me[t]._config,e)):(null!=(n=ve(t))&&(r=n._config),e=W(r,e),null==n&&(e.abbr=t),(i=new J(e)).parentLocale=me[t],me[t]=i),pe(t)}else null!=me[t]&&(null!=me[t].parentLocale?(me[t]=me[t].parentLocale,t===pe()&&pe(t)):null!=me[t]&&delete me[t]);return me[t]},u.locales=function(){return T(me)},u.weekdaysShort=function(t,e,i){return Hi(t,e,i,"weekdaysShort")},u.normalizeUnits=I,u.relativeTimeRounding=function(t){return void 0===t?on:"function"==typeof t&&(on=t,!0)},u.relativeTimeThreshold=function(t,e){return void 0!==un[t]&&(void 0===e?un[t]:(un[t]=e,"s"===t&&(un.ss=e-1),!0))},u.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},u.prototype=xi,u.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 mn=class{constructor(e){t(this,e),this.useEvent=void 0,this.endpoint=void 0,this.state=void 0,this.enrolled=void 0,this.startTime=void 0,this.endTime=void 0,this.thumbnail=void 0,this.language=void 0,this.showCalendar=void 0,this.shortStart=void 0,this.shortstartformat="DD MMM YYYY",this.showDate=!0,this.showRunningDate=!1,this.showCheck=!1,this.cardMode=!1,this.nameOrTitle=void 0,this.description=void 0,this.tournamentId=void 0,this.session=void 0,this.loginEvent=void 0,this.loginUrl=void 0,this.registerEvent=void 0,this.registerUrl=void 0,this.currency=void 0,this.bonusCode=void 0,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.translationData=void 0,this.stateText=void 0,this.limitStylingAppends=!1,this.startdate=void 0,this.tournamentLeftDays=void 0,this.showRemain=void 0,this.durationInterval=void 0}watchLanguage(t,e){t&&t!=e&&this.getDuration()}infoCompletedHandler(t){t.detail&&this.useEvent&&(this.state=t.detail.state,this.stateText=this.getStateText(this.state),this.enrolled=t.detail.playerEnrolled,this.startTime=t.detail.startTime,this.thumbnail=t.detail.thumbnail,this.tournamentId=t.detail.id,this.startTime&&this.formatDate())}userEnrolledHandler(t){t.detail&&this.tournamentId===t.detail.tournamentId&&(this.enrolled=t.detail.userenrolled)}getDateTimeDiff(t,e){return(new Date(e).getTime()-new Date(t).getTime())/6e4}getTextByDiff(t){if(t<1440){const e=t%60;return[t/60,e,60*(e-Math.floor(e))].map((t=>(t=>{const e=Math.floor(t);return e<10?`0${e}`:`${e}`})(t))).join(":")}return(t=>" - "+t+" "+s("days",this.language))(Math.ceil(t/1440))}getDuration(){const t=new Date;this.tournamentLeftDays=this.getDateTimeDiff(t,this.endTime),this.showRemain=this.getTextByDiff(this.tournamentLeftDays)}getStateText(t){let e="";switch(t){case"Upcoming":case"Unstarted":e=s("scheduled",this.language);break;case"Running":e=s("ongoing",this.language);break;default:e=s("finished",this.language)}return e}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}formatDate(){const t={month:"long"};let e=new Date(this.startTime);const i=()=>s("Running"===this.state||"Closing"==this.state||"Closed"==this.state?"startedAt":"startingAt",this.language);if(this.shortStart){let t=u(e).format(this.shortstartformat);this.startdate="Running"===this.state||"Closing"==this.state||"Closed"==this.state?s("startedAtWithTime",this.language)+t:s("startingAtWithTime",this.language)+t}else{let n=new Intl.DateTimeFormat("en",t).format(e),r=e.getDate(),a=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});this.startdate=`${r} `+s(`${n}`,this.language)+", "+i()+` ${a}`}}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])r[e][i]=t[e][i]})),this.state&&(this.stateText=this.getStateText(this.state))),!this.useEvent&&this.startTime&&this.formatDate(),this.state&&(this.stateText=this.getStateText(this.state)),this.startTime&&this.endTime&&(this.getDuration(),this.getTextByDiff(this.tournamentLeftDays)),this.tournamentLeftDays<1440&&this.tournamentLeftDays>0?this.durationInterval=window.setInterval((()=>{this.startTime&&this.endTime&&this.getDuration()}),1e3):clearInterval(this.durationInterval)}termsClick(t){window.postMessage({type:"TournamentTermsConditions",tournamentId:t},window.location.href)}render(){return e("div",{key:"30d503c748343afce01f545342ab0beb3d3d5e3f",class:"TournamentBannerWrap"},this.thumbnail&&e("div",{key:"daaef63e759ffbaf14eabd2b54d937b957fcab6a",class:`TournamentBanner ${this.state}`,part:`TournamentBanner ${this.state}`},e("img",{key:"9ef1116676b4bbbf7a592ca4dbe7a75f60b09f32",src:this.thumbnail,alt:"",class:`TournamentBannerBg ${this.cardMode&&this.state?this.state:""}`}),!this.cardMode&&e("div",{key:"9fc34aabed34722d2e35dd40cb768bf1216e2a6f",class:"TournamentBannerInfo",part:"TournamentBannerInfo"},e("div",{key:"a100bd48e54e6e58deb629e3737be4d69665c43c",class:"BannerInfo",part:"BannerInfo"},e("span",{key:"fbd99abf8e5b9bf81a5df2840f2d3784bbf62fa5",class:`Tag State ${this.state}`},this.stateText)),e("div",{key:"00b195d5a9e6fa9ee92d94d7273853acb3da39f1",class:"BannerInfo",part:"BannerInfo"},this.showDate&&e("span",{key:"0522a16f1ff07e3e42078eab83f58b4a0e9a6fbf",class:"Tag Date"},this.showCalendar&&e("svg",{key:"58cefa516aadac8e1ea97c4c7550992439d86e1a",class:"CalendarIcon",width:"9",height:"11",viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"a5605e1a28f2e23f7c701d94d648071e29438669","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z",fill:"#1E1616"})),this.startdate)),e("div",{key:"bfa79f4e8ba8db83286d4b166420535837992f29",class:"BannerInfo",part:"BannerInfo"},this.enrolled&&e("span",{key:"d42223a4dc8a71ecdde3ead177850101408c28e3",class:"Tag Enroll"},this.showCheck&&e("svg",{key:"a5ffe24ebf31216020442d4f0b27e6cf71675902",class:"EnrollCheck",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e("path",{key:"c2db6f66d8afd614f26c0a656daeb51631833ba9",d:"M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z",fill:"white"})),s("enrolled",this.language)))),this.cardMode&&e("div",{key:"d66d8e41945df8fa190c635fc17448c2095a8338",class:"TournamentBannerThumb",part:"TournamentBannerThumb"},e("div",{key:"c18a987311a7e806b439dcab4bf8a4d96bca358a",class:"ThumbTitle",part:"ThumbTitle"},this.description),e("div",{key:"a7c810c1ecd87e46ef8f8972aade6db45fa902a2",class:"ThumbName",part:"ThumbName"},this.nameOrTitle),e("div",{key:"0e4ea565959a0e61dcdd1a94889f822f86c5da56",class:"ThumbState"},this.session&&this.enrolled?e("span",{class:"Tag Joined"},e("svg",{class:"EnrollCheck",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e("path",{d:"M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z",fill:"white"})),s("joined",this.language)):this.session&&"Closed"!=this.state&&e("span",{class:"Tag Join"},e("svg",{class:"JoinPlus",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",viewBox:"0 0 12 13",fill:"none"},e("path",{d:"M9.5 6.8335H6.5V9.8335H5.5V6.8335H2.5V5.8335H5.5V2.8335H6.5V5.8335H9.5V6.8335Z",fill:"white"})),s("join",this.language)),"Running"==this.state&&e("span",{key:"659625f6d6d49b900f48511eedfd734717e52ad6",class:`Tag State ${this.state}`},this.stateText,this.showRunningDate&&e("span",{key:"505b1743237cc5f867d3085dd92d0b4b38cc83d7",class:"TagRemain"},this.showRemain," ",s("left",this.language))),("Unstarted"==this.state||"Upcoming"==this.state||"Closed"==this.state)&&e("span",{key:"10eacb51b318ecca5f04d8fc2c5e4f3c53e2636c",class:`Tag Date ${this.state}`},this.showCalendar&&e("svg",{key:"a0551fe193454ad15fe279b8f5c46be6a3067c14",class:"CalendarIcon",width:"9",height:"11",viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"2931bcda7e5f9e6baaa50f2c8e8caa38783bed2d","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z",fill:"#1E1616"})),this.startdate)),e("div",{key:"708b32bba1c7f042f62f8fe9f4229efd9094d6c8",class:"ThumbButtons"},e("casino-tournament-buttons",{key:"bc085c31d517644af1eb338912aa10e1c2a6a46e",enrolled:this.enrolled,session:this.session,endpoint:this.endpoint,language:this.language,"tournament-id":this.tournamentId,"login-event":this.loginEvent,"login-url":this.loginUrl,"register-event":this.registerEvent,"register-url":this.registerUrl,currency:this.currency,"bonus-code":this.bonusCode,"show-read-more":this.showReadMore,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData})),e("div",{key:"023eb9bacda76a8894ae9921863644dc323695d8",class:"ThumbTC"},e("span",{key:"f690d2a31ba88ffdff1892eebe276f8ca33cf7f5",onClick:this.termsClick.bind(this,this.tournamentId)},s("terms",this.language))))))}get host(){return i(this)}static get watchers(){return{language:["watchLanguage"]}}};mn.style=":host{display:block}.TournamentBannerWrap{height:100%}.TournamentBanner{position:relative;width:100%;height:100%;overflow:hidden}.TournamentBannerBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.TournamentBannerBg.Closed{filter:grayscale(1)}.TournamentBannerInfo{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;display:flex;justify-content:space-between}.BannerInfo{margin:10px}.Tag{box-shadow:0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);border-radius:8px;padding:6px;font-size:10px;display:flex;align-items:center;height:13px}.Tag.Closed{filter:grayscale(1)}.TagRemain{text-indent:5px}.Date{gap:4px;background:#FF7500;color:#1A2C38}.State{background:#D0046C}.Enroll{color:#fff;background:#24834B}.EnrollCheck{margin-right:4px}.Join{background:#6C757D}.Running{background:#1A2C38}.CalendarIcon path{fill:#1A2C38}.TournamentBannerThumb{position:absolute;top:0;left:0;width:100%;height:100%;padding:12px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;box-sizing:border-box}.ThumbTitle{font-size:14px;height:18px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ThumbState{display:flex;gap:4px}.ThumbName{font-size:22px}.ThumbTC{font-size:8px;color:#fff;cursor:pointer}.ThumbButtons{display:flex;gap:4px}";const gn={en:{joined:"Joined",join:"Join",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 ",startedAtWithTime:"Started ",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Log in",register:"Register",details:"Details",joinerror:"An error occurred while registering in the tournament, please try again."},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月",login:"登錄",register:"登記",details:"細節",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{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",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Connexion",register:"Enregistre",details:"Détails",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",startingAtWithTime:"Începând de",startedAtWithTime:"A inceput:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie",login:"Autentificare",register:"Înregistrare",details:"Detalii",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",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",login:"Giriş",register:"Kayıt Ol",details:"Detaylar",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου",login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre",login:"Iniciar sesión",register:"Regístrate",details:"Detalles",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},pt:{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",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Entrar",register:"Registro",details:"Detalhes",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"},hu:{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",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},hr:{joined:"Pridružen",enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",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",login:"Prijaviti se",register:"Registracija",details:"Detalji",join:"join",joinerror:"Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"}},bn=(t,e)=>{var i,n;return(null===(i=gn[e])||void 0===i?void 0:i[t])||(null===(n=gn.en)||void 0===n?void 0:n[t])},yn=class{constructor(e){t(this,e),this.userEnrolled=n(this,"TournamentUserEnrolled",7),this.language=void 0,this.tournamentId=void 0,this.session=void 0,this.loginEvent=void 0,this.loginUrl=void 0,this.registerEvent=void 0,this.registerUrl=void 0,this.endpoint=void 0,this.currency=void 0,this.bonusCode=void 0,this.enrolled=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.translationData=void 0,this.limitStylingAppends=!1,this.joinButtonLoading=!1,this.errorJoin=!1,this.errorJoinConcurrently=!1}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])gn[e][i]=t[e][i]})))}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}loginAction(){this.loginEvent&&(window.postMessage({type:this.loginEvent,transition:"Login"},window.location.href),"function"==typeof gtag&&gtag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),this.loginUrl&&(location.href=this.loginUrl)}registerAction(){this.registerEvent&&(window.postMessage({type:this.registerEvent,transition:"Register"},window.location.href),"function"==typeof gtag&&gtag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),this.registerUrl&&(location.href=this.registerUrl)}async joinAction(t,e){var i;this.errorJoin=!1,this.errorJoinConcurrently=!1,window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),this.joinButtonLoading=!0;let n=new URL(`${this.endpoint}/v1/bonus/claim`),r=new Headers,s={};n.searchParams.append("language",this.language),n.searchParams.append("platform",(()=>{let t=window.navigator.userAgent;return t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})()),r.append("Content-Type","application/json"),r.append("X-SessionID",this.session),e&&(s={language:this.language,bonusCode:e,currency:this.currency,type:"tournament"});let a={method:"PUT",headers:r,body:JSON.stringify(s)};const o=()=>{this.joinButtonLoading=!1,this.enrolled=!0,window.postMessage({type:"TournamentUserEnrolled",userenrolled:this.enrolled,tournamentId:t},window.location.href),this.userEnrolled.emit({userenrolled:this.enrolled,tournamentId:t})},u=()=>{this.joinButtonLoading=!1,this.errorJoin=!0},h=await(async()=>{let t;try{t=await fetch(`${this.endpoint}/v1/bonus/claim?${n.searchParams.toString()}`,a),t=await t.json()}catch(t){u()}return t})();if(h)if(1==h.success)o();else if(h.errorMessage.match("VersionMismatchException")){let t;t=await fetch(`${this.endpoint}/v1/tournaments/${this.tournamentId}`,{headers:{"X-SessionID":this.session}}),t=await t.json(),(null===(i=null==t?void 0:t.item)||void 0===i?void 0:i.playerEnrolled)?o():(u(),this.errorJoinConcurrently=!0,this.errorJoin=!1)}else u()}detailAction(t){window.postMessage({type:"TournamentDetailsClicked",tournamentId:t,showLeaderboard:!0},window.location.href)}moreAction(t){window.postMessage({type:"TournamentReadMoreClicked",tournamentId:t},window.location.href)}render(){return e("div",{key:"d67f8cedc9bd513a74b4d9dc798c4c456d7b1d9f",class:"TournamentButtons"},!this.session&&e("div",{key:"7e79834abdd20bf694b096fad0734cc74ccb1f8e",class:"ButtonGroup"},e("button",{key:"273e73693f197ff25d116c3c2e7098d3e80138c7",class:"LoginButton Button",part:"LoginButton",onClick:()=>this.loginAction()},bn("login",this.language)),e("button",{key:"72835739c177ce6e872a06183074d2266b3c3d5d",class:"RegisterButton Button",part:"RegisterButton",onClick:()=>this.registerAction()},bn("register",this.language))),this.session&&e("div",{key:"746e7fb88ddd2bef5f59212d9f513b62943f80ae"},!this.enrolled&&e("div",{key:"7a33b63adc8255c267afdba2ffe700a0d2033e57",class:"ButtonGroup"},e("button",{key:"95f71a6f41cd65e4dd9dfca0896899f7b8c32dd5",class:"Button",onClick:()=>this.joinAction(this.tournamentId,this.bonusCode)},bn("join",this.language)),this.showReadMore&&e("button",{key:"ac961bcbd5dc2a4f1e9267148ecc49a55b75515e",class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},bn("readmore",this.language))),this.enrolled&&e("div",{key:"f6a9170663e0aae26da9500fc5efc888bb2dc2ab",class:"ButtonGroup"},e("button",{key:"a94489a7bf6b178199f2d78dfdc41cca77859c96",class:"Button",onClick:()=>this.detailAction(this.tournamentId)},bn("details",this.language)),this.showReadMore&&e("button",{key:"f23cefc77e04215e5beb6a39c2643348dce5e576",class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},bn("readmore",this.language)))),(this.errorJoin||this.errorJoinConcurrently)&&e("span",{key:"7accf63f478e52efc879da3775b07286fbc9801b",class:"ErrorText",part:"ErrorText"},bn("joinerror",this.language)))}get host(){return i(this)}};yn.style=':host{display:block}.ButtonGroup{display:flex;gap:4px}.Button{padding:6px 8px;border-radius:2px;border:1px solid #fff;color:#fff;background:none;position:relative;cursor:pointer}.Button.NoBorder{border:0;padding:7px 8px}.Button::after{content:"";display:block;position:absolute;border-radius:2px;left:0;top:0;width:100%;height:100%;opacity:0;transition:all 0.5s;box-shadow:0 0 10px 10px white}.Button:active::after{box-shadow:0 0 0 0 white;position:absolute;border-radius:2px;left:0;top:0;opacity:1;transition:0s}.Button:active{top:1px}';export{mn as casino_tournament_banner,yn as casino_tournament_buttons}