@everymatrix/bonus-elevate-powerups-lobby 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/bonus-elevate-powerups-lobby/app-globals-0f993ce5.js +1 -0
  2. package/dist/bonus-elevate-powerups-lobby/bonus-elevate-powerups-lobby-09c95672.js +1 -0
  3. package/dist/bonus-elevate-powerups-lobby/bonus-elevate-powerups-lobby.esm.js +1 -0
  4. package/dist/bonus-elevate-powerups-lobby/bonus-elevate-powerups_7.entry.js +9 -0
  5. package/dist/bonus-elevate-powerups-lobby/index-64ff3a3a.js +2 -0
  6. package/dist/bonus-elevate-powerups-lobby/index.esm.js +1 -0
  7. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  8. package/dist/cjs/bonus-elevate-powerups-lobby-a19b84c9.js +256 -0
  9. package/dist/cjs/bonus-elevate-powerups-lobby.cjs.js +25 -0
  10. package/dist/cjs/bonus-elevate-powerups_7.cjs.entry.js +6657 -0
  11. package/dist/cjs/index-d5c2977d.js +1316 -0
  12. package/dist/cjs/index.cjs.js +10 -0
  13. package/dist/cjs/loader.cjs.js +15 -0
  14. package/dist/collection/collection-manifest.json +44 -0
  15. package/dist/collection/components/bonus-elevate-powerups-lobby/bonus-elevate-powerups-lobby.css +48 -0
  16. package/dist/collection/components/bonus-elevate-powerups-lobby/bonus-elevate-powerups-lobby.js +242 -0
  17. package/dist/collection/components/bonus-elevate-powerups-lobby/index.js +1 -0
  18. package/dist/collection/index.js +1 -0
  19. package/dist/collection/utils/locale.utils.js +35 -0
  20. package/dist/collection/utils/utils.js +0 -0
  21. package/dist/esm/app-globals-0f993ce5.js +3 -0
  22. package/dist/esm/bonus-elevate-powerups-lobby-09c95672.js +251 -0
  23. package/dist/esm/bonus-elevate-powerups-lobby.js +20 -0
  24. package/dist/esm/bonus-elevate-powerups_7.entry.js +6648 -0
  25. package/dist/esm/index-64ff3a3a.js +1287 -0
  26. package/dist/esm/index.js +2 -0
  27. package/dist/esm/loader.js +11 -0
  28. package/dist/index.cjs.js +1 -0
  29. package/dist/index.js +1 -0
  30. package/dist/stencil.config.dev.js +21 -0
  31. package/dist/stencil.config.js +24 -0
  32. package/dist/storybook/main.js +43 -0
  33. package/dist/storybook/preview.js +9 -0
  34. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-elevate-powerups-lobby/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  35. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-elevate-powerups-lobby/.stencil/libs/common/src/types/casino/powerups.d.ts +57 -0
  36. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-elevate-powerups-lobby/.stencil/packages/stencil/bonus-elevate-powerups-lobby/stencil.config.d.ts +2 -0
  37. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-elevate-powerups-lobby/.stencil/packages/stencil/bonus-elevate-powerups-lobby/stencil.config.dev.d.ts +2 -0
  38. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-elevate-powerups-lobby/.stencil/packages/stencil/bonus-elevate-powerups-lobby/storybook/main.d.ts +3 -0
  39. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-elevate-powerups-lobby/.stencil/packages/stencil/bonus-elevate-powerups-lobby/storybook/preview.d.ts +70 -0
  40. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-elevate-powerups-lobby/.stencil/tools/plugins/index.d.ts +4 -0
  41. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-elevate-powerups-lobby/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
  42. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-elevate-powerups-lobby/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  43. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-elevate-powerups-lobby/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  44. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-elevate-powerups-lobby/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  45. package/dist/types/components/bonus-elevate-powerups-lobby/bonus-elevate-powerups-lobby.d.ts +25 -0
  46. package/dist/types/components/bonus-elevate-powerups-lobby/index.d.ts +1 -0
  47. package/dist/types/components.d.ts +53 -0
  48. package/dist/types/index.d.ts +1 -0
  49. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  50. package/dist/types/utils/locale.utils.d.ts +2 -0
  51. package/dist/types/utils/utils.d.ts +0 -0
  52. package/loader/cdn.js +1 -0
  53. package/loader/index.cjs.js +1 -0
  54. package/loader/index.d.ts +24 -0
  55. package/loader/index.es2017.js +1 -0
  56. package/loader/index.js +2 -0
  57. package/loader/package.json +11 -0
  58. package/package.json +27 -0
@@ -0,0 +1 @@
1
+ const o=()=>{};export{o as g}
@@ -0,0 +1 @@
1
+ import{r as t,h as e}from"./index-64ff3a3a.js";const i="__WIDGET_GLOBAL_STYLE_CACHE__";function s(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function o(t,e){if(!t||!e)return;const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function n(t,e,s,o=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!o)return s=function(t,e){const i=document.createElement("style");return window.emMessageBus.subscribe(e,(e=>{t&&(i.innerHTML=e,t.appendChild(i))}))}(t,e),s;window[i]||(window[i]={}),s=function(t,e){return window.emMessageBus.subscribe(e,(s=>{if(!t)return;const o=t.getRootNode(),n=window[i];let a=n[e]&&n[e].sheet;a?n[e].refCount=n[e].refCount+1:(a=new CSSStyleSheet,a.replaceSync(s),n[e]={sheet:a,refCount:1});const r=o.adoptedStyleSheets||[];r.includes(a)||(o.adoptedStyleSheets=[...r,a])}))}(t,e);const n=s.unsubscribe.bind(s);return s.unsubscribe=()=>{if(window[i][e]){const t=window[i][e];t.refCount>1?t.refCount=t.refCount-1:delete window[i][e]}n()},s}const a={en:{history:"History",available:"Available"}},r=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{a[e]||(a[e]={});for(let i in t[e])a[e][i]=t[e][i]})),e(!0)}))})),l=(t,e,i)=>{let s=a[void 0!==e&&e in a?e:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");s=s.replace(i,e)}return s};var c,h,d;!function(t){t[t.COINS=1]="COINS",t[t.XP=2]="XP"}(c||(c={})),function(t){t[t.TIME_PERIOD=1]="TIME_PERIOD",t[t.NUMBER_OF_ROUNDS=2]="NUMBER_OF_ROUNDS"}(h||(h={})),function(t){t[t.ACTIVE=0]="ACTIVE",t[t.ACTIVATED=1]="ACTIVATED",t[t.EXPIRED=2]="EXPIRED",t[t.CONSUMED=3]="CONSUMED",t[t.DISABLED=4]="DISABLED",t[t.ENABLED=6]="ENABLED"}(d||(d={}));const b=class{constructor(e){t(this,e),this.tabsInfo={available:{tabId:"available",offset:0,limit:this.pageSize},history:{tabId:"history",offset:0,limit:this.pageSize}},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl=void 0,this.language="en",this.endpoint=void 0,this.session=void 0,this.pageSize=20,this.activeTab=this.tabsInfo.available.tabId}onTabClick(t){this.activeTab=t}render(){return e("div",{key:"28c29b3160d58b90e8d98f0375f2c51763872158",class:"PowerUpsLobby",ref:t=>this.stylingContainer=t},e("div",{key:"fa242490d51a5e38e2c600e57dadb9f2708e21f2",class:"TabTitle"},e("span",{key:"041edb872b4fa22a3822309918767e7f3de9aa3d",class:"Tab TabItem "+("available"===this.activeTab?"Active":""),onClick:this.onTabClick.bind(this,"available")},l("available",this.language)),e("span",{key:"8888c5d09305653b18e82d6ef3a1ae26aceca314",class:"Tab TabItem "+("history"===this.activeTab?"Active":""),onClick:this.onTabClick.bind(this,"history")},l("history",this.language))),e("div",{key:"82132c243f8cd3531c5ca0cb320c4723ffc0f0b4",class:"Desc"}," ",c.XP," "),e("div",{key:"8b638cce7dfe2d0983c82874aef59b1e8ec474dc",class:"TabContent"},"available"===this.activeTab&&e("bonus-elevate-powerups",{key:"5e236af908d621ccb8af1ab61ab62fd8db7694a5",endpoint:this.endpoint,session:this.session,language:this.language,"mb-source":this.mbSource,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"page-size":this.pageSize}),"history"===this.activeTab&&e("bonus-elevate-powerups-history",{key:"7d58ac9a7374f67bea7bd43541dd37b0b2968019",endpoint:this.endpoint,session:this.session,language:this.language,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"page-size":this.pageSize})))}handleClientStylingChange(t,e){t!=e&&s(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&o(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&n(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleNewTranslations(){r(this.translationUrl)}async componentWillLoad(){this.translationUrl&&await r(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&n(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&s(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&o(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],translationUrl:["handleNewTranslations"]}}};b.style=':host{display:block}.PowerUpsLobby{padding:10px}.PowerUpsLobby .Desc{display:none !important}.PowerUpsLobby .TabItem{position:relative;cursor:pointer;padding:10px 20px;border-bottom:2px solid transparent}.PowerUpsLobby .TabItem::after{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background-image:linear-gradient(180deg, var(--emw--color-powup-orange1, #EA9018) 0%, var(--emw--color-powup-orange1, #E0A84E) 100%);transform:scaleX(0)}.PowerUpsLobby .TabItem.Active::after{transform:scaleX(1)}.PowerUpsLobby .TabTitle{display:flex;flex-direction:row;text-transform:uppercase}.PowerUpsLobby .TabTitle .Tab{flex:1;padding:10px 20px;text-align:center;cursor:pointer}.PowerUpsLobby .TabTitle .Active1{border-bottom:2px solid;border-image-source:linear-gradient(180deg, var(--emw--color-powup-orange1, #EA9018) 0%, var(--emw--color-powup-orange1, #E0A84E) 100%);border-image-slice:1}.PowerUpsLobby .TabContent{margin-top:20px}';export{b as B,c as M,d as P,h as a,o as b,n as c,s}
@@ -0,0 +1 @@
1
+ import{p as e,b as a}from"./index-64ff3a3a.js";export{s as setNonce}from"./index-64ff3a3a.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const a=import.meta.url,n={};return""!==a&&(n.resourcesUrl=new URL(".",a).href),e(n)})().then((async e=>(await n(),a([["bonus-elevate-powerups_7",[[1,"bonus-elevate-powerups-lobby",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],endpoint:[513],session:[513],pageSize:[514,"page-size"],activeTab:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],translationUrl:["handleNewTranslations"]}],[1,"bonus-elevate-powerups",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],endpoint:[513],session:[513],pageSize:[514,"page-size"],isLoading:[32],powerups:[32],offset:[32],limit:[32],total:[32]},[[8,"reloadPageByType","onReloadPageByType"]],{offset:["loadData"],limit:["loadData"],language:["loadData"],session:["loadData","handleDataConfigChange"],endpoint:["loadData","handleDataConfigChange"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"bonus-elevate-powerups-history",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],endpoint:[513],session:[513],pageSize:[514,"page-size"],translationUrl:[513,"translation-url"],isLoading:[32],powerups:[32],offset:[32],limit:[32],total:[32]},[[8,"reloadPageByType","onReloadPageByType"]],{offset:["loadData"],limit:["loadData"],language:["loadData"],session:["loadData"],endpoint:["loadData"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],translationUrl:["handleNewTranslations"]}],[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],imgLoaded:[32],shouldLoad:[32]},null,{src:["handleSrc"]}],[0,"time-count",{expireTime:[1,"expire-time"],displayTime:[32]},null,{expireTime:["startTimeChanged"]}],[0,"bonus-pagination-nav",{total:[1538],limit:[1538],offset:[1538],tableId:[1537,"table-id"],language:[1537],translationUrl:[513,"translation-url"],arrowsActive:[1540,"arrows-active"],secondaryArrowsActive:[1540,"secondary-arrows-active"],displayPageNumbers:[1540,"display-page-numbers"],displayRangeOfTotal:[1540,"display-range-of-total"],navItemAccount:[1538,"nav-item-account"],endPageIndex:[32],pagesArray:[32],currentPage:[32],showAsEllipsisMid:[32]},[[8,"paginationReset","pageLimitChangedHandler"],[8,"pageLimitChanged","pageLimitChangedHandler"]]],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1]},null,{structure:["handleStructureChange"]}]]]],e))));
@@ -0,0 +1,9 @@
1
+ import{r as t,h as e,c as i,H as n,g as r}from"./index-64ff3a3a.js";import{P as s,a as o,M as a,s as h,b as u,c as l}from"./bonus-elevate-powerups-lobby-09c95672.js";export{B as bonus_elevate_powerups_lobby}from"./bonus-elevate-powerups-lobby-09c95672.js";const d={en:{min:"MIN",rounds:"Rounds",coins:"Coins",xp:"XP",nothingHere:"Nothing here -- yet!",noPowerUps:"No power-ups have been used at the moment.",gotoShop:"Go to shop to check power-ups availability.",termsCon:"Read full Terms & Conditions",games:"Games",selectGameToActive:"Select the game to activate power-up"}},c=(t,e,i)=>{let n=d[void 0!==e&&e in d?e:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");n=n.replace(i,e)}return n},f={expand:"games",fields:"id,powerUpID,displayName,termsUrl,description,status,multiplier,boostingPeriod,currentTime,expireTime,games(id,gameId,name,thumbnail,launchUrl)",status:`${s.ACTIVE},${s.ACTIVATED}`},m={expand:"games",fields:"id,powerUpID,games(id,gameId,name,thumbnail,launchUrl)"},p=class{constructor(e){t(this,e),this.tableId="powerups",this.gameObservers=new Map,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.language="en",this.endpoint=void 0,this.session=void 0,this.pageSize=20,this.isLoading=!0,this.powerups=[],this.offset=0,this.limit=this.pageSize,this.total=void 0}onReloadPageByType(t){const{limit:e,offset:i,tableId:n}=t.detail;n===this.tableId&&(this.offset=i,this.limit=e)}async loadData(){if(this.endpoint&&this.session){this.isLoading=!0,this.abortController&&this.abortController.abort(),this.abortController=new AbortController;try{const t=new URL(`${this.endpoint}/v1/elevate/powerups?pagination=offset=${this.offset},limit=${this.limit},games(limit=20,offset=0)`);let e={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"GET",signal:this.abortController.signal};Object.entries(f).forEach((([e,i])=>{t.searchParams.append(e,i)})),t.searchParams.append("language",this.language);const i=await fetch(t,e);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const{data:n,total:r}=await i.json();this.powerups=n,this.total=r}catch(t){"AbortError"!==t.name&&(console.error("Failed to load powerups history:",t),window.postMessage({type:"peHistoryLoaderError",error:t}))}finally{this.abortController.signal.aborted||(this.isLoading=!1)}}}onGamesHover(t){window.postMessage({type:"PowerUpHover",game:t},"*")}async loadMoreGames(t){var e;if(!(t.games.items.length>=t.games.total))try{const i=new URL(`${this.endpoint}/v1/elevate/powerups?pagination=games(limit=20,offset=${t.games.items.length})`),n={headers:{"x-SessionId":this.session}};i.searchParams.append("filter",`powerUpID=${t.powerUpID}`),Object.entries(m).forEach((([t,e])=>{i.searchParams.append(t,e)}));const r=await fetch(i.toString(),n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);const{data:s}=await r.json(),o=this.powerups.findIndex((e=>e.id===t.id));if(-1!==o){const t=Object.assign({},this.powerups[o]),i=null==s?void 0:s[0];if(i&&(null===(e=i.games)||void 0===e?void 0:e.items)){t.games.items=[...t.games.items,...i.games.items];const e=[...this.powerups];e[o]=t,this.powerups=e}}}catch(t){console.error("Failed to load more games:",t)}}initializeGamesObserver(t){let e=this.gameObservers.get(t.id);e&&e.disconnect(),e=new IntersectionObserver((i=>{i.forEach((i=>{i.isIntersecting&&(this.loadMoreGames(t),e.unobserve(i.target),this.gameObservers.delete(t.id))}))})),this.gameObservers.set(t.id,e),setTimeout((()=>{const i=this.stylingContainer.querySelector(`.PowerUpItem[data-powerup-id="${t.id}"] .Game:last-child`);i&&e.observe(i)}),200)}componentDidUpdate(){this.powerups.forEach((t=>{var e,i;(null===(e=t.games)||void 0===e?void 0:e.items.length)<(null===(i=t.games)||void 0===i?void 0:i.total)&&this.initializeGamesObserver(t)}))}render(){return e("div",{key:"b40ca849d3de46834e9c7b6dee8d275756921d07",class:"PowerUpsContainer",ref:t=>this.stylingContainer=t},this.isLoading?e("p",null,"Loading..."):this.total?[e("div",{class:"PowerUps"},this.powerups.map((t=>{var i,n;return e("div",{class:"PowerUpItem Card","data-powerup-id":t.id},e("div",{class:"CardLeft"},e("div",{class:"MainInfo"},e("div",{class:"DisplayName"}," ",t.displayName||"Title"," "),e("div",{class:"Title2 PowerUpMultiplier"},e("span",{class:"BoostingPeriod"},e("span",{class:"Period"},t.boostingPeriod.minutes||t.boostingPeriod.numberOfRounds," "),c(t.boostingPeriod.mode===o.TIME_PERIOD?"min":"rounds")," "),e("span",{class:"Multiplier"},"| X",t.multiplier.coefficient," "),e("span",{class:"MultiplierMode"},"| ",c(t.multiplier.mode===a.XP?"xp":"coins")," "),"| ",e("span",{class:"ExpireCount"}," ",e("time-count",{"expire-time":t.expireTime}))),e("div",{class:"Description"},"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus aperiam autem corporis est harum minus, nam neque nisi quibusdam quod reiciendis rerum saepe temporibus veritatis voluptas! Aperiam cupiditate optio rem?")),e("div",{class:"TermsC"},c("termsCon",this.language))),e("div",{class:"GamesContent CardRight"},e("div",{class:"GamesTitle"},e("span",{class:"Title2"}," ",c("games",this.language)),e("span",{class:"GamesAmount"},"( ",null===(i=t.games)||void 0===i?void 0:i.total," )")),e("div",{class:"GameTitleTip"},c("selectGameToActive",this.language)),e("div",{class:"GamesList"},e("div",{class:"Games"},null===(n=t.games)||void 0===n?void 0:n.items.map((t=>e("div",{class:"Game"},e("ui-image",{src:t.thumbnail}),e("div",{class:"GameMask",onClick:this.onGamesHover.bind(this,t)},e("span",{class:"PlayBtn"},"Start Now!")))))))))}))),e("div",{class:"Pagination"},this.total&&this.total>this.limit&&e("bonus-pagination-nav",{offset:this.offset,limit:this.limit,"secondary-arrows-active":!0,"table-id":this.tableId,total:this.total}))]:e("div",{class:"EmptyPowerups"},e("div",{class:"Icon",innerHTML:'<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n<rect width="52" height="52" fill="url(#pattern0_1132_30534)"/>\n<defs>\n<pattern id="pattern0_1132_30534" patternContentUnits="objectBoundingBox" width="1" height="1">\n<use xlink:href="#image0_1132_30534" transform="scale(0.01)"/>\n</pattern>\n<image id="image0_1132_30534" width="100" height="100" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAHlElEQVR4nO2daYwURRTH/4tnvPCI9xE1ahQTNZmp6gXRzar4wTtGvPWLUeIVPxgVNWbizqvZRdTAGoioEQwaFDWK0YBCvMUbJWJIBD8QOUIEowhEQFjzepu4WaZ6qnp6tqub+iX9hexUV/W/Xh3vvSoAj8fj8Xg8Ho/H4/F4ikapB8PLNYiyws2S8LBU6JEKU4TCNKkwWSjUhML9ZYWrRRfOPGUy9sm6zoWio4IDpMI1/NElYalU6LN5hMI2SVgoFUgqdI6djT2yblP+6ENbuYqLJGGmJGy0FSFWIMIqQZgoFUZk3Uz3qWBYmXC5VPg2TRFinvmS0J51s51EKnQKws9DJMRgq5kjqzgp62/gBOcoHC4VXs5CiEGibBaERzsq2BO7K6KK84XCykQfUOGvaGibJxVms6hC4Q0ehiJL25Kw3M9kD47D7oYkPBCugEw/FmGFJEwVCteafDDu6SWF06XCOKnwqiBssBDmd1nFBdgtqGAY7xcMe+u2aDjr5N8189pSBfsJhRsF4VNDUbaw+Ci8GISZBuP5v5LwXKsmWqlwnlD4yECU7WxhKCqSMNVgaPom6EZpKOrDFiMJaxqJUq7iOhQNSag0aji7PYZ6lROu8ghzDYavC1EURA2XScKOGKvYyH+T8VBabTjRF2H1Va7ieElYFzNxr3dlt1wm3BXNG9olce73KZKwIKaBf7PnFg4RiRJnKY8gr4STZsySNlAYAweJPMM6QTYF3TgReUNWcFCDFcyDcHuvNC9mWT4HeUMojI8RYx672OEwIys4Iq5DlQgSeaGjgn11jRGEzeVunIwcEEYl9UPu28gLcROjIDxmWx6HYjlimDTaF/Z2hek8jFr9sA9tkvCxZqm+I+jCGcgDugCTUFg/agIOtCkrchCujsqYbbvsjIaen6LO8N3obhxi8/uyQkfM0NsD1+HQaIx1PG5rGUJh7aAyZplaSmQZSwb17IW2lhK65Ot3sJXOx+j5o2sE2d5OOLYZMWxEqStGQlFEFTfpOhlbEFxGKnyhqfx80zJ4WBKEZXEbtDhRYsX4/5luWp+zJmJ/3sRqyumC0yk7hK2aio+zKUvUMDKKClqJYijGEv47q/oQXtdY2+dwFfaIaj9eDadZl2cpSqvEiNp2p0aQrSMq2BsuIhXu1lR6TdIyTUUZNQHHtEqMRosVZ5e/ktCrEWRBM+WaiGKQUJdYjJ3zWkzixFVwEUF4T1PhKU2XbSJKi8TYiS6VlXOJ4SI8wbXSZS2SiZKKGEyY6VjfOqtwEUFYrOlB96b1Do63C8IfRmIQlpYIR6f1bkF4SzOHTYKLSIXlmo9zW5rvCWq4wkCMjTzRp/leXcaMILwAF9Hl5rKzESkx0Ddl8Fj7vpLsRYTCM3ARqfC1pgc9lIEYqYsiCO9r2qfgItp0GsKTzZZtuOmr+9g4JBu0b5HGQsbDRdh0NR/lnQwsI11L6UOb1p9VxQ1wEV5NaXrosqRlmrpDJOHKJL4vU0o9OEFX7lBlWlpTUjhXM2TtEE/gKNvybH1TSR2SJrAV6NpmG3QbMtjJxmky9SpetsyPNRqm6uwzDPcp1sOXVHhe1yHgMoLwgebjvWIZD1lsahkJd/TG7hy2KD4sqmlXL1wmINyh+QCbbEw7ULg+PJZgKYaJKByJ5IikRV3GxAjrpmNxJ6KGw3ReUaFwu01ZGlGMfVP1RLEVIyyHMEszH23gg0BwnejMX93V1ljLCXWQKPaRvgGiJBEj6MKpMZZqHAbOlKCGQGviNdxiXV6/KIuTem1DUQjLbMVgJGFGzHDVibwgFT7RWMmqJMvEZt0fSX7PQuqOJwiF711Ph921MfpDOpPhOKVp2Esq/KCzDr7cBnlDN5dIFopwKRxGKjylE0MQfmz2VHAmcGKcJPypEWWdq9dZcO/XWjfn9FYxGnmFl7oxk+LyQOFIuLYgiUmYEIQXkWvYS6oJfcr+HrcorZh3GmLEul0IK9orOBR55+wKDo4J7/KK5Zesh6+ghktiU4kIW3mhgiLAFiAaXb1EWJfJ0egKhvGZlZjNX/gECvehCFhF+ihcffVaH6xJSLQL/9CgXk1HPJ2gibDrakm4tVVnwqMhlCThn0Z1EQov5WoD2IoYuBy4CmPvcUoWw1E/TkjQLsV3tYzeXO43kogh+ucU7URf57a3WXzu3TbxLUySJtwTnRXU3tIw6NnOV9CiCNiEXUs9GC4JbyaxHM4jFoSnOcWI877Yknji5Wv6BOFZnht0J7AaDFFrZQ0XowgkOp/RhzbObDQeRlr5EOamne2YGc0elmlnNwv7vuJuDWrRIwi/8WXNKAppnlyShHad674Fz2o+SsBnCFEU2BfVipNLQb9P6bWkt4vGWoTCl3zmkW+cQJFolRgDYd8ROyjDvNrk145v4csvwx15grOOuWAoxKgXNCpXMSq6uoP/J4R3BeGrKHPxVw4ohR++/98nRQc1O3ORiNAMSZPYPC3Ai+EQXgyH8GI4hBfDIbwYDuHFcAgvhkN4MRzCi+EQXgyH8GI4hBcjLzfBDfDaupaDW3g4WcBbhuuieDEcEsWL4Q5hnpOfMzwej8fj8Xg8Ho/H4/GgyPwHN+MBWXHaP7AAAAAASUVORK5CYII="/>\n</defs>\n</svg>\n'}),e("span",{class:"NoPowerTitle"},c("nothingHere",this.language)),e("span",null,c("noPowerUps")),e("span",null,c("gotoShop")),e("div",null)))}handleDataConfigChange(){this.loadData().catch(console.error)}handleClientStylingChange(t,e){t!=e&&h(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&u(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&l(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentWillLoad(){this.loadData().catch(console.error)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&l(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&h(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.abortController&&this.abortController.abort(),this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.gameObservers.forEach((t=>t.disconnect())),this.gameObservers.clear()}static get assetsDirs(){return["assets"]}static get watchers(){return{offset:["loadData"],limit:["loadData"],language:["loadData"],session:["loadData","handleDataConfigChange"],endpoint:["loadData","handleDataConfigChange"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};p.style=":host{display:block;font-family:inherit;--game-amount-line:4}@media screen and (max-width: 768px){.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game{width:32%}.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardLeft,.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardRight{padding:8px}.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardRight{margin:8px}}@media screen and (max-width: 470px){.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game{width:45%}.PowerUpsContainer .PowerUps .PowerUpItem.Card{max-height:600px;height:fit-content;flex-direction:column}.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardLeft{gap:10px}.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardRight{height:51%;overflow:auto}.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardLeft,.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardRight{width:auto;margin:auto}.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardLeft .Game,.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardRight .Game{width:45%}}.PowerUpsContainer{font-size:0.95rem;display:flex;flex-direction:column;min-height:300px}.PowerUpsContainer .EmptyPowerups{align-items:center;justify-content:center;font-weight:400;font-size:1.2em;line-height:24px;text-align:center;vertical-align:middle;width:max-content;margin:auto;display:flex;flex-direction:column;padding:50px}.PowerUpsContainer .EmptyPowerups .Icon,.PowerUpsContainer .EmptyPowerups .NoPowerTitle{text-align:center}.PowerUpsContainer .EmptyPowerups .Icon svg,.PowerUpsContainer .EmptyPowerups .NoPowerTitle svg{width:40px}.PowerUpsContainer .EmptyPowerups .NoPowerTitle{font-size:1.2em;font-weight:bold;margin:10px}.PowerUpsContainer .PowerUps{width:100%;gap:12px;display:flex;flex-direction:column}.PowerUpsContainer .PowerUps .Card{width:100%;height:307px;gap:12px;border-radius:12px;border:2px solid var(--emw--button-border-color-secondary, rgba(188, 252, 177, 0.0509803922));display:flex;flex-direction:row}.PowerUpsContainer .PowerUps .Card .CardLeft,.PowerUpsContainer .PowerUps .Card .CardRight{display:flex;flex-direction:column}.PowerUpsContainer .PowerUps .Card .CardLeft{padding:20px;width:35%;display:flex;flex-direction:column;justify-content:space-between}.PowerUpsContainer .PowerUps .Card .CardLeft .MainInfo{display:flex;flex-direction:column;gap:12px}.PowerUpsContainer .PowerUps .Card .CardRight{padding:10px}.PowerUpsContainer .PowerUps .Card .Description{color:#C8D6CE;overflow-y:auto;height:calc(100% - 60px)}.PowerUpsContainer .PowerUps .Card .CardLeft .DisplayName{width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;height:22px;gap:12px}.PowerUpsContainer .PowerUps .Card .CardLeft .PowerUpMultiplier{text-transform:uppercase;font-size:0.85em;color:var(--emw--color-gray-dark, #727672)}.PowerUpsContainer .PowerUps .Card .CardLeft .PowerUpMultiplier .ExpireCount{background-image:linear-gradient(180deg, var(--emw--color-powup-orange1, #EA9018) 0%, var(--emw--color-powup-orange2, #E0A84E) 100%)}.PowerUpsContainer .PowerUps .Card .CardLeft .ExpireCount,.PowerUpsContainer .PowerUps .Card .CardLeft .TermsC{display:inline-block;-webkit-background-clip:text;background-clip:text;color:transparent}.PowerUpsContainer .PowerUps .Card .CardLeft .TermsC{text-transform:uppercase;background-image:linear-gradient(180deg, var(--emw--color-powup-green, #24B24E) 0%, var(--emw--color-powup-light-green, #18CE51) 100%);font-size:0.8em;font-weight:bold}.PowerUpsContainer .PowerUps .Card .GamesContent{margin:20px;flex:1;gap:12px;display:flex;border-radius:8px;border:2px solid var(--emw--color-powup-light-green-0D, rgba(188, 252, 177, 0.0509803922))}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesTitle{display:flex;flex-direction:row}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesTitle .Title2{text-transform:capitalize}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesTitle .GamesAmount{opacity:0.8}.PowerUpsContainer .PowerUps .Card .GamesContent .GameTitleTip{color:var(--emw--color-powup-gray-green, #C8D6CE);font-size:0.8rem}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList{display:flex;justify-content:center;flex:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emw--background-gray-color, gray) transparent}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList::-webkit-scrollbar-track{background-color:transparent;border-radius:5px}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games{padding:0;display:flex;align-items:flex-start;justify-content:flex-start;flex-wrap:wrap;gap:calc(30px / (var(--game-amount-line) - 1))}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game{width:calc((100% - 30px) / var(--game-amount-line));cursor:pointer;position:relative}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game .GameMask{transition:opacity;transition-duration:0.2s;opacity:0;position:absolute;width:70%;height:100%}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game:hover .mask-filter{opacity:1}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game:hover img{opacity:0.4;filter:blur(1.5px)}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game:hover .GameMask{opacity:1;mix-blend-mode:screen;background-color:var(--emw--color-powup-green, #24B24E);display:flex;justify-content:center;align-items:center;position:absolute;width:100%;left:0;height:100%;top:0;border-radius:8px}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game:hover .GameMask .PlayBtn{border:2px solid var(--emw--color-powup-gray, #f0f0f0);padding:5px 3px;border-radius:3px}.PowerUpsContainer .Pagination{display:flex;justify-content:center}";const g={en:{min:"MIN",rounds:"Rounds",coins:"Coins",xp:"XP",consumed:"Used",expired:"Expired",enabled:"Enabled",active:"Active",nothingHere:"Nothing here -- yet!",noPowerUps:"No power-ups have been used at the moment.",gotoShop:"Go to shop to check power-ups availability."}},w=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{g[e]||(g[e]={});for(let i in t[e])g[e][i]=t[e][i]})),e(!0)})).catch((t=>{console.error("Failed to load translations:",t),e(!1)}))})),v=(t,e,i)=>{let n=g[void 0!==e&&e in g?e:"en"][t]||t;if(null==i?void 0:i.values)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");n=n.replace(i,e)}return n};
2
+ //! moment.js
3
+ //! version : 2.29.4
4
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
5
+ //! license : MIT
6
+ //! momentjs.com
7
+ var y,b;function C(){return y.apply(null,arguments)}function k(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function x(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function P(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function M(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(P(t,e))return!1;return!0}function D(t){return void 0===t}function Y(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function S(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function U(t,e){var i,n=[],r=t.length;for(i=0;i<r;++i)n.push(e(t[i],i));return n}function N(t,e){for(var i in e)P(e,i)&&(t[i]=e[i]);return P(e,"toString")&&(t.toString=e.toString),P(e,"valueOf")&&(t.valueOf=e.valueOf),t}function G(t,e,i,n){return ze(t,e,i,n,!0).utc()}function E(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 T(t){if(null==t._isValid){var e=E(t),i=b.call(e.parsedDateParts,(function(t){return null!=t})),n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function A(t){var e=G(NaN);return null!=t?N(E(e),t):E(e).userInvalidated=!0,e}b=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 I=C.momentProperties=[],R=!1;function W(t,e){var i,n,r,s=I.length;if(D(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),D(e._i)||(t._i=e._i),D(e._f)||(t._f=e._f),D(e._l)||(t._l=e._l),D(e._strict)||(t._strict=e._strict),D(e._tzm)||(t._tzm=e._tzm),D(e._isUTC)||(t._isUTC=e._isUTC),D(e._offset)||(t._offset=e._offset),D(e._pf)||(t._pf=E(e)),D(e._locale)||(t._locale=e._locale),s>0)for(i=0;i<s;i++)D(r=e[n=I[i]])||(t[n]=r);return t}function H(t){W(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===R&&(R=!0,C.updateOffset(this),R=!1)}function O(t){return t instanceof H||null!=t&&null!=t._isAMomentObject}function L(t){!1===C.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function F(t,e){var i=!0;return N((function(){if(null!=C.deprecationHandler&&C.deprecationHandler(null,t),i){var n,r,s,o=[],a=arguments.length;for(r=0;r<a;r++){if(n="","object"==typeof arguments[r]){for(s in n+="\n["+r+"] ",arguments[0])P(arguments[0],s)&&(n+=s+": "+arguments[0][s]+", ");n=n.slice(0,-2)}else n=arguments[r];o.push(n)}L(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var j,K={};function J(t,e){null!=C.deprecationHandler&&C.deprecationHandler(t,e),K[t]||(L(e),K[t]=!0)}function Z(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function X(t,e){var i,n=N({},t);for(i in e)P(e,i)&&(x(t[i])&&x(e[i])?(n[i]={},N(n[i],t[i]),N(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)P(t,i)&&!P(e,i)&&x(t[i])&&(n[i]=N({},n[i]));return n}function _(t){null!=t&&this.set(t)}function q(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}C.suppressDeprecationWarnings=!1,C.deprecationHandler=null,j=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)P(t,e)&&i.push(e);return i};var Q=/(\[[^\[]*\])|(\\)?([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,z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},$={};function tt(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&($[t]=r),e&&($[e[0]]=function(){return q(r.apply(this,arguments),e[1],e[2])}),i&&($[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function et(t,e){return t.isValid()?(e=it(e,t.localeData()),V[e]=V[e]||function(t){var e,i,n,r=t.match(Q);for(e=0,i=r.length;e<i;e++)r[e]=$[r[e]]?$[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+=Z(r[n])?r[n].call(e,t):r[n];return s}}(e),V[e](t)):t.localeData().invalidDate()}function it(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(z.lastIndex=0;i>=0&&z.test(t);)t=t.replace(z,n),z.lastIndex=0,i-=1;return t}var nt={};function rt(t,e){var i=t.toLowerCase();nt[i]=nt[i+"s"]=nt[e]=t}function st(t){return"string"==typeof t?nt[t]||nt[t.toLowerCase()]:void 0}function ot(t){var e,i,n={};for(i in t)P(t,i)&&(e=st(i))&&(n[e]=t[i]);return n}var at={};function ht(t,e){at[t]=e}function ut(t){return t%4==0&&t%100!=0||t%400==0}function lt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function dt(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=lt(e)),i}function ct(t,e){return function(i){return null!=i?(mt(this,t,i),C.updateOffset(this,e),this):ft(this,t)}}function ft(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function mt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&ut(t.year())&&1===t.month()&&29===t.date()?(i=dt(i),t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),qt(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](i))}var pt,gt=/\d/,wt=/\d\d/,vt=/\d{3}/,yt=/\d{4}/,bt=/[+-]?\d{6}/,Ct=/\d\d?/,kt=/\d\d\d\d?/,xt=/\d\d\d\d\d\d?/,Pt=/\d{1,3}/,Mt=/\d{1,4}/,Dt=/[+-]?\d{1,6}/,Yt=/\d+/,St=/[+-]?\d+/,Ut=/Z|[+-]\d\d:?\d\d/gi,Nt=/Z|[+-]\d\d(?::?\d\d)?/gi,Gt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Et(t,e,i){pt[t]=Z(e)?e:function(t){return t&&i?i:e}}function Tt(t,e){return P(pt,t)?pt[t](e._strict,e._locale):new RegExp(At(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,r){return e||i||n||r}))))}function At(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}pt={};var It={};function Rt(t,e){var i,n,r=e;for("string"==typeof t&&(t=[t]),Y(e)&&(r=function(t,i){i[e]=dt(t)}),n=t.length,i=0;i<n;i++)It[t[i]]=r}function Wt(t,e){Rt(t,(function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)}))}function Ht(t,e,i){null!=e&&P(It,t)&&It[t](e,i._a,i,t)}var Ot,Lt=0,Ft=1,jt=2,Kt=3,Jt=4,Bt=5,Zt=6,Xt=7,_t=8;function qt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?ut(t)?29:28:31-i%7%2}Ot=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},tt("M",["MM",2],"Mo",(function(){return this.month()+1})),tt("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),tt("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),rt("month","M"),ht("month",8),Et("M",Ct),Et("MM",Ct,wt),Et("MMM",(function(t,e){return e.monthsShortRegex(t)})),Et("MMMM",(function(t,e){return e.monthsRegex(t)})),Rt(["M","MM"],(function(t,e){e[Ft]=dt(t)-1})),Rt(["MMM","MMMM"],(function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[Ft]=r:E(i).invalidMonth=t}));var Qt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),zt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Vt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,$t=Gt,te=Gt;function ee(t,e,i){var n,r,s,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=G([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=Ot.call(this._shortMonthsParse,o))?r:null:-1!==(r=Ot.call(this._longMonthsParse,o))?r:null:"MMM"===e?-1!==(r=Ot.call(this._shortMonthsParse,o))||-1!==(r=Ot.call(this._longMonthsParse,o))?r:null:-1!==(r=Ot.call(this._longMonthsParse,o))||-1!==(r=Ot.call(this._shortMonthsParse,o))?r:null}function ie(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=dt(e);else if(!Y(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),qt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function ne(t){return null!=t?(ie(this,t),C.updateOffset(this,!0),this):ft(this,"Month")}function re(){function t(t,e){return e.length-t.length}var e,i,n=[],r=[],s=[];for(e=0;e<12;e++)i=G([2e3,e]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(n.sort(t),r.sort(t),s.sort(t),e=0;e<12;e++)n[e]=At(n[e]),r[e]=At(r[e]);for(e=0;e<24;e++)s[e]=At(s[e]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function se(t){return ut(t)?366:365}tt("Y",0,0,(function(){var t=this.year();return t<=9999?q(t,4):"+"+t})),tt(0,["YY",2],0,(function(){return this.year()%100})),tt(0,["YYYY",4],0,"year"),tt(0,["YYYYY",5],0,"year"),tt(0,["YYYYYY",6,!0],0,"year"),rt("year","y"),ht("year",1),Et("Y",St),Et("YY",Ct,wt),Et("YYYY",Mt,yt),Et("YYYYY",Dt,bt),Et("YYYYYY",Dt,bt),Rt(["YYYYY","YYYYYY"],Lt),Rt("YYYY",(function(t,e){e[Lt]=2===t.length?C.parseTwoDigitYear(t):dt(t)})),Rt("YY",(function(t,e){e[Lt]=C.parseTwoDigitYear(t)})),Rt("Y",(function(t,e){e[Lt]=parseInt(t,10)})),C.parseTwoDigitYear=function(t){return dt(t)+(dt(t)>68?1900:2e3)};var oe=ct("FullYear",!0);function ae(t,e,i,n,r,s,o){var a;return t<100&&t>=0?(a=new Date(t+400,e,i,n,r,s,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,r,s,o),a}function he(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 ue(t,e,i){var n=7+e-i;return-(7+he(t,0,n).getUTCDay()-e)%7+n-1}function le(t,e,i,n,r){var s,o,a=1+7*(e-1)+(7+i-n)%7+ue(t,n,r);return a<=0?o=se(s=t-1)+a:a>se(t)?(s=t+1,o=a-se(t)):(s=t,o=a),{year:s,dayOfYear:o}}function de(t,e,i){var n,r,s=ue(t.year(),e,i),o=Math.floor((t.dayOfYear()-s-1)/7)+1;return o<1?n=o+ce(r=t.year()-1,e,i):o>ce(t.year(),e,i)?(n=o-ce(t.year(),e,i),r=t.year()+1):(r=t.year(),n=o),{week:n,year:r}}function ce(t,e,i){var n=ue(t,e,i),r=ue(t+1,e,i);return(se(t)-n+r)/7}function fe(t,e){return t.slice(e,7).concat(t.slice(0,e))}tt("w",["ww",2],"wo","week"),tt("W",["WW",2],"Wo","isoWeek"),rt("week","w"),rt("isoWeek","W"),ht("week",5),ht("isoWeek",5),Et("w",Ct),Et("ww",Ct,wt),Et("W",Ct),Et("WW",Ct,wt),Wt(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=dt(t)})),tt("d",0,"do","day"),tt("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),tt("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),tt("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),tt("e",0,0,"weekday"),tt("E",0,0,"isoWeekday"),rt("day","d"),rt("weekday","e"),rt("isoWeekday","E"),ht("day",11),ht("weekday",11),ht("isoWeekday",11),Et("d",Ct),Et("e",Ct),Et("E",Ct),Et("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Et("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Et("dddd",(function(t,e){return e.weekdaysRegex(t)})),Wt(["dd","ddd","dddd"],(function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:E(i).invalidWeekday=t})),Wt(["d","e","E"],(function(t,e,i,n){e[n]=dt(t)}));var me="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),pe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),we=Gt,ve=Gt,ye=Gt;function be(t,e,i){var n,r,s,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=G([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=Ot.call(this._weekdaysParse,o))?r:null:"ddd"===e?-1!==(r=Ot.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=Ot.call(this._minWeekdaysParse,o))?r:null:"dddd"===e?-1!==(r=Ot.call(this._weekdaysParse,o))||-1!==(r=Ot.call(this._shortWeekdaysParse,o))||-1!==(r=Ot.call(this._minWeekdaysParse,o))?r:null:"ddd"===e?-1!==(r=Ot.call(this._shortWeekdaysParse,o))||-1!==(r=Ot.call(this._weekdaysParse,o))||-1!==(r=Ot.call(this._minWeekdaysParse,o))?r:null:-1!==(r=Ot.call(this._minWeekdaysParse,o))||-1!==(r=Ot.call(this._weekdaysParse,o))||-1!==(r=Ot.call(this._shortWeekdaysParse,o))?r:null}function Ce(){function t(t,e){return e.length-t.length}var e,i,n,r,s,o=[],a=[],h=[],u=[];for(e=0;e<7;e++)i=G([2e3,1]).day(e),n=At(this.weekdaysMin(i,"")),r=At(this.weekdaysShort(i,"")),s=At(this.weekdays(i,"")),o.push(n),a.push(r),h.push(s),u.push(n),u.push(r),u.push(s);o.sort(t),a.sort(t),h.sort(t),u.sort(t),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function ke(){return this.hours()%12||12}function xe(t,e){tt(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Pe(t,e){return e._meridiemParse}tt("H",["HH",2],0,"hour"),tt("h",["hh",2],0,ke),tt("k",["kk",2],0,(function(){return this.hours()||24})),tt("hmm",0,0,(function(){return""+ke.apply(this)+q(this.minutes(),2)})),tt("hmmss",0,0,(function(){return""+ke.apply(this)+q(this.minutes(),2)+q(this.seconds(),2)})),tt("Hmm",0,0,(function(){return""+this.hours()+q(this.minutes(),2)})),tt("Hmmss",0,0,(function(){return""+this.hours()+q(this.minutes(),2)+q(this.seconds(),2)})),xe("a",!0),xe("A",!1),rt("hour","h"),ht("hour",13),Et("a",Pe),Et("A",Pe),Et("H",Ct),Et("h",Ct),Et("k",Ct),Et("HH",Ct,wt),Et("hh",Ct,wt),Et("kk",Ct,wt),Et("hmm",kt),Et("hmmss",xt),Et("Hmm",kt),Et("Hmmss",xt),Rt(["H","HH"],Kt),Rt(["k","kk"],(function(t,e){var i=dt(t);e[Kt]=24===i?0:i})),Rt(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),Rt(["h","hh"],(function(t,e,i){e[Kt]=dt(t),E(i).bigHour=!0})),Rt("hmm",(function(t,e,i){var n=t.length-2;e[Kt]=dt(t.substr(0,n)),e[Jt]=dt(t.substr(n)),E(i).bigHour=!0})),Rt("hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[Kt]=dt(t.substr(0,n)),e[Jt]=dt(t.substr(n,2)),e[Bt]=dt(t.substr(r)),E(i).bigHour=!0})),Rt("Hmm",(function(t,e){var i=t.length-2;e[Kt]=dt(t.substr(0,i)),e[Jt]=dt(t.substr(i))})),Rt("Hmmss",(function(t,e){var i=t.length-4,n=t.length-2;e[Kt]=dt(t.substr(0,i)),e[Jt]=dt(t.substr(i,2)),e[Bt]=dt(t.substr(n))}));var Me,De=ct("Hours",!0),Ye={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:Qt,monthsShort:zt,week:{dow:0,doy:6},weekdays:me,weekdaysMin:ge,weekdaysShort:pe,meridiemParse:/[ap]\.?m?\.?/i},Se={},Ue={};function Ne(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 Ge(t){return t?t.toLowerCase().replace("_","-"):t}function Ee(t){var e=null;if(void 0===Se[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(t))try{e=Me._abbr,require("./locale/"+t),Te(e)}catch(e){Se[t]=null}return Se[t]}function Te(t,e){var i;return t&&((i=D(e)?Ie(t):Ae(t,e))?Me=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Me._abbr}function Ae(t,e){if(null!==e){var i,n=Ye;if(e.abbr=t,null!=Se[t])J("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=Se[t]._config;else if(null!=e.parentLocale)if(null!=Se[e.parentLocale])n=Se[e.parentLocale]._config;else{if(null==(i=Ee(e.parentLocale)))return Ue[e.parentLocale]||(Ue[e.parentLocale]=[]),Ue[e.parentLocale].push({name:t,config:e}),null;n=i._config}return Se[t]=new _(X(n,e)),Ue[t]&&Ue[t].forEach((function(t){Ae(t.name,t.config)})),Te(t),Se[t]}return delete Se[t],null}function Ie(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Me;if(!k(t)){if(e=Ee(t))return e;t=[t]}return function(t){for(var e,i,n,r,s=0;s<t.length;){for(e=(r=Ge(t[s]).split("-")).length,i=(i=Ge(t[s+1]))?i.split("-"):null;e>0;){if(n=Ee(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&Ne(r,i)>=e-1)break;e--}s++}return Me}(t)}function Re(t){var e,i=t._a;return i&&-2===E(t).overflow&&(e=i[Ft]<0||i[Ft]>11?Ft:i[jt]<1||i[jt]>qt(i[Lt],i[Ft])?jt:i[Kt]<0||i[Kt]>24||24===i[Kt]&&(0!==i[Jt]||0!==i[Bt]||0!==i[Zt])?Kt:i[Jt]<0||i[Jt]>59?Jt:i[Bt]<0||i[Bt]>59?Bt:i[Zt]<0||i[Zt]>999?Zt:-1,E(t)._overflowDayOfYear&&(e<Lt||e>jt)&&(e=jt),E(t)._overflowWeeks&&-1===e&&(e=Xt),E(t)._overflowWeekday&&-1===e&&(e=_t),E(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)?)?$/,He=/^\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)?)?$/,Oe=/Z|[+-]\d\d(?::?\d\d)?/,Le=[["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]],Fe=[["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,Ke=/^(?:(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}))$/,Je={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Be(t){var e,i,n,r,s,o,a=t._i,h=We.exec(a)||He.exec(a),u=Le.length,l=Fe.length;if(h){for(E(t).iso=!0,e=0,i=u;e<i;e++)if(Le[e][1].exec(h[1])){r=Le[e][0],n=!1!==Le[e][2];break}if(null==r)return void(t._isValid=!1);if(h[3]){for(e=0,i=l;e<i;e++)if(Fe[e][1].exec(h[3])){s=(h[2]||" ")+Fe[e][0];break}if(null==s)return void(t._isValid=!1)}if(!n&&null!=s)return void(t._isValid=!1);if(h[4]){if(!Oe.exec(h[4]))return void(t._isValid=!1);o="Z"}t._f=r+(s||"")+(o||""),qe(t)}else t._isValid=!1}function Ze(t){var e,i,n,r,s,o,a,h,u,l=Ke.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){if(i=l[3],n=l[2],r=l[5],s=l[6],o=l[7],a=[(h=l[4],u=parseInt(h,10),u<=49?2e3+u:u<=999?1900+u:u),zt.indexOf(i),parseInt(n,10),parseInt(r,10),parseInt(s,10)],o&&a.push(parseInt(o,10)),!function(t,e,i){return!t||pe.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(E(i).weekdayMismatch=!0,i._isValid=!1,!1)}(l[1],e=a,t))return;t._a=e,t._tzm=function(t,e,i){if(t)return Je[t];if(e)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(l[8],l[9],l[10]),t._d=he.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),E(t).rfc2822=!0}else t._isValid=!1}function Xe(t,e,i){return null!=t?t:null!=e?e:i}function _e(t){var e,i,n,r,s,o=[];if(!t._d){for(n=function(t){var e=new Date(C.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[jt]&&null==t._a[Ft]&&function(t){var e,i,n,r,s,o,a,h,u;null!=(e=t._w).GG||null!=e.W||null!=e.E?(s=1,o=4,i=Xe(e.GG,t._a[Lt],de(Ve(),1,4).year),n=Xe(e.W,1),((r=Xe(e.E,1))<1||r>7)&&(h=!0)):(s=t._locale._week.dow,o=t._locale._week.doy,u=de(Ve(),s,o),i=Xe(e.gg,t._a[Lt],u.year),n=Xe(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(h=!0):null!=e.e?(r=e.e+s,(e.e<0||e.e>6)&&(h=!0)):r=s),n<1||n>ce(i,s,o)?E(t)._overflowWeeks=!0:null!=h?E(t)._overflowWeekday=!0:(a=le(i,n,r,s,o),t._a[Lt]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=Xe(t._a[Lt],n[Lt]),(t._dayOfYear>se(s)||0===t._dayOfYear)&&(E(t)._overflowDayOfYear=!0),i=he(s,0,t._dayOfYear),t._a[Ft]=i.getUTCMonth(),t._a[jt]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=n[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Kt]&&0===t._a[Jt]&&0===t._a[Bt]&&0===t._a[Zt]&&(t._nextDay=!0,t._a[Kt]=0),t._d=(t._useUTC?he:ae).apply(null,o),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Kt]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(E(t).weekdayMismatch=!0)}}function qe(t){if(t._f!==C.ISO_8601)if(t._f!==C.RFC_2822){t._a=[],E(t).empty=!0;var e,i,n,r,s,o,a,h=""+t._i,u=h.length,l=0;for(a=(n=it(t._f,t._locale).match(Q)||[]).length,e=0;e<a;e++)(i=(h.match(Tt(r=n[e],t))||[])[0])&&((s=h.substr(0,h.indexOf(i))).length>0&&E(t).unusedInput.push(s),h=h.slice(h.indexOf(i)+i.length),l+=i.length),$[r]?(i?E(t).empty=!1:E(t).unusedTokens.push(r),Ht(r,i,t)):t._strict&&!i&&E(t).unusedTokens.push(r);E(t).charsLeftOver=u-l,h.length>0&&E(t).unusedInput.push(h),t._a[Kt]<=12&&!0===E(t).bigHour&&t._a[Kt]>0&&(E(t).bigHour=void 0),E(t).parsedDateParts=t._a.slice(0),E(t).meridiem=t._meridiem,t._a[Kt]=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[Kt],t._meridiem),null!==(o=E(t).era)&&(t._a[Lt]=t._locale.erasConvertYear(o,t._a[Lt])),_e(t),Re(t)}else Ze(t);else Be(t)}function Qe(t){var e=t._i,i=t._f;return t._locale=t._locale||Ie(t._l),null===e||void 0===i&&""===e?A({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),O(e)?new H(Re(e)):(S(e)?t._d=e:k(i)?function(t){var e,i,n,r,s,o,a=!1,h=t._f.length;if(0===h)return E(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<h;r++)s=0,o=!1,e=W({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],qe(e),T(e)&&(o=!0),s+=E(e).charsLeftOver,s+=10*E(e).unusedTokens.length,E(e).score=s,a?s<n&&(n=s,i=e):(null==n||s<n||o)&&(n=s,i=e,o&&(a=!0));N(t,i||e)}(t):i?qe(t):function(t){var e=t._i;D(e)?t._d=new Date(C.now()):S(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=je.exec(t._i);null===e?(Be(t),!1===t._isValid&&(delete t._isValid,Ze(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:C.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):k(e)?(t._a=U(e.slice(0),(function(t){return parseInt(t,10)})),_e(t)):x(e)?function(t){if(!t._d){var e=ot(t._i);t._a=U([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)})),_e(t)}}(t):Y(e)?t._d=new Date(e):C.createFromInputFallback(t)}(t),T(t)||(t._d=null),t))}function ze(t,e,i,n,r){var s,o={};return!0!==e&&!1!==e||(n=e,e=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(x(t)&&M(t)||k(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=i,o._i=t,o._f=e,o._strict=n,(s=new H(Re(Qe(o))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Ve(t,e,i,n){return ze(t,e,i,n,!1)}C.createFromInputFallback=F("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":""))})),C.ISO_8601=function(){},C.RFC_2822=function(){};var $e=F("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ve.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:A()})),ti=F("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ve.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:A()}));function ei(t,e){var i,n;if(1===e.length&&k(e[0])&&(e=e[0]),!e.length)return Ve();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var ii=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ni(t){var e=ot(t),i=e.year||0,n=e.quarter||0,r=e.month||0,s=e.week||e.isoWeek||0,o=e.day||0,a=e.hour||0,h=e.minute||0,u=e.second||0,l=e.millisecond||0;this._isValid=function(t){var e,i,n=!1,r=ii.length;for(e in t)if(P(t,e)&&(-1===Ot.call(ii,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<r;++i)if(t[ii[i]]){if(n)return!1;parseFloat(t[ii[i]])!==dt(t[ii[i]])&&(n=!0)}return!0}(e),this._milliseconds=+l+1e3*u+6e4*h+1e3*a*60*60,this._days=+o+7*s,this._months=+r+3*n+12*i,this._data={},this._locale=Ie(),this._bubble()}function ri(t){return t instanceof ni}function si(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function oi(t,e){tt(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+q(~~(t/60),2)+e+q(~~t%60,2)}))}oi("Z",":"),oi("ZZ",""),Et("Z",Nt),Et("ZZ",Nt),Rt(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=hi(Nt,t)}));var ai=/([\+\-]|\d\d)/gi;function hi(t,e){var i,n,r=(e||"").match(t);return null===r?null:0===(n=60*(i=((r[r.length-1]||[])+"").match(ai)||["-",0,0])[1]+dt(i[2]))?0:"+"===i[0]?n:-n}function ui(t,e){var i,n;return e._isUTC?(i=e.clone(),n=(O(t)||S(t)?t.valueOf():Ve(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),C.updateOffset(i,!1),i):Ve(t).local()}function li(t){return-Math.round(t._d.getTimezoneOffset())}function di(){return!!this.isValid()&&this._isUTC&&0===this._offset}C.updateOffset=function(){};var ci=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,fi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function mi(t,e){var i,n,r,s,o,a,h=t,u=null;return ri(t)?h={ms:t._milliseconds,d:t._days,M:t._months}:Y(t)||!isNaN(+t)?(h={},e?h[e]=+t:h.milliseconds=+t):(u=ci.exec(t))?(i="-"===u[1]?-1:1,h={y:0,d:dt(u[jt])*i,h:dt(u[Kt])*i,m:dt(u[Jt])*i,s:dt(u[Bt])*i,ms:dt(si(1e3*u[Zt]))*i}):(u=fi.exec(t))?h={y:pi(u[2],i="-"===u[1]?-1:1),M:pi(u[3],i),w:pi(u[4],i),d:pi(u[5],i),h:pi(u[6],i),m:pi(u[7],i),s:pi(u[8],i)}:null==h?h={}:"object"==typeof h&&("from"in h||"to"in h)&&(s=Ve(h.from),o=Ve(h.to),r=s.isValid()&&o.isValid()?(o=ui(o,s),s.isBefore(o)?a=gi(s,o):((a=gi(o,s)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(h={}).ms=r.milliseconds,h.M=r.months),n=new ni(h),ri(t)&&P(t,"_locale")&&(n._locale=t._locale),ri(t)&&P(t,"_isValid")&&(n._isValid=t._isValid),n}function pi(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function gi(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 wi(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(J(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),vi(this,mi(i,n),t),this}}function vi(t,e,i,n){var r=e._milliseconds,s=si(e._days),o=si(e._months);t.isValid()&&(n=null==n||n,o&&ie(t,ft(t,"Month")+o*i),s&&mt(t,"Date",ft(t,"Date")+s*i),r&&t._d.setTime(t._d.valueOf()+r*i),n&&C.updateOffset(t,s||o))}mi.fn=ni.prototype,mi.invalid=function(){return mi(NaN)};var yi=wi(1,"add"),bi=wi(-1,"subtract");function Ci(t){return"string"==typeof t||t instanceof String}function ki(t,e){if(t.date()<e.date())return-ki(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 xi(t){var e;return void 0===t?this._locale._abbr:(null!=(e=Ie(t))&&(this._locale=e),this)}C.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",C.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Pi=F("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 Mi(){return this._locale}var Di=1e3,Yi=6e4,Si=36e5,Ui=126227808e5;function Ni(t,e){return(t%e+e)%e}function Gi(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-Ui:new Date(t,e,i).valueOf()}function Ei(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-Ui:Date.UTC(t,e,i)}function Ti(t,e){return e.erasAbbrRegex(t)}function Ai(){var t,e,i=[],n=[],r=[],s=[],o=this.eras();for(t=0,e=o.length;t<e;++t)n.push(At(o[t].name)),i.push(At(o[t].abbr)),r.push(At(o[t].narrow)),s.push(At(o[t].name)),s.push(At(o[t].abbr)),s.push(At(o[t].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function Ii(t,e){tt(0,[t,t.length],0,e)}function Ri(t,e,i,n,r){var s;return null==t?de(this,n,r).year:(e>(s=ce(t,n,r))&&(e=s),Wi.call(this,t,e,i,n,r))}function Wi(t,e,i,n,r){var s=le(t,e,i,n,r),o=he(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}tt("N",0,0,"eraAbbr"),tt("NN",0,0,"eraAbbr"),tt("NNN",0,0,"eraAbbr"),tt("NNNN",0,0,"eraName"),tt("NNNNN",0,0,"eraNarrow"),tt("y",["y",1],"yo","eraYear"),tt("y",["yy",2],0,"eraYear"),tt("y",["yyy",3],0,"eraYear"),tt("y",["yyyy",4],0,"eraYear"),Et("N",Ti),Et("NN",Ti),Et("NNN",Ti),Et("NNNN",(function(t,e){return e.erasNameRegex(t)})),Et("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),Rt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,i,n){var r=i._locale.erasParse(t,n,i._strict);r?E(i).era=r:E(i).invalidEra=t})),Et("y",Yt),Et("yy",Yt),Et("yyy",Yt),Et("yyyy",Yt),Et("yo",(function(t,e){return e._eraYearOrdinalRegex||Yt})),Rt(["y","yy","yyy","yyyy"],Lt),Rt(["yo"],(function(t,e,i){var n;i._locale._eraYearOrdinalRegex&&(n=t.match(i._locale._eraYearOrdinalRegex)),e[Lt]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(t,n):parseInt(t,10)})),tt(0,["gg",2],0,(function(){return this.weekYear()%100})),tt(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ii("gggg","weekYear"),Ii("ggggg","weekYear"),Ii("GGGG","isoWeekYear"),Ii("GGGGG","isoWeekYear"),rt("weekYear","gg"),rt("isoWeekYear","GG"),ht("weekYear",1),ht("isoWeekYear",1),Et("G",St),Et("g",St),Et("GG",Ct,wt),Et("gg",Ct,wt),Et("GGGG",Mt,yt),Et("gggg",Mt,yt),Et("GGGGG",Dt,bt),Et("ggggg",Dt,bt),Wt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=dt(t)})),Wt(["gg","GG"],(function(t,e,i,n){e[n]=C.parseTwoDigitYear(t)})),tt("Q",0,"Qo","quarter"),rt("quarter","Q"),ht("quarter",7),Et("Q",gt),Rt("Q",(function(t,e){e[Ft]=3*(dt(t)-1)})),tt("D",["DD",2],"Do","date"),rt("date","D"),ht("date",9),Et("D",Ct),Et("DD",Ct,wt),Et("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Rt(["D","DD"],jt),Rt("Do",(function(t,e){e[jt]=dt(t.match(Ct)[0])}));var Hi=ct("Date",!0);tt("DDD",["DDDD",3],"DDDo","dayOfYear"),rt("dayOfYear","DDD"),ht("dayOfYear",4),Et("DDD",Pt),Et("DDDD",vt),Rt(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=dt(t)})),tt("m",["mm",2],0,"minute"),rt("minute","m"),ht("minute",14),Et("m",Ct),Et("mm",Ct,wt),Rt(["m","mm"],Jt);var Oi=ct("Minutes",!1);tt("s",["ss",2],0,"second"),rt("second","s"),ht("second",15),Et("s",Ct),Et("ss",Ct,wt),Rt(["s","ss"],Bt);var Li,Fi,ji=ct("Seconds",!1);for(tt("S",0,0,(function(){return~~(this.millisecond()/100)})),tt(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),tt(0,["SSS",3],0,"millisecond"),tt(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),tt(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),tt(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),tt(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),tt(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),tt(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),rt("millisecond","ms"),ht("millisecond",16),Et("S",Pt,gt),Et("SS",Pt,wt),Et("SSS",Pt,vt),Li="SSSS";Li.length<=9;Li+="S")Et(Li,Yt);function Ki(t,e){e[Zt]=dt(1e3*("0."+t))}for(Li="S";Li.length<=9;Li+="S")Rt(Li,Ki);Fi=ct("Milliseconds",!1),tt("z",0,0,"zoneAbbr"),tt("zz",0,0,"zoneName");var Ji=H.prototype;function Bi(t){return t}Ji.add=yi,Ji.calendar=function(t,e){var i;1===arguments.length&&(arguments[0]?O(i=arguments[0])||S(i)||Ci(i)||Y(i)||function(t){var e=k(t),i=!1;return e&&(i=0===t.filter((function(e){return!Y(e)&&Ci(t)})).length),e&&i}(i)||function(t){var e,i=x(t)&&!M(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||P(t,r[e]);return i&&n}(i)||null==i?(t=arguments[0],e=void 0):function(t){var e,i=x(t)&&!M(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)n=n||P(t,r[e]);return i&&n}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Ve(),r=ui(n,this).startOf("day"),s=C.calendarFormat(this,r)||"sameElse",o=e&&(Z(e[s])?e[s].call(this,n):e[s]);return this.format(o||this.localeData().calendar(s,this,Ve(n)))},Ji.clone=function(){return new H(this)},Ji.diff=function(t,e,i){var n,r,s;if(!this.isValid())return NaN;if(!(n=ui(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=st(e)){case"year":s=ki(this,n)/12;break;case"month":s=ki(this,n);break;case"quarter":s=ki(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:lt(s)},Ji.endOf=function(t){var e,i;if(void 0===(t=st(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?Ei:Gi,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+=Si-Ni(e+(this._isUTC?0:this.utcOffset()*Yi),Si)-1;break;case"minute":e=this._d.valueOf(),e+=Yi-Ni(e,Yi)-1;break;case"second":e=this._d.valueOf(),e+=Di-Ni(e,Di)-1}return this._d.setTime(e),C.updateOffset(this,!0),this},Ji.format=function(t){t||(t=this.isUtc()?C.defaultFormatUtc:C.defaultFormat);var e=et(this,t);return this.localeData().postformat(e)},Ji.from=function(t,e){return this.isValid()&&(O(t)&&t.isValid()||Ve(t).isValid())?mi({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ji.fromNow=function(t){return this.from(Ve(),t)},Ji.to=function(t,e){return this.isValid()&&(O(t)&&t.isValid()||Ve(t).isValid())?mi({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ji.toNow=function(t){return this.to(Ve(),t)},Ji.get=function(t){return Z(this[t=st(t)])?this[t]():this},Ji.invalidAt=function(){return E(this).overflow},Ji.isAfter=function(t,e){var i=O(t)?t:Ve(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=st(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},Ji.isBefore=function(t,e){var i=O(t)?t:Ve(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=st(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},Ji.isBetween=function(t,e,i,n){var r=O(t)?t:Ve(t),s=O(e)?e:Ve(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))},Ji.isSame=function(t,e){var i,n=O(t)?t:Ve(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=st(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},Ji.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Ji.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Ji.isValid=function(){return T(this)},Ji.lang=Pi,Ji.locale=xi,Ji.localeData=Mi,Ji.max=ti,Ji.min=$e,Ji.parsingFlags=function(){return N({},E(this))},Ji.set=function(t,e){if("object"==typeof t){var i,n=function(t){var e,i=[];for(e in t)P(t,e)&&i.push({unit:e,priority:at[e]});return i.sort((function(t,e){return t.priority-e.priority})),i}(t=ot(t)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](t[n[i].unit])}else if(Z(this[t=st(t)]))return this[t](e);return this},Ji.startOf=function(t){var e,i;if(void 0===(t=st(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?Ei:Gi,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-=Ni(e+(this._isUTC?0:this.utcOffset()*Yi),Si);break;case"minute":e=this._d.valueOf(),e-=Ni(e,Yi);break;case"second":e=this._d.valueOf(),e-=Ni(e,Di)}return this._d.setTime(e),C.updateOffset(this,!0),this},Ji.subtract=bi,Ji.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Ji.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()}},Ji.toDate=function(){return new Date(this.valueOf())},Ji.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?et(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Z(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",et(i,"Z")):et(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ji.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&&(Ji[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ji.toJSON=function(){return this.isValid()?this.toISOString():null},Ji.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ji.unix=function(){return Math.floor(this.valueOf()/1e3)},Ji.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Ji.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ji.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""},Ji.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""},Ji.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""},Ji.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()-C(r[t].since).year())*i+r[t].offset;return this.year()},Ji.year=oe,Ji.isLeapYear=function(){return ut(this.year())},Ji.weekYear=function(t){return Ri.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Ji.isoWeekYear=function(t){return Ri.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Ji.quarter=Ji.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Ji.month=ne,Ji.daysInMonth=function(){return qt(this.year(),this.month())},Ji.week=Ji.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Ji.isoWeek=Ji.isoWeeks=function(t){var e=de(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Ji.weeksInYear=function(){var t=this.localeData()._week;return ce(this.year(),t.dow,t.doy)},Ji.weeksInWeekYear=function(){var t=this.localeData()._week;return ce(this.weekYear(),t.dow,t.doy)},Ji.isoWeeksInYear=function(){return ce(this.year(),1,4)},Ji.isoWeeksInISOWeekYear=function(){return ce(this.isoWeekYear(),1,4)},Ji.date=Hi,Ji.day=Ji.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();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},Ji.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")},Ji.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},Ji.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")},Ji.hour=Ji.hours=De,Ji.minute=Ji.minutes=Oi,Ji.second=Ji.seconds=ji,Ji.millisecond=Ji.milliseconds=Fi,Ji.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=hi(Nt,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=li(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==t&&(!e||this._changeInProgress?vi(this,mi(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,C.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:li(this)},Ji.utc=function(t){return this.utcOffset(0,t)},Ji.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(li(this),"m")),this},Ji.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=hi(Ut,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Ji.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Ve(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Ji.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ji.isLocal=function(){return!!this.isValid()&&!this._isUTC},Ji.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Ji.isUtc=di,Ji.isUTC=di,Ji.zoneAbbr=function(){return this._isUTC?"UTC":""},Ji.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Ji.dates=F("dates accessor is deprecated. Use date instead.",Hi),Ji.months=F("months accessor is deprecated. Use month instead",ne),Ji.years=F("years accessor is deprecated. Use year instead",oe),Ji.zone=F("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()})),Ji.isDSTShifted=F("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!D(this._isDSTShifted))return this._isDSTShifted;var t,e={};return W(e,this),(e=Qe(e))._a?(t=e._isUTC?G(e._a):Ve(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++)dt(t[i])!==dt(e[i])&&s++;return s+r}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Zi=_.prototype;function Xi(t,e,i,n){var r=Ie(),s=G().set(n,e);return r[i](s,t)}function _i(t,e,i){if(Y(t)&&(e=t,t=void 0),t=t||"",null!=e)return Xi(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Xi(t,n,i,"month");return r}function qi(t,e,i,n){"boolean"==typeof t?(Y(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,Y(e)&&(i=e,e=void 0),e=e||"");var r,s=Ie(),o=t?s._week.dow:0,a=[];if(null!=i)return Xi(e,(i+o)%7,n,"day");for(r=0;r<7;r++)a[r]=Xi(e,(r+o)%7,n,"day");return a}Zi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return Z(n)?n.call(e,i):n},Zi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(Q).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Zi.invalidDate=function(){return this._invalidDate},Zi.ordinal=function(t){return this._ordinal.replace("%d",t)},Zi.preparse=Bi,Zi.postformat=Bi,Zi.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return Z(r)?r(t,e,i,n):r.replace(/%d/i,t)},Zi.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return Z(i)?i(e):i.replace(/%s/i,e)},Zi.set=function(t){var e,i;for(i in t)P(t,i)&&(Z(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)},Zi.eras=function(){var t,e,i,n=this._eras||Ie("en")._eras;for(t=0,e=n.length;t<e;++t)switch("string"==typeof n[t].since&&(i=C(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=C(n[t].until).startOf("day").valueOf(),n[t].until=i.valueOf()}return n},Zi.erasParse=function(t,e,i){var n,r,s,o,a,h=this.eras();for(t=t.toUpperCase(),n=0,r=h.length;n<r;++n)if(s=h[n].name.toUpperCase(),o=h[n].abbr.toUpperCase(),a=h[n].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(o===t)return h[n];break;case"NNNN":if(s===t)return h[n];break;case"NNNNN":if(a===t)return h[n]}else if([s,o,a].indexOf(t)>=0)return h[n]},Zi.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?C(t.since).year():C(t.since).year()+(e-t.offset)*i},Zi.erasAbbrRegex=function(t){return P(this,"_erasAbbrRegex")||Ai.call(this),t?this._erasAbbrRegex:this._erasRegex},Zi.erasNameRegex=function(t){return P(this,"_erasNameRegex")||Ai.call(this),t?this._erasNameRegex:this._erasRegex},Zi.erasNarrowRegex=function(t){return P(this,"_erasNarrowRegex")||Ai.call(this),t?this._erasNarrowRegex:this._erasRegex},Zi.months=function(t,e){return t?k(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Vt).test(e)?"format":"standalone"][t.month()]:k(this._months)?this._months:this._months.standalone},Zi.monthsShort=function(t,e){return t?k(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Vt.test(e)?"format":"standalone"][t.month()]:k(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Zi.monthsParse=function(t,e,i){var n,r,s;if(this._monthsParseExact)return ee.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=G([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}},Zi.monthsRegex=function(t){return this._monthsParseExact?(P(this,"_monthsRegex")||re.call(this),t?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=te),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Zi.monthsShortRegex=function(t){return this._monthsParseExact?(P(this,"_monthsRegex")||re.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=$t),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Zi.week=function(t){return de(t,this._week.dow,this._week.doy).week},Zi.firstDayOfYear=function(){return this._week.doy},Zi.firstDayOfWeek=function(){return this._week.dow},Zi.weekdays=function(t,e){var i=k(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?fe(i,this._week.dow):t?i[t.day()]:i},Zi.weekdaysMin=function(t){return!0===t?fe(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Zi.weekdaysShort=function(t){return!0===t?fe(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Zi.weekdaysParse=function(t,e,i){var n,r,s;if(this._weekdaysParseExact)return be.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=G([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}},Zi.weekdaysRegex=function(t){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||Ce.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=we),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Zi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||Ce.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ve),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Zi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||Ce.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ye),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Zi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Zi.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},Te("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===dt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),C.lang=F("moment.lang is deprecated. Use moment.locale instead.",Te),C.langData=F("moment.langData is deprecated. Use moment.localeData instead.",Ie);var Qi=Math.abs;function zi(t,e,i,n){var r=mi(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function Vi(t){return t<0?Math.floor(t):Math.ceil(t)}function $i(t){return 4800*t/146097}function tn(t){return 146097*t/4800}function en(t){return function(){return this.as(t)}}var nn=en("ms"),rn=en("s"),sn=en("m"),on=en("h"),an=en("d"),hn=en("w"),un=en("M"),ln=en("Q"),dn=en("y");function cn(t){return function(){return this.isValid()?this._data[t]:NaN}}var fn=cn("milliseconds"),mn=cn("seconds"),pn=cn("minutes"),gn=cn("hours"),wn=cn("days"),vn=cn("months"),yn=cn("years"),bn=Math.round,Cn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kn(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}var xn=Math.abs;function Pn(t){return(t>0)-(t<0)||+t}function Mn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,r,s,o,a,h=xn(this._milliseconds)/1e3,u=xn(this._days),l=xn(this._months),d=this.asSeconds();return d?(t=lt(h/60),e=lt(t/60),h%=60,t%=60,i=lt(l/12),l%=12,n=h?h.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",s=Pn(this._months)!==Pn(d)?"-":"",o=Pn(this._days)!==Pn(d)?"-":"",a=Pn(this._milliseconds)!==Pn(d)?"-":"",r+"P"+(i?s+i+"Y":"")+(l?s+l+"M":"")+(u?o+u+"D":"")+(e||t||h?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(h?a+n+"S":"")):"P0D"}var Dn=ni.prototype;Dn.isValid=function(){return this._isValid},Dn.abs=function(){var t=this._data;return this._milliseconds=Qi(this._milliseconds),this._days=Qi(this._days),this._months=Qi(this._months),t.milliseconds=Qi(t.milliseconds),t.seconds=Qi(t.seconds),t.minutes=Qi(t.minutes),t.hours=Qi(t.hours),t.months=Qi(t.months),t.years=Qi(t.years),this},Dn.add=function(t,e){return zi(this,t,e,1)},Dn.subtract=function(t,e){return zi(this,t,e,-1)},Dn.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=st(t))||"quarter"===t||"year"===t)switch(i=this._months+$i(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(tn(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)}},Dn.asMilliseconds=nn,Dn.asSeconds=rn,Dn.asMinutes=sn,Dn.asHours=on,Dn.asDays=an,Dn.asWeeks=hn,Dn.asMonths=un,Dn.asQuarters=ln,Dn.asYears=dn,Dn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*dt(this._months/12):NaN},Dn._bubble=function(){var t,e,i,n,r,s=this._milliseconds,o=this._days,a=this._months,h=this._data;return s>=0&&o>=0&&a>=0||s<=0&&o<=0&&a<=0||(s+=864e5*Vi(tn(a)+o),o=0,a=0),h.milliseconds=s%1e3,t=lt(s/1e3),h.seconds=t%60,e=lt(t/60),h.minutes=e%60,i=lt(e/60),h.hours=i%24,o+=lt(i/24),a+=r=lt($i(o)),o-=Vi(tn(r)),n=lt(a/12),a%=12,h.days=o,h.months=a,h.years=n,this},Dn.clone=function(){return mi(this)},Dn.get=function(t){return t=st(t),this.isValid()?this[t+"s"]():NaN},Dn.milliseconds=fn,Dn.seconds=mn,Dn.minutes=pn,Dn.hours=gn,Dn.days=wn,Dn.weeks=function(){return lt(this.days()/7)},Dn.months=vn,Dn.years=yn,Dn.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,r=!1,s=Cn;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(s=Object.assign({},Cn,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),n=function(t,e,i,n){var r=mi(t).abs(),s=bn(r.as("s")),o=bn(r.as("m")),a=bn(r.as("h")),h=bn(r.as("d")),u=bn(r.as("M")),l=bn(r.as("w")),d=bn(r.as("y")),c=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||o<=1&&["m"]||o<i.m&&["mm",o]||a<=1&&["h"]||a<i.h&&["hh",a]||h<=1&&["d"]||h<i.d&&["dd",h];return null!=i.w&&(c=c||l<=1&&["w"]||l<i.w&&["ww",l]),(c=c||u<=1&&["M"]||u<i.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=e,c[3]=+t>0,c[4]=n,kn.apply(null,c)}(this,!r,s,i=this.localeData()),r&&(n=i.pastFuture(+this,n)),i.postformat(n)},Dn.toISOString=Mn,Dn.toString=Mn,Dn.toJSON=Mn,Dn.locale=xi,Dn.localeData=Mi,Dn.toIsoString=F("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Mn),Dn.lang=Pi,tt("X",0,0,"unix"),tt("x",0,0,"valueOf"),Et("x",St),Et("X",/[+-]?\d+(\.\d{1,3})?/),Rt("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t))})),Rt("x",(function(t,e,i){i._d=new Date(dt(t))})),
8
+ //! moment.js
9
+ C.version="2.29.4",y=Ve,C.fn=Ji,C.min=function(){return ei("isBefore",[].slice.call(arguments,0))},C.max=function(){return ei("isAfter",[].slice.call(arguments,0))},C.now=function(){return Date.now?Date.now():+new Date},C.utc=G,C.unix=function(t){return Ve(1e3*t)},C.months=function(t,e){return _i(t,e,"months")},C.isDate=S,C.locale=Te,C.invalid=A,C.duration=mi,C.isMoment=O,C.weekdays=function(t,e,i){return qi(t,e,i,"weekdays")},C.parseZone=function(){return Ve.apply(null,arguments).parseZone()},C.localeData=Ie,C.isDuration=ri,C.monthsShort=function(t,e){return _i(t,e,"monthsShort")},C.weekdaysMin=function(t,e,i){return qi(t,e,i,"weekdaysMin")},C.defineLocale=Ae,C.updateLocale=function(t,e){if(null!=e){var i,n,r=Ye;null!=Se[t]&&null!=Se[t].parentLocale?Se[t].set(X(Se[t]._config,e)):(null!=(n=Ee(t))&&(r=n._config),e=X(r,e),null==n&&(e.abbr=t),(i=new _(e)).parentLocale=Se[t],Se[t]=i),Te(t)}else null!=Se[t]&&(null!=Se[t].parentLocale?(Se[t]=Se[t].parentLocale,t===Te()&&Te(t)):null!=Se[t]&&delete Se[t]);return Se[t]},C.locales=function(){return j(Se)},C.weekdaysShort=function(t,e,i){return qi(t,e,i,"weekdaysShort")},C.normalizeUnits=st,C.relativeTimeRounding=function(t){return void 0===t?bn:"function"==typeof t&&(bn=t,!0)},C.relativeTimeThreshold=function(t,e){return void 0!==Cn[t]&&(void 0===e?Cn[t]:(Cn[t]=e,"s"===t&&(Cn.ss=e-1),!0))},C.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"},C.prototype=Ji,C.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Yn={[s.ACTIVE]:{label:"active"},[s.ACTIVATED]:{label:"activated"},[s.EXPIRED]:{label:"expired"},[s.CONSUMED]:{label:"consumed"},[s.DISABLED]:{label:"disabled"},[s.ENABLED]:{label:"enabled"}},Sn=class{constructor(e){t(this,e),this.tableId="powerupsHistory",this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.language="en",this.endpoint=void 0,this.session=void 0,this.pageSize=20,this.translationUrl="",this.isLoading=!0,this.powerups=[],this.offset=0,this.limit=this.pageSize,this.total=void 0}onReloadPageByType(t){const{limit:e,offset:i,tableId:n}=t.detail;n===this.tableId&&(this.offset=i,this.limit=e)}async loadData(){if(this.endpoint&&this.session){this.isLoading=!0,this.abortController&&this.abortController.abort(),this.abortController=new AbortController;try{const t=new URL(`${this.endpoint}/v1/elevate/powerups?pagination=offset=${this.offset},limit=${this.limit}`);let e={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"GET",signal:this.abortController.signal};t.searchParams.append("language",this.language),t.searchParams.append("status",`${s.CONSUMED},${s.EXPIRED}`);const i=await fetch(t,e);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const{data:n,total:r}=await i.json();this.powerups=n,this.total=r}catch(t){"AbortError"!==t.name&&(console.error("Failed to load powerups history:",t),window.postMessage({type:"peHistoryLoaderError",error:t}))}finally{this.abortController.signal.aborted||(this.isLoading=!1)}}}render(){var t;return e("div",{key:"e76dea03946f2a9cddeeb9b3df3a8e51a5331128",class:"PowerUpsContainer",ref:t=>this.stylingContainer=t},this.isLoading?e("p",null,"Loading..."):(null===(t=this.powerups)||void 0===t?void 0:t.length)?[e("ul",{class:"PowerUps"},this.powerups.map((t=>{var i;return e("li",{class:"PowerUpItem"},e("div",{class:"HistoryLeft"},e("div",{class:"DisplayName"}," ",t.displayName||"-"," "),e("div",{class:"Details"},e("span",{class:"BoostingPeriod"},e("span",{class:"Period"},t.boostingPeriod.minutes||t.boostingPeriod.numberOfRounds," "),v(t.boostingPeriod.mode===o.TIME_PERIOD?"min":"rounds",this.language)," "),e("span",{class:"Multiplier"},"| X",t.multiplier.coefficient," "),e("span",{class:"MultiplierMode"},"| ",v(t.multiplier.mode===a.XP?"xp":"coins",this.language)," "))),e("div",{class:"HistoryRight"},e("div",null,v((null===(i=Yn[t.status])||void 0===i?void 0:i.label)||t.status,this.language)),e("div",null,C(t.startTime).format("YYYY-MM-DD HH:mm:ss")," ")))}))),e("div",{class:"Pagination"},this.total&&this.total>this.limit&&e("bonus-pagination-nav",{offset:this.offset,limit:this.limit,secondaryArrowsActive:!0,"table-id":this.tableId,total:this.total}))]:e("div",{class:"EmptyPowerups"},e("div",{class:"Icon",innerHTML:'<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n<rect width="52" height="52" fill="url(#pattern0_1132_30534)"/>\n<defs>\n<pattern id="pattern0_1132_30534" patternContentUnits="objectBoundingBox" width="1" height="1">\n<use xlink:href="#image0_1132_30534" transform="scale(0.01)"/>\n</pattern>\n<image id="image0_1132_30534" width="100" height="100" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAHlElEQVR4nO2daYwURRTH/4tnvPCI9xE1ahQTNZmp6gXRzar4wTtGvPWLUeIVPxgVNWbizqvZRdTAGoioEQwaFDWK0YBCvMUbJWJIBD8QOUIEowhEQFjzepu4WaZ6qnp6tqub+iX9hexUV/W/Xh3vvSoAj8fj8Xg8Ho/H4/F4ikapB8PLNYiyws2S8LBU6JEKU4TCNKkwWSjUhML9ZYWrRRfOPGUy9sm6zoWio4IDpMI1/NElYalU6LN5hMI2SVgoFUgqdI6djT2yblP+6ENbuYqLJGGmJGy0FSFWIMIqQZgoFUZk3Uz3qWBYmXC5VPg2TRFinvmS0J51s51EKnQKws9DJMRgq5kjqzgp62/gBOcoHC4VXs5CiEGibBaERzsq2BO7K6KK84XCykQfUOGvaGibJxVms6hC4Q0ehiJL25Kw3M9kD47D7oYkPBCugEw/FmGFJEwVCteafDDu6SWF06XCOKnwqiBssBDmd1nFBdgtqGAY7xcMe+u2aDjr5N8189pSBfsJhRsF4VNDUbaw+Ci8GISZBuP5v5LwXKsmWqlwnlD4yECU7WxhKCqSMNVgaPom6EZpKOrDFiMJaxqJUq7iOhQNSag0aji7PYZ6lROu8ghzDYavC1EURA2XScKOGKvYyH+T8VBabTjRF2H1Va7ieElYFzNxr3dlt1wm3BXNG9olce73KZKwIKaBf7PnFg4RiRJnKY8gr4STZsySNlAYAweJPMM6QTYF3TgReUNWcFCDFcyDcHuvNC9mWT4HeUMojI8RYx672OEwIys4Iq5DlQgSeaGjgn11jRGEzeVunIwcEEYl9UPu28gLcROjIDxmWx6HYjlimDTaF/Z2hek8jFr9sA9tkvCxZqm+I+jCGcgDugCTUFg/agIOtCkrchCujsqYbbvsjIaen6LO8N3obhxi8/uyQkfM0NsD1+HQaIx1PG5rGUJh7aAyZplaSmQZSwb17IW2lhK65Ot3sJXOx+j5o2sE2d5OOLYZMWxEqStGQlFEFTfpOhlbEFxGKnyhqfx80zJ4WBKEZXEbtDhRYsX4/5luWp+zJmJ/3sRqyumC0yk7hK2aio+zKUvUMDKKClqJYijGEv47q/oQXtdY2+dwFfaIaj9eDadZl2cpSqvEiNp2p0aQrSMq2BsuIhXu1lR6TdIyTUUZNQHHtEqMRosVZ5e/ktCrEWRBM+WaiGKQUJdYjJ3zWkzixFVwEUF4T1PhKU2XbSJKi8TYiS6VlXOJ4SI8wbXSZS2SiZKKGEyY6VjfOqtwEUFYrOlB96b1Do63C8IfRmIQlpYIR6f1bkF4SzOHTYKLSIXlmo9zW5rvCWq4wkCMjTzRp/leXcaMILwAF9Hl5rKzESkx0Ddl8Fj7vpLsRYTCM3ARqfC1pgc9lIEYqYsiCO9r2qfgItp0GsKTzZZtuOmr+9g4JBu0b5HGQsbDRdh0NR/lnQwsI11L6UOb1p9VxQ1wEV5NaXrosqRlmrpDJOHKJL4vU0o9OEFX7lBlWlpTUjhXM2TtEE/gKNvybH1TSR2SJrAV6NpmG3QbMtjJxmky9SpetsyPNRqm6uwzDPcp1sOXVHhe1yHgMoLwgebjvWIZD1lsahkJd/TG7hy2KD4sqmlXL1wmINyh+QCbbEw7ULg+PJZgKYaJKByJ5IikRV3GxAjrpmNxJ6KGw3ReUaFwu01ZGlGMfVP1RLEVIyyHMEszH23gg0BwnejMX93V1ljLCXWQKPaRvgGiJBEj6MKpMZZqHAbOlKCGQGviNdxiXV6/KIuTem1DUQjLbMVgJGFGzHDVibwgFT7RWMmqJMvEZt0fSX7PQuqOJwiF711Ph921MfpDOpPhOKVp2Esq/KCzDr7cBnlDN5dIFopwKRxGKjylE0MQfmz2VHAmcGKcJPypEWWdq9dZcO/XWjfn9FYxGnmFl7oxk+LyQOFIuLYgiUmYEIQXkWvYS6oJfcr+HrcorZh3GmLEul0IK9orOBR55+wKDo4J7/KK5Zesh6+ghktiU4kIW3mhgiLAFiAaXb1EWJfJ0egKhvGZlZjNX/gECvehCFhF+ihcffVaH6xJSLQL/9CgXk1HPJ2gibDrakm4tVVnwqMhlCThn0Z1EQov5WoD2IoYuBy4CmPvcUoWw1E/TkjQLsV3tYzeXO43kogh+ucU7URf57a3WXzu3TbxLUySJtwTnRXU3tIw6NnOV9CiCNiEXUs9GC4JbyaxHM4jFoSnOcWI877Yknji5Wv6BOFZnht0J7AaDFFrZQ0XowgkOp/RhzbObDQeRlr5EOamne2YGc0elmlnNwv7vuJuDWrRIwi/8WXNKAppnlyShHad674Fz2o+SsBnCFEU2BfVipNLQb9P6bWkt4vGWoTCl3zmkW+cQJFolRgDYd8ROyjDvNrk145v4csvwx15grOOuWAoxKgXNCpXMSq6uoP/J4R3BeGrKHPxVw4ohR++/98nRQc1O3ORiNAMSZPYPC3Ai+EQXgyH8GI4hBfDIbwYDuHFcAgvhkN4MRzCi+EQXgyH8GI4hBcjLzfBDfDaupaDW3g4WcBbhuuieDEcEsWL4Q5hnpOfMzwej8fj8Xg8Ho/H4/GgyPwHN+MBWXHaP7AAAAAASUVORK5CYII="/>\n</defs>\n</svg>\n'}),e("span",{class:"NoPowerTitle"},v("nothingHere",this.language)),e("span",null,v("noPowerUps",this.language)),e("span",null,v("gotoShop",this.language)),e("div",null)))}handleClientStylingChange(t,e){t!=e&&h(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&u(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&l(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleNewTranslations(){w(this.translationUrl)}async componentWillLoad(){this.translationUrl&&await w(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&l(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&h(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)),this.loadData()}disconnectedCallback(){this.abortController&&this.abortController.abort(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}static get watchers(){return{offset:["loadData"],limit:["loadData"],language:["loadData"],session:["loadData"],endpoint:["loadData"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],translationUrl:["handleNewTranslations"]}}};Sn.style=":host{display:block}.PowerUpsContainer{font-size:0.95rem;display:flex;width:100%;flex-direction:column}.PowerUpsContainer .EmptyPowerups{align-items:center;justify-content:center;font-weight:400;font-size:1.2rem;line-height:24px;text-align:center;vertical-align:middle;width:max-content;margin:auto;display:flex;flex-direction:column;padding:50px}.PowerUpsContainer .EmptyPowerups .Icon,.PowerUpsContainer .EmptyPowerups .NoPowerTitle{text-align:center}.PowerUpsContainer .EmptyPowerups .Icon svg,.PowerUpsContainer .EmptyPowerups .NoPowerTitle svg{width:40px}.PowerUpsContainer .EmptyPowerups .NoPowerTitle{font-size:1.2rem;font-weight:bold;margin:10px}.PowerUpsContainer .PowerUps{width:100%;display:flex;gap:20px;flex-direction:column;padding-inline-start:0}.PowerUpsContainer .PowerUpItem{display:flex;justify-content:space-between;border:2px solid var(--emw--button-border-color-secondary, rgba(188, 252, 177, 0.0509803922));opacity:1;font-size:0.9rem;border-radius:12px;padding:20px;gap:4px;text-transform:uppercase}.PowerUpsContainer .PowerUpItem .HistoryRight{text-align:right}.PowerUpsContainer .PowerUpItem .HistoryLeft,.PowerUpsContainer .PowerUpItem .HistoryRight{display:flex;flex-direction:column;gap:8px}.PowerUpsContainer .PowerUpItem .DisplayName{text-transform:none;font-weight:500;line-height:100%;vertical-align:middle}.PowerUpsContainer .Pagination{display:flex;justify-content:center}.PowerUpsContainer .Pagination .PageNavigation .PageArrow.Disabled{opacity:0.5}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem:hover{background-color:transparent}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem{width:22px;height:22px;line-height:22px;opacity:1;border-radius:22px;padding:6px;border:2px solid var(--emw--button-border-color-secondary, rgba(188, 252, 177, 0.0509803922))}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem.Active{border-radius:22px;border:2px solid var(--emw--color-powup-green, #24B24E);color:var(--emw--color-powup-green, #24B24E);background-color:transparent}";const Un=["pt-br","en","es-mx","hu","hr"],Nn={en:{firstPage:"|<",lastPage:">|",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hu:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hr:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"pt-br":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"es-mx":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"}},Gn=(t,e,i)=>{const n=e;let r=Nn[void 0!==n&&Un.includes(n)?n:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");r=r.replace(i,e)}return r},En=class{constructor(e){t(this,e),this.reloadPageEmitter=i(this,"reloadPageByType",7),this.total=1,this.limit=10,this.offset=0,this.tableId="default",this.language="en",this.translationUrl="",this.arrowsActive=!0,this.secondaryArrowsActive=!0,this.displayPageNumbers=!0,this.displayRangeOfTotal=void 0,this.navItemAccount=5,this.endPageIndex=0,this.pagesArray=void 0,this.currentPage=1,this.showAsEllipsisMid=!this.arrowsActive}pageLimitChangedHandler(t){this.limit=t.detail.limit?t.detail.limit:this.limit,this.currentPage=1,this.offset=0,this.updatePageStatus(),"pageLimitChanged"==t.type&&this.reloadPageEmitter.emit({offset:0,limit:this.limit,tableId:this.tableId})}goTo(t){"..."==t||0==t||parseInt(t.toString(),10)>this.endPageIndex+1||(this.currentPage=t,this.reloadPageEmitter.emit({offset:(this.currentPage-1)*this.limit,limit:this.limit,tableId:this.tableId}))}renderPageList(){return e("ul",{class:"PaginationArea"},this.pagesArray.map((t=>e("li",{class:"PageItem "+(this.currentPage==t?"Active":""),onClick:()=>{this.goTo(t)}},t))))}renderStylingWrapper(){return e("general-styling-wrapper",{targetTranslations:Nn,translationUrl:this.translationUrl})}generateNavItemsByType(t,e){if(this.endPageIndex<t)return Array.from({length:this.endPageIndex+1},((t,e)=>e+1));let i=[],n=Math.floor(t/2);const r=this.endPageIndex+1;return e?this.currentPage<n||this.currentPage>r-n+1?(i=Array.from({length:n},((t,e)=>e+1)),i.push("..."),i=i.concat(Array.from({length:n},((t,e)=>this.endPageIndex-1+e)))):this.currentPage==n?(i=Array.from({length:n+1},((t,e)=>e+1)),i.push("..."),i=i.concat(Array.from({length:n-1},((t,e)=>this.endPageIndex+e)))):this.currentPage==r-n+1?(i=Array.from({length:n-1},((t,e)=>e+1)),i.push("..."),i=i.concat(Array.from({length:n+1},((t,e)=>this.endPageIndex-2+e)))):(i=[1,"..."],i=i.concat([this.currentPage-1],[this.currentPage],[this.currentPage+1]),i=i.concat(["...",r])):this.currentPage<=t-n?(i=Array.from({length:t-1},((t,e)=>e+1)),i.push("...")):this.currentPage>r-(t-n)?(i=Array.from({length:t-1},((e,i)=>r-(t-2)+i)),i.unshift("...")):(i=Array.from({length:t-2},((t,e)=>this.currentPage+e-n+1)),i.push("..."),i.unshift("...")),i}updatePageStatus(){this.endPageIndex=Math.ceil(this.total/this.limit)-1,this.endPageIndex=this.endPageIndex<0?this.endPageIndex=0:this.endPageIndex,this.pagesArray=this.generateNavItemsByType(this.navItemAccount,this.showAsEllipsisMid)}componentWillRender(){this.currentPage=Math.floor(this.offset/this.limit)+1,this.updatePageStatus()}render(){return e("div",{key:"77610598f3ce40796b8d486fd27725fc68b61878",class:"PageNavigationWrapper"},this.displayRangeOfTotal&&this.total>0&&e("span",{key:"879bd2f268a18ea3c9cb2bb706d23c8db0634592",class:"PageOfMessage"},Gn("pageOfTotal",this.language,{values:{start:(this.currentPage-1)*this.limit+1,end:this.currentPage*this.limit>this.total?this.total:this.currentPage*this.limit,total:this.total}})),e("div",{key:"590af1c2fcb70d782b318c505deb507a8376e13b",class:"PageNavigation"},this.arrowsActive&&e("div",{key:"2d4746e889a43d6199ad7f305676d79bdbaa4f04",class:"PageArrow FirstPage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(1)}},Gn("firstPage",this.language)),this.secondaryArrowsActive&&e("span",{key:"89b588abdf7b77e3cdc00f44bbad27c432146f97",class:"PageArrow PrePage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(this.currentPage-1)}},Gn("prePage",this.language)),this.displayPageNumbers&&this.renderPageList(),this.secondaryArrowsActive&&e("span",{key:"097710df72de15cd1b0c03dfb2ac7870c99e12c0",class:"PageArrow NextPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.currentPage+1)}},Gn("nextPage",this.language)),this.arrowsActive&&e("div",{key:"a61296f3e627bc012545618c0fda239a1356da1f",class:"PageArrow LastPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.endPageIndex+1)}}," ",Gn("lastPage",this.language)," "),this.renderStylingWrapper()))}};En.style=":host{display:block}.PageNavigationWrapper{display:flex;flex-direction:row;height:100%;align-content:center}.PageNavigationWrapper .PageOfMessage{margin:5px;padding:5px 6px;margin:2px}.PageNavigation{display:flex;flex-direction:row;align-items:center}.PageNavigation .PageArrow{color:var(--emw--color-primary, #777676);padding:6px 5px;cursor:pointer;font-weight:bold;width:1.2rem;text-align:center}.PageNavigation .PageArrow.Disabled{color:var(--emw--color-gray-100, #e0e0e0)}ul.PaginationArea{list-style:none;padding:0px;margin:0px;display:flex}ul.PaginationArea li.PageItem{cursor:pointer;padding:5px 6px;margin:2px;width:0.9rem;text-align:center}ul.PaginationArea li.PageItem.Active,ul.PaginationArea li.PageItem:hover{font-weight:bold;color:var(--emw--color-primary, #f5f1f1);background-color:var(--emw--color-secondary, #8c8989);border-radius:0.3rem}";const Tn=class{constructor(e){t(this,e),this.expireTime=void 0,this.displayTime=void 0}componentWillLoad(){this.timer=setInterval((()=>this.updateDisplayTime()),1e3),this.updateDisplayTime()}disconnectedCallback(){clearInterval(this.timer)}startTimeChanged(){clearInterval(this.timer),this.timer=setInterval((()=>this.updateDisplayTime()),1e3),this.updateDisplayTime()}updateDisplayTime(){const t=C(),e=C(this.expireTime);if(!e.isValid())return this.displayTime="Invalid date",void clearInterval(this.timer);const i=C.duration(e.diff(t));if(i.asMilliseconds()<=0)return this.displayTime="00:00:00",void clearInterval(this.timer);const n=Math.floor(i.asHours());if(n>=48)this.displayTime=`${Math.floor(i.asDays())} days`;else if(n>=24)this.displayTime="1 day";else{const t=n,e=i.minutes(),r=i.seconds();this.displayTime=[t,e,r].map((t=>String(t).padStart(2,"0"))).join(":")}}render(){return e("span",{key:"b242dc33814c57b4d72e2ef165dc116187e3312e"},this.displayTime)}static get watchers(){return{expireTime:["startTimeChanged"]}}},An=class{constructor(e){t(this,e),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const t=new Image;t.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0,t.onload=null)},t.src=this.src}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver((t=>{t.forEach((t=>{if(t.isIntersecting){const e=t.target.__uxComponent;e&&(e.shouldLoad=!0,e.handleSrc()),window.EMUxObserver.unobserve(t.target)}}))}),{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return e(n,{key:"f506ba73852f257ad80bf59ca177d2065a5f365e",class:"HostContainer"},!this.imgLoaded&&e("ui-skeleton",{key:"564ebfab701f827ddc2debccb7615926dbc9e876",class:"UiContainer",structure:"image",width:"100%",height:"100%"}),e("img",{key:"2188ca4494c10587f064acc5459ffc468948f497",ref:t=>this.image=t,src:this.shouldLoad?this.src:void 0,onLoad:()=>this.imgLoaded=!0,style:this.styles,class:"UiContainer "+(this.imgLoaded?"Visible":"Hidden"),alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}get el(){return r(this)}static get watchers(){return{src:["handleSrc"]}}};An.style=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}";const In=class{constructor(e){t(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(t,e){e!==t&&this.handleStructure(t)}handleStylingProps(t){switch(typeof t){case"number":return 0===t?0:`${t}px`;case"undefined":default:return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(t)||t.endsWith("px")||t.endsWith("%")?t:"unset"}}handleStructure(t){switch(t){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return e("div",{class:"SkeletonContainer"},e("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return e("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return e("div",{class:"SkeletonContainer"},e("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return e("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((t,i)=>e("div",{key:i,class:"SkeletonText "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return e("div",{class:"SkeletonContainer"},e("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return e("div",{class:"SkeletonContainer"},e("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let t="";switch(this.structure){case"logo":t=`\n :host {\n --emw-skeleton-logo-width: ${this.stylingValue.width};\n --emw-skeleton-logo-height: ${this.stylingValue.height};\n --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"image":t=`\n :host {\n --emw-skeleton-image-width: ${this.stylingValue.width};\n --emw-skeleton-image-height: ${this.stylingValue.height};\n --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"title":t=`\n :host {\n --emw-skeleton-title-width: ${this.stylingValue.width};\n --emw-skeleton-title-height: ${this.stylingValue.height};\n --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"text":t=`\n :host {\n --emw-skeleton-text-width: ${this.stylingValue.width};\n --emw-skeleton-text-height: ${this.stylingValue.height};\n --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"rectangle":t=`\n :host {\n --emw-skeleton-rectangle-width: ${this.stylingValue.width};\n --emw-skeleton-rectangle-height: ${this.stylingValue.height};\n --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"circle":t=`\n :host {\n --emw-skeleton-circle-size: ${this.stylingValue.size};\n }\n `;break;default:t=""}return e(n,{key:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},e("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},t),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};In.style=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";export{p as bonus_elevate_powerups,Sn as bonus_elevate_powerups_history,En as bonus_pagination_nav,Tn as time_count,An as ui_image,In as ui_skeleton}
@@ -0,0 +1,2 @@
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=[],b=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?w(v):f.raf(v))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},v=()=>{$(m),$(y),(d=m.length>0)&&f.raf(v)},w=e=>h().then(e),g=b(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function k(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:()=>O,unwrap:()=>P,unwrapErr:()=>R});var O=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=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},R=e=>{if(e.isErr)return e.value;throw e.value},L=(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?T(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=T(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},T=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),U={},W=e=>n(e).$hostElement$,A=(e,t,n)=>{const l=W(e);return{emit:e=>D(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},D=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},F=new WeakMap,H=e=>"sc-"+e.v,N=(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=G(n),s=G(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);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||(e[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(V);t=t.replace(_,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},q=/\s/,G=e=>e?e.split(q):[],V="Capture",_=RegExp(V+"$"),z=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||S,s=t.u||S;for(const e of B(Object.keys(o)))e in s||N(l,e,o[e],void 0,n,t.l);for(const e of B(Object.keys(s)))N(l,e,o[e],s[e],n,t.l)};function B(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var I=!1,J=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else if(o=l.$=a.createElement(l.m),z(null,l,I),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=J(e,l,r),s&&o.appendChild(s);return o["s-hn"]=x,o},K=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=J(null,n,o),r&&(l[o].$=r,ee(i,r,t)))},Q=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;Z(t),e&&e.remove()}}},X=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),Y=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(z(e,t,I),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(X(h,m,o))Y(h,m,o),h=t[++i],m=l[++c];else if(X(p,y,o))Y(p,y,o),p=t[--f],y=l[--d];else if(X(h,y,o))Y(h,y,o),ee(e,h.$,p.$.nextSibling),h=t[++i],y=l[--d];else if(X(p,m,o))Y(p,m,o),ee(e,p.$,h.$),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=J(t&&t[c],n,u):(Y(r,m,o),t[u]=void 0,s=r.$),m=l[++c]):(s=J(t&&t[c],n,c),m=l[++c]),s&&ee(h.$.parentNode,s,h.$)}i>f?K(e,null==l[d+1]?null:l[d+1].$,n,l,c,d):c>d&&Q(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),K(l,null,t,s,0,s.length-1)):null!==o&&Q(o,0,o.length-1)):e.i!==r&&(l.data=r)},Z=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Z)},ee=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),te=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},ne=(e,t)=>{if(e.l|=16,!(4&e.l))return te(e,e.j),g((()=>le(e,t)));e.l|=512},le=(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.k&&(e.k.map((([e,t])=>ae(n,e,t))),e.k=void 0),l=ae(n,"componentWillLoad")),l=oe(l,(()=>ae(n,"componentWillRender"))),oe(l,(()=>re(e,n,t)))},oe=(e,t)=>se(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),se=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,re=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=H(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=F.get(e=e.head||e);if(r||F.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.C)?n:k(a);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}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&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ie(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ce(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ie=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.M||T(null,null),r=(e=>e&&e.m===U)(t)?t:L(null,null,t);if(x=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.$=s.$=l.shadowRoot||l,M=l["s-sc"],Y(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},ce=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l?ae(n,"componentDidUpdate"):(e.l|=64,fe(t),ae(n,"componentDidLoad"),e.R(t),l||ue()),e.S&&(e.S(),e.S=void 0),512&e.l&&w((()=>ne(e,!1))),e.l&=-517},ue=()=>{fe(a.documentElement),w((()=>D(u,"appload",{detail:{namespace:"bonus-elevate-powerups-lobby"}})))},ae=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},fe=e=>e.classList.add("hydrated"),he=(e,t,l)=>{var o,r;const i=e.prototype;if(t.L||t.T||e.watchers){e.watchers&&!t.T&&(t.T=e.watchers);const c=Object.entries(null!=(o=t.L)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).U.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.v}" 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.U.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.L[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.U.set(t,l),a)){if(o.T&&128&u){const e=o.T[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&ne(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.T)?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.T)?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},pe=e=>{ae(e,"disconnectedCallback")},de=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,y=a.head,b=y.querySelector("meta[charset]"),$=a.createElement("style"),v=[];let w,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],v:l[1],L:l[2],W:l[3]};4&c.l&&(S=!0),c.L=l[2],c.W=l[3],c.P=[],c.T=null!=(o=l[4])?o:{};const u=c.v,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,U:new Map};l.A=new Promise((e=>l.R=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.v}! 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,me(this,e,c.W)),w&&(clearTimeout(w),w=null),g?v.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)me(e,t,l.W),(null==t?void 0:t.t)||(null==t?void 0:t.A)&&t.A.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){te(t,t.j=n);break}}l.L&&Object.entries(l.L).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.D){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.D;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.v}#${t.F}" was not found`);l.isProxied||(n.T=l.watchers,he(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=H(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=()=>ne(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.H&&(e.H.map((e=>e())),e.H=void 0),(null==e?void 0:e.t)?pe(e.t):(null==e?void 0:e.A)&&e.A.then((()=>pe(e.t)))}})()))}componentOnReady(){return n(this).A}};c.D=e[0],d.includes(u)||m.get(u)||(h.push(u),m.define(u,he(a,c,1)))}))})),h.length>0&&(S&&($.textContent+=c),$.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(o=f.C)?o:k(a);null!=e&&$.setAttribute("nonce",e),y.insertBefore($,b?b.nextSibling:y.firstChild)}g=!1,v.length?v.map((e=>e.connectedCallback())):f.jmp((()=>w=setTimeout(ue,30)))},me=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=be(e,n),r=ye(t,o),i=$e(n);f.ael(s,l,r,i),(t.H=t.H||[]).push((()=>f.rel(s,l,r,i)))}))},ye=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.k=e.k||[]).push([t,n])}catch(e){s(e)}},be=(e,t)=>8&t?u:e,$e=e=>({passive:!!(1&e),capture:!!(2&e)}),ve=e=>f.C=e;export{U as H,de as b,A as c,W as g,L as h,h as p,l as r,ve as s}
@@ -0,0 +1 @@
1
+ export{B as BonusElevatePowerupsLobby}from"./bonus-elevate-powerups-lobby-09c95672.js";import"./index-64ff3a3a.js";
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ const globalScripts = () => {};
4
+
5
+ exports.globalScripts = globalScripts;
@@ -0,0 +1,256 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-d5c2977d.js');
4
+
5
+ const StyleCacheKey = '__WIDGET_GLOBAL_STYLE_CACHE__';
6
+
7
+ /**
8
+ * @name setClientStyling
9
+ * @description Method used to create and append to the passed element of the widget a style element with the content received
10
+ * @param {HTMLElement} stylingContainer The reference element of the widget
11
+ * @param {string} clientStyling The style content
12
+ */
13
+ function setClientStyling(stylingContainer, clientStyling) {
14
+ if (stylingContainer) {
15
+ const sheet = document.createElement('style');
16
+ sheet.innerHTML = clientStyling;
17
+ stylingContainer.appendChild(sheet);
18
+ }
19
+ }
20
+
21
+ /**
22
+ * @name setClientStylingURL
23
+ * @description Method used to create and append to the passed element of the widget a style element with the content fetched from a given URL
24
+ * @param {HTMLElement} stylingContainer The reference element of the widget
25
+ * @param {string} clientStylingUrl The URL of the style content
26
+ */
27
+ function setClientStylingURL(stylingContainer, clientStylingUrl) {
28
+ if (!stylingContainer || !clientStylingUrl) return;
29
+
30
+ const url = new URL(clientStylingUrl);
31
+
32
+ fetch(url.href)
33
+ .then((res) => res.text())
34
+ .then((data) => {
35
+ const cssFile = document.createElement('style');
36
+ cssFile.innerHTML = data;
37
+ if (stylingContainer) {
38
+ stylingContainer.appendChild(cssFile);
39
+ }
40
+ })
41
+ .catch((err) => {
42
+ console.error('There was an error while trying to load client styling from URL', err);
43
+ });
44
+ }
45
+
46
+ /**
47
+ * @name setStreamLibrary
48
+ * @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
49
+ * @param {HTMLElement} stylingContainer The highest element of the widget
50
+ * @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
51
+ * @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
52
+ * @param {boolean} useAdoptedStyleSheets A flag to gradually enable testing of adoptedStyleSheets
53
+ */
54
+ function setStreamStyling(stylingContainer, domain, subscription, useAdoptedStyleSheets = false) {
55
+ if (!window.emMessageBus) return;
56
+
57
+ const supportAdoptStyle = 'adoptedStyleSheets' in Document.prototype;
58
+
59
+ if (!supportAdoptStyle || !useAdoptedStyleSheets) {
60
+ subscription = getStyleTagSubscription(stylingContainer, domain);
61
+
62
+ return subscription;
63
+ }
64
+
65
+ if (!window[StyleCacheKey]) {
66
+ window[StyleCacheKey] = {};
67
+ }
68
+ subscription = getAdoptStyleSubscription(stylingContainer, domain);
69
+
70
+ const originalUnsubscribe = subscription.unsubscribe.bind(subscription);
71
+ const wrappedUnsubscribe = () => {
72
+ if (window[StyleCacheKey][domain]) {
73
+ const cachedObject = window[StyleCacheKey][domain];
74
+ cachedObject.refCount > 1
75
+ ? (cachedObject.refCount = cachedObject.refCount - 1)
76
+ : delete window[StyleCacheKey][domain];
77
+ }
78
+
79
+ originalUnsubscribe();
80
+ };
81
+ subscription.unsubscribe = wrappedUnsubscribe;
82
+
83
+ return subscription;
84
+ }
85
+
86
+ function getStyleTagSubscription(stylingContainer, domain) {
87
+ const sheet = document.createElement('style');
88
+
89
+ return window.emMessageBus.subscribe(domain, (data) => {
90
+ if (stylingContainer) {
91
+ sheet.innerHTML = data;
92
+ stylingContainer.appendChild(sheet);
93
+ }
94
+ });
95
+ }
96
+
97
+ function getAdoptStyleSubscription(stylingContainer, domain) {
98
+ return window.emMessageBus.subscribe(domain, (data) => {
99
+ if (!stylingContainer) return;
100
+
101
+ const shadowRoot = stylingContainer.getRootNode();
102
+ const cacheStyleObject = window[StyleCacheKey];
103
+ let cachedStyle = cacheStyleObject[domain] && cacheStyleObject[domain].sheet;
104
+
105
+ if (!cachedStyle) {
106
+ cachedStyle = new CSSStyleSheet();
107
+ cachedStyle.replaceSync(data);
108
+ cacheStyleObject[domain] = {
109
+ sheet: cachedStyle,
110
+ refCount: 1
111
+ };
112
+ } else {
113
+ cacheStyleObject[domain].refCount = cacheStyleObject[domain].refCount + 1;
114
+ }
115
+
116
+ const currentSheets = shadowRoot.adoptedStyleSheets || [];
117
+ if (!currentSheets.includes(cachedStyle)) {
118
+ shadowRoot.adoptedStyleSheets = [...currentSheets, cachedStyle];
119
+ }
120
+ });
121
+ }
122
+
123
+ const DEFAULT_LANGUAGE = 'en';
124
+ const TRANSLATIONS = {
125
+ en: {
126
+ history: 'History',
127
+ available: 'Available',
128
+ }
129
+ };
130
+ const getTranslations = (url) => {
131
+ return new Promise((resolve) => {
132
+ fetch(url)
133
+ .then((res) => res.json())
134
+ .then((data) => {
135
+ Object.keys(data).forEach((lang) => {
136
+ if (!TRANSLATIONS[lang]) {
137
+ TRANSLATIONS[lang] = {};
138
+ }
139
+ for (let key in data[lang]) {
140
+ TRANSLATIONS[lang][key] = data[lang][key];
141
+ }
142
+ });
143
+ resolve(true);
144
+ });
145
+ });
146
+ };
147
+ const translate = (key, customLang, values) => {
148
+ const lang = customLang;
149
+ let translation = TRANSLATIONS[(lang !== undefined) && (lang in TRANSLATIONS) ? lang : DEFAULT_LANGUAGE][key];
150
+ if (values !== undefined) {
151
+ for (const [key, value] of Object.entries(values.values)) {
152
+ const regex = new RegExp(`{${key}}`, 'g');
153
+ translation = translation.replace(regex, value);
154
+ }
155
+ }
156
+ return translation;
157
+ };
158
+
159
+ exports.MultiplierMode = void 0;
160
+ (function (MultiplierMode) {
161
+ MultiplierMode[MultiplierMode["COINS"] = 1] = "COINS";
162
+ MultiplierMode[MultiplierMode["XP"] = 2] = "XP";
163
+ })(exports.MultiplierMode || (exports.MultiplierMode = {}));
164
+ exports.BoostingPeriodMode = void 0;
165
+ (function (BoostingPeriodMode) {
166
+ BoostingPeriodMode[BoostingPeriodMode["TIME_PERIOD"] = 1] = "TIME_PERIOD";
167
+ BoostingPeriodMode[BoostingPeriodMode["NUMBER_OF_ROUNDS"] = 2] = "NUMBER_OF_ROUNDS";
168
+ })(exports.BoostingPeriodMode || (exports.BoostingPeriodMode = {}));
169
+ exports.PowerUpStatus = void 0;
170
+ (function (PowerUpStatus) {
171
+ PowerUpStatus[PowerUpStatus["ACTIVE"] = 0] = "ACTIVE";
172
+ PowerUpStatus[PowerUpStatus["ACTIVATED"] = 1] = "ACTIVATED";
173
+ PowerUpStatus[PowerUpStatus["EXPIRED"] = 2] = "EXPIRED";
174
+ PowerUpStatus[PowerUpStatus["CONSUMED"] = 3] = "CONSUMED";
175
+ PowerUpStatus[PowerUpStatus["DISABLED"] = 4] = "DISABLED";
176
+ PowerUpStatus[PowerUpStatus["ENABLED"] = 6] = "ENABLED";
177
+ })(exports.PowerUpStatus || (exports.PowerUpStatus = {}));
178
+
179
+ const bonusElevatePowerupsLobbyCss = ":host{display:block}.PowerUpsLobby{padding:10px}.PowerUpsLobby .Desc{display:none !important}.PowerUpsLobby .TabItem{position:relative;cursor:pointer;padding:10px 20px;border-bottom:2px solid transparent}.PowerUpsLobby .TabItem::after{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:2px;background-image:linear-gradient(180deg, var(--emw--color-powup-orange1, #EA9018) 0%, var(--emw--color-powup-orange1, #E0A84E) 100%);transform:scaleX(0)}.PowerUpsLobby .TabItem.Active::after{transform:scaleX(1)}.PowerUpsLobby .TabTitle{display:flex;flex-direction:row;text-transform:uppercase}.PowerUpsLobby .TabTitle .Tab{flex:1;padding:10px 20px;text-align:center;cursor:pointer}.PowerUpsLobby .TabTitle .Active1{border-bottom:2px solid;border-image-source:linear-gradient(180deg, var(--emw--color-powup-orange1, #EA9018) 0%, var(--emw--color-powup-orange1, #E0A84E) 100%);border-image-slice:1}.PowerUpsLobby .TabContent{margin-top:20px}";
180
+ const BonusElevatePowerupsLobbyStyle0 = bonusElevatePowerupsLobbyCss;
181
+
182
+ const BonusElevatePowerupsLobby = class {
183
+ constructor(hostRef) {
184
+ index.registerInstance(this, hostRef);
185
+ this.tabsInfo = {
186
+ 'available': { tabId: 'available', offset: 0, limit: this.pageSize },
187
+ 'history': { tabId: 'history', offset: 0, limit: this.pageSize
188
+ }
189
+ };
190
+ this.mbSource = undefined;
191
+ this.clientStyling = undefined;
192
+ this.clientStylingUrl = undefined;
193
+ this.translationUrl = undefined;
194
+ this.language = 'en';
195
+ this.endpoint = undefined;
196
+ this.session = undefined;
197
+ this.pageSize = 20;
198
+ this.activeTab = this.tabsInfo.available.tabId;
199
+ }
200
+ onTabClick(tab) {
201
+ this.activeTab = tab;
202
+ }
203
+ render() {
204
+ return index.h("div", { key: '28c29b3160d58b90e8d98f0375f2c51763872158', class: 'PowerUpsLobby', ref: (el) => (this.stylingContainer = el) }, index.h("div", { key: 'fa242490d51a5e38e2c600e57dadb9f2708e21f2', class: 'TabTitle' }, index.h("span", { key: '041edb872b4fa22a3822309918767e7f3de9aa3d', class: `Tab TabItem ${this.activeTab === 'available' ? 'Active' : ''}`, onClick: this.onTabClick.bind(this, 'available') }, translate('available', this.language)), index.h("span", { key: '8888c5d09305653b18e82d6ef3a1ae26aceca314', class: `Tab TabItem ${this.activeTab === 'history' ? 'Active' : ''}`, onClick: this.onTabClick.bind(this, 'history') }, translate('history', this.language))), index.h("div", { key: '82132c243f8cd3531c5ca0cb320c4723ffc0f0b4', class: 'Desc' }, " ", exports.MultiplierMode.XP, " "), index.h("div", { key: '8b638cce7dfe2d0983c82874aef59b1e8ec474dc', class: 'TabContent' }, this.activeTab === 'available' &&
205
+ index.h("bonus-elevate-powerups", { key: '5e236af908d621ccb8af1ab61ab62fd8db7694a5', endpoint: this.endpoint, session: this.session, language: this.language, "mb-source": this.mbSource, "translation-url": this.translationUrl, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "page-size": this.pageSize }), this.activeTab === 'history' &&
206
+ index.h("bonus-elevate-powerups-history", { key: '7d58ac9a7374f67bea7bd43541dd37b0b2968019', endpoint: this.endpoint, session: this.session, language: this.language, "mb-source": this.mbSource, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "page-size": this.pageSize })));
207
+ }
208
+ handleClientStylingChange(newValue, oldValue) {
209
+ if (newValue != oldValue) {
210
+ setClientStyling(this.stylingContainer, this.clientStyling);
211
+ }
212
+ }
213
+ handleClientStylingUrlChange(newValue, oldValue) {
214
+ if (newValue != oldValue) {
215
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
216
+ }
217
+ }
218
+ handleMbSourceChange(newValue, oldValue) {
219
+ if (newValue != oldValue) {
220
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
221
+ }
222
+ }
223
+ handleNewTranslations() {
224
+ getTranslations(this.translationUrl);
225
+ }
226
+ async componentWillLoad() {
227
+ if (this.translationUrl) {
228
+ await getTranslations(this.translationUrl);
229
+ }
230
+ }
231
+ componentDidLoad() {
232
+ if (this.stylingContainer) {
233
+ if (this.mbSource)
234
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
235
+ if (this.clientStyling)
236
+ setClientStyling(this.stylingContainer, this.clientStyling);
237
+ if (this.clientStylingUrl)
238
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
239
+ }
240
+ }
241
+ disconnectedCallback() {
242
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
243
+ }
244
+ static get watchers() { return {
245
+ "clientStyling": ["handleClientStylingChange"],
246
+ "clientStylingUrl": ["handleClientStylingUrlChange"],
247
+ "mbSource": ["handleMbSourceChange"],
248
+ "translationUrl": ["handleNewTranslations"]
249
+ }; }
250
+ };
251
+ BonusElevatePowerupsLobby.style = BonusElevatePowerupsLobbyStyle0;
252
+
253
+ exports.BonusElevatePowerupsLobby = BonusElevatePowerupsLobby;
254
+ exports.setClientStyling = setClientStyling;
255
+ exports.setClientStylingURL = setClientStylingURL;
256
+ exports.setStreamStyling = setStreamStyling;