@everymatrix/casino-header-controller-nd 1.90.27 → 1.90.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoHamburgerMenuNd-CuOroj3Y.js → CasinoHamburgerMenuNd-BMk9GglK.js} +593 -599
- package/components/CasinoHamburgerMenuNd-BozWwIQ8.js +1333 -0
- package/components/CasinoHamburgerMenuNd-CNokYpoT.cjs +1 -0
- package/components/CasinoHeaderControllerNd-DKsX8MAr.cjs +18 -0
- package/components/{CasinoHeaderControllerNd-BiDGzPtn.js → CasinoHeaderControllerNd-DRvnolX4.js} +1494 -1421
- package/components/{CasinoHeaderControllerNd-CHAFeQ-G.js → CasinoHeaderControllerNd-HRfpIRzv.js} +1398 -1327
- package/components/{PlayerAccountBalanceModalNd-DwhvnS-B.cjs → PlayerAccountBalanceModalNd-BlCAv-W5.cjs} +1 -1
- package/components/{PlayerAccountBalanceModalNd-D0CWoVA3.js → PlayerAccountBalanceModalNd-DH1bQ5K5.js} +40 -40
- package/components/{PlayerAccountBalanceModalNd-CMv5mwmK.js → PlayerAccountBalanceModalNd-DbVrQUfl.js} +102 -102
- package/components/{PlayerDeposit-CNAsTv6k.js → PlayerDeposit-BtCrxtQJ.js} +12 -12
- package/components/{PlayerDeposit-loJvKp78.cjs → PlayerDeposit-C6WQdvWV.cjs} +1 -1
- package/components/{PlayerDeposit-DFfvOVtM.js → PlayerDeposit-CcK-S_I7.js} +30 -30
- package/es2015/casino-header-controller-nd.cjs +1 -1
- package/es2015/casino-header-controller-nd.js +1 -1
- package/esnext/casino-header-controller-nd.js +1 -1
- package/lazy/{casino-hamburger-menu-nd-BPDYqmRL.js → casino-hamburger-menu-nd-BRlNkj_S.js} +1 -1
- package/lazy/{casino-hamburger-menu-nd-Ph1Fx2Kl.js → casino-hamburger-menu-nd-CR625XQx.js} +1 -1
- package/lazy/{casino-hamburger-menu-nd-BtiACLBX.cjs → casino-hamburger-menu-nd-CyPRbuAF.cjs} +1 -1
- package/lazy/{player-account-balance-modal-nd-IZBAft1T.cjs → player-account-balance-modal-nd-1_AX0n2O.cjs} +1 -1
- package/lazy/{player-account-balance-modal-nd-kV2PjYEL.js → player-account-balance-modal-nd-CzIfvk-v.js} +1 -1
- package/lazy/{player-account-balance-modal-nd-Dho2TM3F.js → player-account-balance-modal-nd-DrAe58Qw.js} +1 -1
- package/lazy/{player-deposit-D6Sg3BWr.js → player-deposit-CpAD9lsm.js} +1 -1
- package/lazy/{player-deposit-CEFFQhy2.cjs → player-deposit-DsqqqW7O.cjs} +1 -1
- package/lazy/{player-deposit-BNWSkpVt.js → player-deposit-DwpIwufX.js} +1 -1
- package/package.json +1 -1
- package/components/CasinoHamburgerMenuNd-BH6BG36R.js +0 -1291
- package/components/CasinoHamburgerMenuNd-NxKPo2-K.cjs +0 -1
- package/components/CasinoHeaderControllerNd-Cy4RqjxM.cjs +0 -18
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _e=(n,t,a)=>new Promise((r,l)=>{var s=u=>{try{c(a.next(u))}catch(d){l(d)}},o=u=>{try{c(a.throw(u))}catch(d){l(d)}},c=u=>u.done?r(u.value):Promise.resolve(u.value).then(s,o);c((a=a.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHeaderControllerNd-DKsX8MAr.cjs");function ye(n,t){e.addMessages(n,t)}function tt(n){e.$locale.set(n)}const we={en:{language:"Select Language"},"zh-hk":{language:"選擇語言"},fr:{language:"Sélectionner la langue"},tr:{language:"Dil Seçin"},ro:{language:"Selecteaza limba"},es:{language:"Seleccionar idioma"},pt:{language:"Selecione o idioma"},hr:{language:"Izaberi jezik"},"pt-br":{language:"Escolha o seu idioma"},"es-mx":{language:"Escoger idioma"},"en-us":{language:"Select Language"}};function at(n){e.append_styles(n,"svelte-1wijvt","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.Skeleton{animation:skeleton-loading 0.6s linear infinite alternate}@keyframes skeleton-loading{0%{background:linear-gradient(0deg, rgba(var(--emw--color-primary-rgb, 35, 178, 78), 0.2) 0%, transparent 100%)}12%{background:linear-gradient(0deg, rgba(var(--emw--color-primary-rgb, 35, 178, 78), 0.225) 0%, transparent 100%)}25%{background:linear-gradient(0deg, rgba(var(--emw--color-primary-rgb, 35, 178, 78), 0.25) 0%, transparent 100%)}33%{background:linear-gradient(0deg, rgba(var(--emw--color-primary-rgb, 35, 178, 78), 0.275) 0%, transparent 100%)}50%{background:linear-gradient(0deg, rgba(var(--emw--color-primary-rgb, 35, 178, 78), 0.3) 0%, transparent 100%)}63%{background:linear-gradient(0deg, rgba(var(--emw--color-primary-rgb, 35, 178, 78), 0.325) 0%, transparent 100%)}75%{background:linear-gradient(0deg, rgba(var(--emw--color-primary-rgb, 35, 178, 78), 0.35) 0%, transparent 100%)}88%{background:linear-gradient(0deg, rgba(var(--emw--color-primary-rgb, 35, 178, 78), 0.375) 0%, transparent 100%)}100%{background:linear-gradient(0deg, rgba(var(--emw--color-primary-rgb, 35, 178, 78), 0.4) 0%, transparent 100%)}}@keyframes increaseTransparency{0%{opacity:0}25%{opacity:0.25}75%{opacity:0.75}100%{opacity:1}}@keyframes decreaseTransparency{100%{opacity:1}75%{opacity:0.75}25%{opacity:0.25}0%{opacity:0}}@keyframes growWidthPercent{from{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes growWidth{from{transform:translateY(0)}to{transform:translateY(0)}}@keyframes decreaseWidth{from{transform:translateX(1)}to{transform:translateX(0)}}.NavIcon{width:30px;height:28px;position:relative;margin:3px auto;transform:rotate(0deg);transition:transform 0.2s ease-in-out;cursor:pointer}.NavIcon span{display:block;position:absolute;height:3px;width:100%;background:#ffffff;border-radius:9px;opacity:1;left:0;transform:rotate(0deg);transition:transform 0.2s ease-in-out, opacity 0.2s ease-in-out}.NavIcon span:nth-child(1){top:0px;width:80%}.NavIcon span:nth-child(2){top:9px}.NavIcon span:nth-child(3){top:18px}.NavIcon.Open span:nth-child(1){top:9px;width:100%;transform:rotate(135deg);transition:transform 0.3s ease-in-out}.NavIcon.Open span:nth-child(2){opacity:0;left:-60px}.NavIcon.Open span:nth-child(3){top:9px;transform:rotate(-135deg);transition:transform 0.3s ease-in-out}.SelectedOption{display:flex;align-items:center;justify-content:center}.SelectedOption .TriangleActive,.SelectedOption .TriangleInactive{display:block;margin:0 0 0 10px;transform:rotateX(0deg);transition:transform 0.2s ease-in-out}.SelectedOption .TriangleActive svg,.SelectedOption .TriangleInactive svg{margin:-2px 0px;fill:white}.SelectedOption .TriangleActive{transform:rotateX(180deg);transition:transform 0.2s ease-in-out}.SelectedOption .TriangleActive:hover{transform:rotateX(180deg);transition:transform 0.2s ease-in-out}.FlagIcon>img{width:20px;height:14px;margin-right:8px;border-radius:2px}.LanguageSelector{padding:5px 0;margin-bottom:0;display:flex;justify-content:space-between;background:linear-gradient(90deg, rgba(35, 178, 78, 0.9) 0%, rgba(0, 61, 93, 0.9) 100%);transition:transform 0.2s linear;height:44px}.LanguageSelector span{display:inline;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));opacity:0.8;padding:5px 0;display:flex;align-items:center;gap:15px;font-size:14px}.LanguageSelector:active{transition:all 0.2s ease}.LanguageSelector:active span{transition:all 0.1s linear;opacity:1}.LanguageSelector.Open{box-shadow:inset 0 -3.25em 0 0 var(--emw--color-primary)}.LanguageSelector .LanguageSelectorTitle{margin:0 20px}.LanguageSelector .LanguageDropdown{margin-right:16px;display:inline-block}.LanguageSelector .OptionList{position:absolute;background:linear-gradient(90deg, rgba(35, 178, 78, 0.1) 0%, rgba(0, 61, 93, 0.1) 100%);min-width:180px;z-index:1;overflow-y:auto;display:flex;flex-direction:column-reverse;bottom:44px;left:0;gap:5px;padding-bottom:5px;width:100%;height:0px;transition:transform 0.2s linear}.LanguageSelector .OptionList.Open{transition:transform 0.2s linear;height:auto;background-color:var(--emw--color-background-secondary, #000000);overflow:auto}.LanguageSelector .OptionList .LanguageOption{display:flex;border:2px solid #22B04E;border-radius:13px;align-items:center;opacity:0.2;height:0px;background:linear-gradient(90deg, rgba(35, 178, 78, 0.2) 0%, rgba(0, 61, 93, 0.2) 100%);margin:0 5px;transition:transform 0.3s linear}.LanguageSelector .OptionList .LanguageOption.Open{height:50px;opacity:1;padding:10px 5px}.LanguageSelector .OptionList .LanguageOption:active,.LanguageSelector .OptionList .LanguageOption:hover{background:linear-gradient(90deg, rgb(35, 178, 78) 0%, rgb(0, 61, 93) 100%);transform:scale(1.03);transition:transform 0.2s ease-in-out}.LanguageSelector .OptionList .LanguageOption:active span,.LanguageSelector .OptionList .LanguageOption:hover span{color:black}.ItemLanguage{height:34px;width:100%;text-align:left;line-height:34px;background:transparent;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));border:none}.ItemLanguage option{color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.HamburgerModalWindow{display:flex;align-items:flex-start;position:fixed;width:100%;height:100%;z-index:100;z-index:999999;top:0;left:0;background-color:rgba(0, 0, 0, 0.85);animation:increaseTransparency 0.2s ease-in forwards}.HamburgerModalWindow>span{opacity:0}.HamburgerModalWindow .HamburgerModalContainer{max-width:992px;position:relative;background:var(--emw--color-primary);display:flex;flex-direction:column;justify-content:space-between;height:100%;padding:0;border-top:0;border-radius:0;overflow-x:hidden;overflow-y:scroll}.HamburgerModalWindow .HamburgerModalContainer.ActiveHamburgerMenu{animation:growWidth 0.2s forwards;transform-origin:left;will-change:transform}.HamburgerModalWindow .HamburgerModalContainer.Closing{animation:decreaseWidth 0.2s backwards;transform-origin:right;animation-fill-mode:backwards;will-change:transform}.HamburgerModalWindow .HamburgerModalContainer .Separator{width:100%;height:5px;background:rgb(0, 0, 0);background:linear-gradient(90deg, rgb(13, 78, 2) 0%, rgb(35, 172, 77) 50%, rgb(13, 78, 2) 100%);z-index:3}.HamburgerModalWindow .HamburgerModalContainer .HamburgerHeader{display:none}.HamburgerModalWindow .HamburgerModalContainer .HamburgerHeader .Logo{max-width:90%}.HamburgerModalWindow .HamburgerModalContainer .HamburgerHeader .UserProfileWrapper{appearance:none;-webkit-appearance:none;background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;display:flex;align-items:center;gap:0.5rem;cursor:pointer;text-decoration:none;width:100%}.HamburgerModalWindow .HamburgerModalContainer .HamburgerHeader .UserIcon{position:relative}.HamburgerModalWindow .ModalCloseBtn{position:relative;top:25px;width:30px;height:30px;opacity:1;margin-left:7px;margin-right:9px;cursor:pointer}.HamburgerModalWindow .ModalCloseBtn .NavIcon .Open{width:90vw}.HamburgerModalWindow .ModalCloseBtn svg{width:20px;height:20px;padding:2px}.HamburgerModalWindow .HamburgerPrimaryMenu,.HamburgerModalWindow .HamburgerSecondaryMenu{font-size:12px;display:flex;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));transform-origin:left;transform:scaleX(0);animation:growWidthPercent 0.2s both;animation-delay:0.1s}.HamburgerModalWindow .HamburgerPrimaryMenu li,.HamburgerModalWindow .HamburgerSecondaryMenu li{transition:transform 150ms ease-in-out, opacity 150ms ease-in-out}.HamburgerModalWindow .HamburgerPrimaryMenu img,.HamburgerModalWindow .HamburgerSecondaryMenu img{max-width:40px}.HamburgerModalWindow .HamburgerPrimaryMenu{background:var(--emw--header-color-menu-bg, var(--emw--color-background-secondary, #000000));white-space:nowrap;overflow-x:scroll;list-style:none;width:90vw;text-transform:uppercase;font-size:11px;transition:all 0.2s;height:80px}.HamburgerModalWindow .HamburgerPrimaryMenu>li{max-width:125px;padding:14px 25px;display:inline-block}.HamburgerModalWindow .HamburgerPrimaryMenu>li .ItemButton{appearance:none;-webkit-appearance:none;background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;display:block;width:100%;cursor:pointer}.HamburgerModalWindow .HamburgerPrimaryMenu>li:active{transform:scale(1.1)}.HamburgerModalWindow .HamburgerPrimaryMenu>li.ActiveItem{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04F));color:black}.HamburgerModalWindow .HamburgerPrimaryMenu .Loading{width:150px;height:86px;margin:0 2px}.HamburgerModalWindow .HamburgerPrimaryMenu .HamburgerItemContainer{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px}.HamburgerModalWindow .HamburgerPrimaryMenu .HamburgerItemContainer .HamburgerItemTag{display:none;font-size:10px;padding:2px 4px}.HamburgerModalWindow .HamburgerSecondaryMenu{margin-top:10px;list-style:none;height:calc(100% - 124px);overflow:auto;width:90vw;display:flex;flex-direction:column}.HamburgerModalWindow .HamburgerSecondaryMenu.Overlay{opacity:0.5;transition:opacity 0.2s ease-in-out}.HamburgerModalWindow .HamburgerSecondaryMenu li{padding:10px;display:flex;align-items:center;gap:15px;transition:transform 0.2s linear}.HamburgerModalWindow .HamburgerSecondaryMenu li:active{background-color:var(--emw--color-primary);transform:scale(1.1)}.HamburgerModalWindow .HamburgerSecondaryMenu li a{text-decoration:none;display:flex;align-items:center;gap:15px;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));font-size:14px}.HamburgerModalWindow .HamburgerSecondaryMenu li:not(:last-child){border-bottom:1px solid var(--emw--color-gray-300, #58586B)}.HamburgerModalWindow .HamburgerSecondaryMenu li:active a{color:var(--emw--color-primary, #22B04F)}.FlagIcon{margin-left:12px}.NoFlag{width:88%;margin:0 20px}.ActiveBonusesBadge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;border-radius:50%;background-color:var(--emw--active-bonuses-badge-bg, #FF6B00);color:var(--emw--active-bonuses-badge-color, #FFFFFF);font-size:10px;font-weight:bold;display:flex;align-items:center;justify-content:center;line-height:1;padding:1px 3px;box-sizing:border-box;pointer-events:none;z-index:1}")}function ve(n,t,a){const r=n.slice();return r[82]=t[a],r}function ke(n,t,a){const r=n.slice();return r[4]=t[a],r}function Me(n,t,a){const r=n.slice();return r[85]=t[a],r}function nt(n,t,a){const r=n.slice();return r[91]=t[a],r}function He(n,t,a){const r=n.slice();return r[88]=t[a],r}const rt=n=>({}),Le=n=>({});function Se(n){let t,a,r,l,s,o,c,u,d,w,h,m,p,g,y,b,v,M,C,T,A,V,E,U,D,x,Z,j;const G=[it,lt],I=[];function X(f,k){return f[19]?0:1}l=X(n),s=I[l]=G[l](n);function K(f,k){return f[9].length>0?ct:ot}let q=K(n),F=q(n),P=e.ensure_array_like(n[11]),H=[];for(let f=0;f<P.length;f+=1)H[f]=Ie(Me(n,P,f));let L=n[14].length>1&&Ae(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("div"),s.c(),o=e.space(),c=e.element("ul"),F.c(),u=e.space(),d=e.element("div"),w=e.space(),h=e.element("ul");for(let f=0;f<H.length;f+=1)H[f].c();p=e.space(),L&&L.c(),y=e.space(),b=e.element("span"),v=e.element("div"),M=e.element("span"),C=e.space(),T=e.element("span"),A=e.space(),V=e.element("span"),e.attr(r,"class","HamburgerHeader"),e.toggle_class(r,"LoggedIn",n[19]),e.attr(c,"class","HamburgerPrimaryMenu"),e.attr(d,"class","Separator"),e.attr(h,"class",m="HamburgerSecondaryMenu "+(n[15]?"Overlay":"")),e.attr(a,"class",g="HamburgerModalContainer "+(n[12]?"ActiveHamburgerMenu":"")+" "+(n[17]?"Closing":"")),e.attr(v,"class",E="NavIcon "+(n[18]?"":"Open")),e.attr(b,"class",U=n[12]?"ModalCloseBtn":""),e.attr(b,"role","button"),e.attr(t,"class",D="HamburgerModalWindow "+(n[17]?" Closing":""))},m(f,k){e.insert(f,t,k),e.append(t,a),e.append(a,r),I[l].m(r,null),e.append(a,o),e.append(a,c),F.m(c,null),e.append(a,u),e.append(a,d),e.append(a,w),e.append(a,h);for(let O=0;O<H.length;O+=1)H[O]&&H[O].m(h,null);e.append(a,p),L&&L.m(a,null),e.append(t,y),e.append(t,b),e.append(b,v),e.append(v,M),e.append(v,C),e.append(v,T),e.append(v,A),e.append(v,V),n[57](t),x=!0,Z||(j=e.listen(b,"click",n[23]),Z=!0)},p(f,k){let O=l;if(l=X(f),l===O?I[l].p(f,k):(e.group_outros(),e.transition_out(I[O],1,1,()=>{I[O]=null}),e.check_outros(),s=I[l],s?s.p(f,k):(s=I[l]=G[l](f),s.c()),e.transition_in(s,1),s.m(r,null)),(!x||k[0]&524288)&&e.toggle_class(r,"LoggedIn",f[19]),q===(q=K(f))&&F?F.p(f,k):(F.d(1),F=q(f),F&&(F.c(),F.m(c,null))),k[0]&33556480){P=e.ensure_array_like(f[11]);let S;for(S=0;S<P.length;S+=1){const Y=Me(f,P,S);H[S]?H[S].p(Y,k):(H[S]=Ie(Y),H[S].c(),H[S].m(h,null))}for(;S<H.length;S+=1)H[S].d(1);H.length=P.length}(!x||k[0]&32768&&m!==(m="HamburgerSecondaryMenu "+(f[15]?"Overlay":"")))&&e.attr(h,"class",m),f[14].length>1?L?L.p(f,k):(L=Ae(f),L.c(),L.m(a,null)):L&&(L.d(1),L=null),(!x||k[0]&135168&&g!==(g="HamburgerModalContainer "+(f[12]?"ActiveHamburgerMenu":"")+" "+(f[17]?"Closing":"")))&&e.attr(a,"class",g),(!x||k[0]&262144&&E!==(E="NavIcon "+(f[18]?"":"Open")))&&e.attr(v,"class",E),(!x||k[0]&4096&&U!==(U=f[12]?"ModalCloseBtn":""))&&e.attr(b,"class",U),(!x||k[0]&131072&&D!==(D="HamburgerModalWindow "+(f[17]?" Closing":"")))&&e.attr(t,"class",D)},i(f){x||(e.transition_in(s),x=!0)},o(f){e.transition_out(s),x=!1},d(f){f&&e.detach(t),I[l].d(),F.d(),e.destroy_each(H,f),L&&L.d(),n[57](null),Z=!1,j()}}}function lt(n){let t,a;const r=n[51].logo,l=e.create_slot(r,n,n[50],Le),s=l||st(n);return{c(){t=e.element("div"),s&&s.c(),e.attr(t,"class","Logo")},m(o,c){e.insert(o,t,c),s&&s.m(t,null),a=!0},p(o,c){l?l.p&&(!a||c[1]&524288)&&e.update_slot_base(l,r,o,o[50],a?e.get_slot_changes(r,o[50],c,rt):e.get_all_dirty_from_scope(o[50]),Le):s&&s.p&&(!a||c[0]&2)&&s.p(o,a?c:[-1,-1,-1,-1])},i(o){a||(e.transition_in(s,o),a=!0)},o(o){e.transition_out(s,o),a=!1},d(o){o&&e.detach(t),s&&s.d(o)}}}function it(n){let t,a,r,l,s,o,c=n[2]==="true"&&parseInt(n[3])>0,u,d,w,h,m,p,g=c&&Oe(n);return{c(){t=e.element("button"),a=e.element("span"),r=e.svg_element("svg"),l=e.svg_element("g"),s=e.svg_element("path"),o=e.space(),g&&g.c(),u=e.space(),d=e.element("span"),w=e.text(n[21]),e.attr(s,"class","a"),e.attr(s,"d","M15.5,4a3.75,3.75,0,1,0,3.75,3.75A3.761,3.761,0,0,0,15.5,4Zm0,1.429A2.321,2.321,0,1,1,13.179,7.75,2.311,2.311,0,0,1,15.5,5.429Zm0,6.429A7.7,7.7,0,0,0,8,19.714a.714.714,0,0,0,.714.714H22.286A.714.714,0,0,0,23,19.714,7.7,7.7,0,0,0,15.5,11.857Zm0,1.429A6.18,6.18,0,0,1,21.5,19H9.5A6.18,6.18,0,0,1,15.5,13.286Z"),e.attr(s,"transform","translate(0 0)"),e.attr(l,"transform","translate(-8 -4)"),e.attr(r,"xmlns","http://www.w3.org/2000/svg"),e.attr(r,"viewBox","0 0 15 16.429"),e.attr(a,"class","UserIcon"),e.attr(a,"aria-hidden","true"),e.attr(d,"class","UserFullName"),e.attr(d,"title",h=`${n[21]}`),e.attr(d,"data-username",n[6]),e.attr(d,"data-playerid",n[5]),e.attr(t,"type","button"),e.attr(t,"class","UserProfileWrapper")},m(y,b){e.insert(y,t,b),e.append(t,a),e.append(a,r),e.append(r,l),e.append(l,s),e.append(a,o),g&&g.m(a,null),e.append(t,u),e.append(t,d),e.append(d,w),m||(p=e.listen(t,"click",n[30]),m=!0)},p(y,b){b[0]&12&&(c=y[2]==="true"&&parseInt(y[3])>0),c?g?g.p(y,b):(g=Oe(y),g.c(),g.m(a,null)):g&&(g.d(1),g=null),b[0]&2097152&&e.set_data(w,y[21]),b[0]&2097152&&h!==(h=`${y[21]}`)&&e.attr(d,"title",h),b[0]&64&&e.attr(d,"data-username",y[6]),b[0]&32&&e.attr(d,"data-playerid",y[5])},i:e.noop,o:e.noop,d(y){y&&e.detach(t),g&&g.d(),m=!1,p()}}}function st(n){let t,a,r;return{c(){t=e.element("img"),e.src_url_equal(t.src,a=n[1])||e.attr(t,"src",a),e.attr(t,"alt",r=`Logo ${n[1]}`)},m(l,s){e.insert(l,t,s)},p(l,s){s[0]&2&&!e.src_url_equal(t.src,a=l[1])&&e.attr(t,"src",a),s[0]&2&&r!==(r=`Logo ${l[1]}`)&&e.attr(t,"alt",r)},d(l){l&&e.detach(t)}}}function Oe(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[3]),e.attr(t,"class","ActiveBonusesBadge")},m(r,l){e.insert(r,t,l),e.append(t,a)},p(r,l){l[0]&8&&e.set_data(a,r[3])},d(r){r&&e.detach(t)}}}function ot(n){let t,a=e.ensure_array_like(new Array(5)),r=[];for(let l=0;l<a.length;l+=1)r[l]=ut(nt(n,a,l));return{c(){for(let l=0;l<r.length;l+=1)r[l].c();t=e.empty()},m(l,s){for(let o=0;o<r.length;o+=1)r[o]&&r[o].m(l,s);e.insert(l,t,s)},p:e.noop,d(l){l&&e.detach(t),e.destroy_each(r,l)}}}function ct(n){let t,a=e.ensure_array_like(n[9]),r=[];for(let l=0;l<a.length;l+=1)r[l]=xe(He(n,a,l));return{c(){for(let l=0;l<r.length;l+=1)r[l].c();t=e.empty()},m(l,s){for(let o=0;o<r.length;o+=1)r[o]&&r[o].m(l,s);e.insert(l,t,s)},p(l,s){if(s[0]&16778752){a=e.ensure_array_like(l[9]);let o;for(o=0;o<a.length;o+=1){const c=He(l,a,o);r[o]?r[o].p(c,s):(r[o]=xe(c),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=a.length}},d(l){l&&e.detach(t),e.destroy_each(r,l)}}}function ut(n){let t;return{c(){t=e.element("div"),t.innerHTML="",e.attr(t,"class","Loading Skeleton")},m(a,r){e.insert(a,t,r)},p:e.noop,d(a){a&&e.detach(t)}}}function Ce(n){let t,a;return{c(){t=e.element("img"),e.src_url_equal(t.src,a=n[88].img)||e.attr(t,"src",a),e.attr(t,"alt","menu icon")},m(r,l){e.insert(r,t,l)},p(r,l){l[0]&512&&!e.src_url_equal(t.src,a=r[88].img)&&e.attr(t,"src",a)},d(r){r&&e.detach(t)}}}function We(n){let t,a=n[88].tag+"",r,l;return{c(){t=e.element("span"),r=e.text(a),e.attr(t,"title",l=n[88].tag),e.attr(t,"class","HamburgerItemTag")},m(s,o){e.insert(s,t,o),e.append(t,r)},p(s,o){o[0]&512&&a!==(a=s[88].tag+"")&&e.set_data(r,a),o[0]&512&&l!==(l=s[88].tag)&&e.attr(t,"title",l)},d(s){s&&e.detach(t)}}}function xe(n){var b,v;let t,a,r,l,s,o=n[88].label+"",c,u,d,w,h,m,p=((b=n[88])==null?void 0:b.img)&&Ce(n),g=((v=n[88])==null?void 0:v.tag)&&We(n);function y(){return n[52](n[88])}return{c(){t=e.element("li"),a=e.element("button"),r=e.element("div"),p&&p.c(),l=e.space(),s=e.element("p"),c=e.text(o),u=e.space(),g&&g.c(),d=e.space(),e.attr(r,"class","HamburgerItemContainer"),e.attr(a,"type","button"),e.attr(a,"class","ItemButton"),e.attr(t,"class",w=n[10]===n[88].id?"ActiveItem":"")},m(M,C){e.insert(M,t,C),e.append(t,a),e.append(a,r),p&&p.m(r,null),e.append(r,l),e.append(r,s),e.append(s,c),e.append(r,u),g&&g.m(r,null),e.append(t,d),h||(m=e.listen(a,"click",y),h=!0)},p(M,C){var T,A;n=M,(T=n[88])!=null&&T.img?p?p.p(n,C):(p=Ce(n),p.c(),p.m(r,l)):p&&(p.d(1),p=null),C[0]&512&&o!==(o=n[88].label+"")&&e.set_data(c,o),(A=n[88])!=null&&A.tag?g?g.p(n,C):(g=We(n),g.c(),g.m(r,null)):g&&(g.d(1),g=null),C[0]&1536&&w!==(w=n[10]===n[88].id?"ActiveItem":"")&&e.attr(t,"class",w)},d(M){M&&e.detach(t),p&&p.d(),g&&g.d(),h=!1,m()}}}function Fe(n){let t,a;return{c(){t=e.element("img"),e.src_url_equal(t.src,a=n[85].img)||e.attr(t,"src",a),e.attr(t,"alt","menu icon")},m(r,l){e.insert(r,t,l)},p(r,l){l[0]&2048&&!e.src_url_equal(t.src,a=r[85].img)&&e.attr(t,"src",a)},d(r){r&&e.detach(t)}}}function Ie(n){var h;let t,a,r,l=n[85].label+"",s,o,c,u,d=((h=n[85])==null?void 0:h.img)&&Fe(n);function w(...m){return n[53](n[85],...m)}return{c(){t=e.element("li"),d&&d.c(),a=e.space(),r=e.element("p"),s=e.text(l),o=e.space()},m(m,p){e.insert(m,t,p),d&&d.m(t,null),e.append(t,a),e.append(t,r),e.append(r,s),e.append(t,o),c||(u=e.listen(t,"click",w),c=!0)},p(m,p){var g;n=m,(g=n[85])!=null&&g.img?d?d.p(n,p):(d=Fe(n),d.c(),d.m(t,a)):d&&(d.d(1),d=null),p[0]&2048&&l!==(l=n[85].label+"")&&e.set_data(s,l)},d(m){m&&e.detach(t),d&&d.d(),c=!1,u()}}}function Ae(n){let t,a,r=n[22]("language")+"",l,s,o,c,u;function d(m,p){return m[0]!=="true"?dt:gt}let w=d(n),h=w(n);return{c(){t=e.element("div"),a=e.element("span"),l=e.text(r),s=e.space(),h.c(),e.attr(a,"class","LanguageSelectorTitle"),e.attr(t,"class",o="LanguageSelector "+(n[15]?"Open":""))},m(m,p){e.insert(m,t,p),e.append(t,a),e.append(a,l),e.append(t,s),h.m(t,null),c||(u=e.listen(t,"click",n[28]),c=!0)},p(m,p){p[0]&4194304&&r!==(r=m[22]("language")+"")&&e.set_data(l,r),w===(w=d(m))&&h?h.p(m,p):(h.d(1),h=w(m),h&&(h.c(),h.m(t,null))),p[0]&32768&&o!==(o="LanguageSelector "+(m[15]?"Open":""))&&e.attr(t,"class",o)},d(m){m&&e.detach(t),h.d(),c=!1,u()}}}function gt(n){let t,a,r,l,s,o,c,u=n[29](n[20])+"",d,w,h,m,p,g,y,b=n[15]&&Te(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("span"),l=e.element("img"),o=e.space(),c=e.element("span"),d=e.text(u),w=e.space(),h=e.element("span"),m=e.svg_element("svg"),p=e.svg_element("path"),y=e.space(),b&&b.c(),e.src_url_equal(l.src,s=`http://purecatamphetamine.github.io/country-flag-icons/3x2/${n[29](n[20])}.svg`)||e.attr(l,"src",s),e.attr(r,"class","FlagIcon"),e.attr(c,"class","LanguageName"),e.attr(p,"id","arrow"),e.attr(p,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),e.attr(p,"transform","translate(-274.511 -441.088)"),e.attr(p,"fill","#d1d1d1"),e.attr(m,"xmlns","http://www.w3.org/2000/svg"),e.attr(m,"width","14"),e.attr(m,"height","6.835"),e.attr(m,"viewBox","0 0 14 6.835"),e.attr(h,"class",g="TriangleInactive "+(n[15]?"TriangleActive":"")),e.attr(a,"class","SelectedOption Item ItemLanguage"),e.attr(t,"class","LanguageDropdown")},m(v,M){e.insert(v,t,M),e.append(t,a),e.append(a,r),e.append(r,l),e.append(a,o),e.append(a,c),e.append(c,d),e.append(a,w),e.append(a,h),e.append(h,m),e.append(m,p),e.append(t,y),b&&b.m(t,null)},p(v,M){M[0]&1064960&&!e.src_url_equal(l.src,s=`http://purecatamphetamine.github.io/country-flag-icons/3x2/${v[29](v[20])}.svg`)&&e.attr(l,"src",s),M[0]&1048576&&u!==(u=v[29](v[20])+"")&&e.set_data(d,u),M[0]&32768&&g!==(g="TriangleInactive "+(v[15]?"TriangleActive":""))&&e.attr(h,"class",g),v[15]?b?b.p(v,M):(b=Te(v),b.c(),b.m(t,null)):b&&(b.d(1),b=null)},d(v){v&&e.detach(t),b&&b.d()}}}function dt(n){let t,a,r,l=e.ensure_array_like(n[14]),s=[];for(let o=0;o<l.length;o+=1)s[o]=Ne(ke(n,l,o));return{c(){t=e.element("select");for(let o=0;o<s.length;o+=1)s[o].c();e.attr(t,"class","Item ItemLanguage NoFlag"),n[20]===void 0&&e.add_render_callback(()=>n[54].call(t))},m(o,c){e.insert(o,t,c);for(let u=0;u<s.length;u+=1)s[u]&&s[u].m(t,null);e.select_option(t,n[20],!0),a||(r=[e.listen(t,"change",n[54]),e.listen(t,"change",n[55])],a=!0)},p(o,c){if(c[0]&16384){l=e.ensure_array_like(o[14]);let u;for(u=0;u<l.length;u+=1){const d=ke(o,l,u);s[u]?s[u].p(d,c):(s[u]=Ne(d),s[u].c(),s[u].m(t,null))}for(;u<s.length;u+=1)s[u].d(1);s.length=l.length}c[0]&1064960&&e.select_option(t,o[20])},d(o){o&&e.detach(t),e.destroy_each(s,o),a=!1,e.run_all(r)}}}function Te(n){let t,a,r=e.ensure_array_like(n[14]),l=[];for(let s=0;s<r.length;s+=1)l[s]=Pe(ve(n,r,s));return{c(){t=e.element("div");for(let s=0;s<l.length;s+=1)l[s].c();e.attr(t,"class",a="OptionList "+(n[16]?"Open":""))},m(s,o){e.insert(s,t,o);for(let c=0;c<l.length;c+=1)l[c]&&l[c].m(t,null)},p(s,o){if(o[0]&671170560){r=e.ensure_array_like(s[14]);let c;for(c=0;c<r.length;c+=1){const u=ve(s,r,c);l[c]?l[c].p(u,o):(l[c]=Pe(u),l[c].c(),l[c].m(t,null))}for(;c<l.length;c+=1)l[c].d(1);l.length=r.length}o[0]&65536&&a!==(a="OptionList "+(s[16]?"Open":""))&&e.attr(t,"class",a)},d(s){s&&e.detach(t),e.destroy_each(l,s)}}}function Pe(n){let t,a,r,l,s,o,c=n[29](n[82])+"",u,d,w,h,m;function p(){return n[56](n[82])}return{c(){t=e.element("div"),a=e.element("span"),r=e.element("img"),s=e.space(),o=e.element("span"),u=e.text(c),d=e.space(),e.src_url_equal(r.src,l=`http://purecatamphetamine.github.io/country-flag-icons/3x2/${n[29](n[82])}.svg`)||e.attr(r,"src",l),e.attr(a,"class","FlagIcon"),e.attr(o,"class","LanguageName"),e.attr(t,"class",w="LanguageOption "+(n[16]?"Open":""))},m(g,y){e.insert(g,t,y),e.append(t,a),e.append(a,r),e.append(t,s),e.append(t,o),e.append(o,u),e.append(t,d),h||(m=e.listen(t,"click",p),h=!0)},p(g,y){n=g,y[0]&16384&&!e.src_url_equal(r.src,l=`http://purecatamphetamine.github.io/country-flag-icons/3x2/${n[29](n[82])}.svg`)&&e.attr(r,"src",l),y[0]&16384&&c!==(c=n[29](n[82])+"")&&e.set_data(u,c),y[0]&65536&&w!==(w="LanguageOption "+(n[16]?"Open":""))&&e.attr(t,"class",w)},d(g){g&&e.detach(t),h=!1,m()}}}function Ne(n){let t,a=n[4].slice(-2)+"",r,l;return{c(){t=e.element("option"),r=e.text(a),t.__value=l=n[4],e.set_input_value(t,t.__value),t.selected=!0},m(s,o){e.insert(s,t,o),e.append(t,r)},p(s,o){o[0]&16384&&a!==(a=s[4].slice(-2)+"")&&e.set_data(r,a),o[0]&16384&&l!==(l=s[4])&&(t.__value=l,e.set_input_value(t,t.__value))},d(s){s&&e.detach(t)}}}function mt(n){let t,a,r=n[13]===!0&&Se(n);return{c(){t=e.element("div"),r&&r.c()},m(l,s){e.insert(l,t,s),r&&r.m(t,null),n[58](t),a=!0},p(l,s){l[13]===!0?r?(r.p(l,s),s[0]&8192&&e.transition_in(r,1)):(r=Se(l),r.c(),e.transition_in(r,1),r.m(t,null)):r&&(e.group_outros(),e.transition_out(r,1,1,()=>{r=null}),e.check_outros())},i(l){a||(e.transition_in(r),a=!0)},o(l){e.transition_out(r),a=!1},d(l){l&&e.detach(t),r&&r.d(),n[58](null)}}}function pt(n,t,a){let r,l;e.component_subscribe(n,e.$format,i=>a(22,l=i));let{$$slots:s={},$$scope:o}=t,{menuitemsurl:c=""}=t,{session:u=""}=t,{userid:d=""}=t,{cmsendpoint:w}=t,{endpoint:h}=t,{cmsenv:m="stage"}=t,{userroles:p}=t,{lang:g="en"}=t,{activecategory:y=""}=t,{languageslist:b=""}=t,{translationurl:v=""}=t,{mbsource:M}=t,{clientstyling:C=""}=t,{clientstylingurl:T=""}=t,{customlocaleidentifier:A=""}=t,{countryflaghamburger:V=""}=t,{customlogourl:E}=t,{langtransformmap:U=""}=t,{disablelangtransform:D="false"}=t,{showactivebonusesbadge:x="false"}=t,{activebonusescount:Z="0"}=t,{showaliasasusername:j="false"}=t,G,I=window.navigator.userAgent,X=[],K,q="",F=[],P=!1,H=!1,L=!0,f=[],k=!1,O=!1,S=!1,Y=!1,le=!0,N,Q=null,J=!1,R=null,ae=null,ne="",$="",B="",z,Be;const ze=()=>{fetch(v).then(i=>i.json()).then(i=>{Object.keys(i).forEach(_=>{ye(_,i[_])})}).catch(i=>{console.log(i)})};Object.keys(we).forEach(i=>{ye(i,we[i])});const ie=()=>{N=new URL(`${w}/${B.toLowerCase()}/hamburger-menu`);let i=e.getDevice(I);i&&(i==="PC"?N.searchParams.append("device","dk"):N.searchParams.append("device","mtWeb")),N.searchParams.append("env",m),N.searchParams.append("language",B.toLowerCase()),N.searchParams.append("userRoles",p)},se=()=>{a(17,Y=!0),a(18,le=!0),a(15,O=!1),a(16,S=!1),setTimeout(()=>{a(13,H=!1),a(12,P=!1)},200),window.postMessage({type:"CloseHamburgerMenu",showhamburger:!0},window.location.href)},De=i=>{a(6,ne=i.Username),a(5,R=i.UserID),a(19,J=!0),j==="true"&&R&&u&&e.ensurePlayerAlias(h,R,u).then(_=>{a(49,$=_)}).catch(_=>{console.error("Failed to fetch alias:",_)})},ue=()=>{a(19,J=!1),ae=null,a(5,R=null),a(6,ne=""),a(49,$="")},ge=i=>_e(this,null,function*(){if(!i){ue();return}try{const _=yield e.checkSession(h,i);De({Username:_.Username,UserID:_.UserID})}catch(_){console.error("Error while checking the session:",_),ue()}}),de=i=>{if(!(!i||!i.data||typeof i.data!="object"||!("type"in i.data)))switch(i.data.type){case"OpenHamburgerMenuModal":{window.postMessage({type:"DisableScroll"},window.location.href),a(17,Y=!1),setTimeout(()=>{a(18,le=!1)},125),a(13,H=!0),a(12,P=!0),ie(),fe(N);break}case"LanguageChanged":{k=!0,ie(),fe(N);break}case"UserSessionID":a(5,R=i.data.userid),ae=i.data.session,a(19,J=!0),ge(ae);break;case"LogoutSuccessfull":a(19,J=!1);break;case"AliasUpdated":j==="true"&&i.data.alias&&a(49,$=i.data.alias);break}},ee=(i,_)=>{a(10,q=i||""),a(11,F=_||[]),typeof gtag=="function"&>ag("event","ChangeMenu",{context:"HamburgerMenu",menuItem:`${q}`})},me=i=>{var re,te;const _=((re=i==null?void 0:i.children)==null?void 0:re.length)>0,W=(i==null?void 0:i.path)&&((te=i==null?void 0:i.keyword)==null?void 0:te.includes("InternalLink"));!_&&W&&oe(i),ee(i.id,i.children)},pe=()=>{const i=X.filter(W=>W.children&&W.children.length>0);if(i.length>0){const W=i.find(re=>{var te;return(te=re.children)==null?void 0:te.some(et=>et.path.includes(y))});W?ee(W.id,W.children):ee(i[0].id,i[0].children);return}const _=X.find(W=>W.path.includes(y));ee(_?_.id:null,null)},fe=i=>{K&&!k||he(i)},he=i=>{fetch(i).then(_=>_.json()).then(_=>{a(9,X=_.filter(W=>(W==null?void 0:W.type)!=="banner")),pe(),a(48,L=!1),K=_,k=!1},_=>{console.error(_)})};let oe=i=>{window.postMessage({type:"NavigateTo",path:i.path,externalLink:i.externalLink||!1,target:i.attrs.target||null},window.location.href),se()};const ce=()=>{k=!0,window.postMessage({type:"LanguageChanged",selectedLanguage:B},window.location.href)},je=()=>{tt(g),ie(),k&&he(N),a(14,f=b.replace(/ /g,"").split(",")),a(14,f=f.map(i=>i.toUpperCase())),a(20,B=g.toUpperCase())},be=i=>{a(20,B=i),setTimeout(()=>{a(16,S=!1)},250),setTimeout(()=>{a(15,O=!1)},500),ce()},qe=()=>{O?(setTimeout(()=>{a(15,O=!1)},250),a(16,S=!1)):(a(15,O=!0),setTimeout(()=>{a(16,S=!0)},300))},Ee=i=>{let _=i?i.slice(-2):B.slice(-2);return A&&(_=A.includes(_.toLowerCase())?A.slice(-2):_),D!=="true"&&_.toUpperCase()==="EN"&&(_="GB"),Q&&(_=Q[_]||_),_.toUpperCase()},Xe=()=>{a(19,J=!0),ae=u},Re=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:e.isMobile(I)},window.location.href),se(),typeof gtag=="function"&>ag("event","GoToMyAccount",{context:"HamburgerMenu"})};e.onMount(()=>(window.addEventListener("message",de,!1),e.isMobile(I),()=>{window.removeEventListener("message",de)}));const Ze=()=>{try{const i=JSON.parse(U);i&&typeof i=="object"&&!Array.isArray(i)&&Object.keys(i).length?Q=i:Q=null}catch(i){Q=null}},Ge=i=>me(i),Ye=(i,_)=>{oe(i),_.preventDefault()};function Je(){B=e.select_value(this),a(20,B),a(14,f)}const Ve=()=>ce(),Ke=i=>be(i);function Qe(i){e.binding_callbacks[i?"unshift":"push"](()=>{G=i,a(8,G)})}function $e(i){e.binding_callbacks[i?"unshift":"push"](()=>{z=i,a(7,z)})}return n.$$set=i=>{"menuitemsurl"in i&&a(31,c=i.menuitemsurl),"session"in i&&a(32,u=i.session),"userid"in i&&a(33,d=i.userid),"cmsendpoint"in i&&a(34,w=i.cmsendpoint),"endpoint"in i&&a(35,h=i.endpoint),"cmsenv"in i&&a(36,m=i.cmsenv),"userroles"in i&&a(37,p=i.userroles),"lang"in i&&a(4,g=i.lang),"activecategory"in i&&a(38,y=i.activecategory),"languageslist"in i&&a(39,b=i.languageslist),"translationurl"in i&&a(40,v=i.translationurl),"mbsource"in i&&a(41,M=i.mbsource),"clientstyling"in i&&a(42,C=i.clientstyling),"clientstylingurl"in i&&a(43,T=i.clientstylingurl),"customlocaleidentifier"in i&&a(44,A=i.customlocaleidentifier),"countryflaghamburger"in i&&a(0,V=i.countryflaghamburger),"customlogourl"in i&&a(1,E=i.customlogourl),"langtransformmap"in i&&a(45,U=i.langtransformmap),"disablelangtransform"in i&&a(46,D=i.disablelangtransform),"showactivebonusesbadge"in i&&a(2,x=i.showactivebonusesbadge),"activebonusescount"in i&&a(3,Z=i.activebonusescount),"showaliasasusername"in i&&a(47,j=i.showaliasasusername),"$$scope"in i&&a(50,o=i.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&16|n.$$.dirty[1]&296&&w&&m&&g&&b&&je(),n.$$.dirty[1]&131200&&y&&!L&&pe(),n.$$.dirty[1]&512&&v&&ze(),n.$$.dirty[1]&2&&u&&(Xe(),ge(u)),n.$$.dirty[0]&128|n.$$.dirty[1]&2048&&C&&z&&e.setClientStyling(z,C),n.$$.dirty[0]&128|n.$$.dirty[1]&4096&&T&&z&&e.setClientStylingURL(z,T),n.$$.dirty[0]&128|n.$$.dirty[1]&1024&&M&&z&&e.setStreamStyling(z,`${M}.Style`,Be),n.$$.dirty[1]&16384&&U&&Ze(),n.$$.dirty[0]&96|n.$$.dirty[1]&327680&&a(21,r=j==="true"?$:ne||R)},[V,E,x,Z,g,R,ne,z,G,X,q,F,P,H,f,O,S,Y,le,J,B,r,l,se,me,oe,ce,be,qe,Ee,Re,c,u,d,w,h,m,p,y,b,v,M,C,T,A,U,D,j,L,$,o,s,Ge,Ye,Je,Ve,Ke,Qe,$e]}class Ue extends e.SvelteComponent{constructor(t){super(),e.init(this,t,pt,mt,e.safe_not_equal,{menuitemsurl:31,session:32,userid:33,cmsendpoint:34,endpoint:35,cmsenv:36,userroles:37,lang:4,activecategory:38,languageslist:39,translationurl:40,mbsource:41,clientstyling:42,clientstylingurl:43,customlocaleidentifier:44,countryflaghamburger:0,customlogourl:1,langtransformmap:45,disablelangtransform:46,showactivebonusesbadge:2,activebonusescount:3,showaliasasusername:47},at,[-1,-1,-1,-1])}get menuitemsurl(){return this.$$.ctx[31]}set menuitemsurl(t){this.$$set({menuitemsurl:t}),e.flush()}get session(){return this.$$.ctx[32]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[33]}set userid(t){this.$$set({userid:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[34]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get endpoint(){return this.$$.ctx[35]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsenv(){return this.$$.ctx[36]}set cmsenv(t){this.$$set({cmsenv:t}),e.flush()}get userroles(){return this.$$.ctx[37]}set userroles(t){this.$$set({userroles:t}),e.flush()}get lang(){return this.$$.ctx[4]}set lang(t){this.$$set({lang:t}),e.flush()}get activecategory(){return this.$$.ctx[38]}set activecategory(t){this.$$set({activecategory:t}),e.flush()}get languageslist(){return this.$$.ctx[39]}set languageslist(t){this.$$set({languageslist:t}),e.flush()}get translationurl(){return this.$$.ctx[40]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[41]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[42]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[43]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get customlocaleidentifier(){return this.$$.ctx[44]}set customlocaleidentifier(t){this.$$set({customlocaleidentifier:t}),e.flush()}get countryflaghamburger(){return this.$$.ctx[0]}set countryflaghamburger(t){this.$$set({countryflaghamburger:t}),e.flush()}get customlogourl(){return this.$$.ctx[1]}set customlogourl(t){this.$$set({customlogourl:t}),e.flush()}get langtransformmap(){return this.$$.ctx[45]}set langtransformmap(t){this.$$set({langtransformmap:t}),e.flush()}get disablelangtransform(){return this.$$.ctx[46]}set disablelangtransform(t){this.$$set({disablelangtransform:t}),e.flush()}get showactivebonusesbadge(){return this.$$.ctx[2]}set showactivebonusesbadge(t){this.$$set({showactivebonusesbadge:t}),e.flush()}get activebonusescount(){return this.$$.ctx[3]}set activebonusescount(t){this.$$set({activebonusescount:t}),e.flush()}get showaliasasusername(){return this.$$.ctx[47]}set showaliasasusername(t){this.$$set({showaliasasusername:t}),e.flush()}}e.create_custom_element(Ue,{menuitemsurl:{},session:{},userid:{},cmsendpoint:{},endpoint:{},cmsenv:{},userroles:{},lang:{},activecategory:{},languageslist:{},translationurl:{},mbsource:{},clientstyling:{},clientstylingurl:{},customlocaleidentifier:{},countryflaghamburger:{},customlogourl:{},langtransformmap:{},disablelangtransform:{},showactivebonusesbadge:{},activebonusescount:{},showaliasasusername:{}},["logo"],[],!0);exports.default=Ue;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";var zo=Object.defineProperty,Wo=Object.defineProperties;var Vo=Object.getOwnPropertyDescriptors;var cn=Object.getOwnPropertySymbols;var Xo=Object.prototype.hasOwnProperty,Zo=Object.prototype.propertyIsEnumerable;var cr=(e,t,r)=>t in e?zo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hn=(e,t)=>{for(var r in t||(t={}))Xo.call(t,r)&&cr(e,r,t[r]);if(cn)for(var r of cn(t))Zo.call(t,r)&&cr(e,r,t[r]);return e},fn=(e,t)=>Wo(e,Vo(t));var ue=(e,t,r)=>(cr(e,typeof t!="symbol"?t+"":t,r),r);var pt=(e,t,r)=>new Promise((n,i)=>{var o=u=>{try{l(r.next(u))}catch(c){i(c)}},a=u=>{try{l(r.throw(u))}catch(c){i(c)}},l=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,a);l((r=r.apply(e,t)).next())});function ee(){}function Yo(e,t){for(const r in t)e[r]=t[r];return e}function si(e){return e()}function dn(){return Object.create(null)}function de(e){e.forEach(si)}function kr(e){return typeof e=="function"}function Fr(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Nt;function Ne(e,t){return e===t?!0:(Nt||(Nt=document.createElement("a")),Nt.href=t,e===Nt.href)}function Jo(e){return Object.keys(e).length===0}function li(e,...t){if(e==null){for(const n of t)n(void 0);return ee}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function ui(e,t,r){e.$$.on_destroy.push(li(t,r))}function Ze(e,t,r,n){if(e){const i=ci(e,t,r,n);return e[0](i)}}function ci(e,t,r,n){return e[1]&&n?Yo(r.ctx.slice(),e[1](n(t))):r.ctx}function Ye(e,t,r,n){if(e[2]&&n){const i=e[2](n(r));if(t.dirty===void 0)return i;if(typeof i=="object"){const o=[],a=Math.max(t.dirty.length,i.length);for(let l=0;l<a;l+=1)o[l]=t.dirty[l]|i[l];return o}return t.dirty|i}return t.dirty}function Je(e,t,r,n,i,o){if(i){const a=ci(t,r,n,o);e.p(a,i)}}function Qe(e){if(e.ctx.length>32){const t=[],r=e.ctx.length/32;for(let n=0;n<r;n++)t[n]=-1;return t}return-1}function g(e,t){e.appendChild(t)}function hi(e,t,r){const n=Qo(e);if(!n.getElementById(t)){const i=v("style");i.id=t,i.textContent=r,qo(n,i)}}function Qo(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function qo(e,t){return g(e.head||e,t),t.sheet}function B(e,t,r){e.insertBefore(t,r||null)}function C(e){e.parentNode&&e.parentNode.removeChild(e)}function rt(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function v(e){return document.createElement(e)}function be(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ie(e){return document.createTextNode(e)}function O(){return ie(" ")}function nt(){return ie("")}function Z(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function Ko(e){return function(t){return t.preventDefault(),e.call(this,t)}}function m(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function p(e,t,r){const n=t.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&r===""?!0:r:t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:m(e,t,r)}function $o(e){return Array.from(e.childNodes)}function le(e,t){t=""+t,e.data!==t&&(e.data=t)}function ea(e,t){e.value=t==null?"":t}function ta(e,t,r,n){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,"")}function ra(e,t,r){for(let n=0;n<e.options.length;n+=1){const i=e.options[n];if(i.__value===t){i.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function na(e){const t=e.querySelector(":checked");return t&&t.__value}function ia(e,t,r){e.classList.toggle(t,!!r)}function oa(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let bt;function gt(e){bt=e}function aa(){if(!bt)throw new Error("Function called outside component initialization");return bt}function fi(e){aa().$$.on_mount.push(e)}function sa(e,t){const r=e.$$.callbacks[t.type];r&&r.slice().forEach(n=>n.call(this,t))}const Ve=[],Ce=[];let qe=[];const pn=[],la=Promise.resolve();let yr=!1;function ua(){yr||(yr=!0,la.then(S))}function Gt(e){qe.push(e)}const hr=new Set;let ze=0;function S(){if(ze!==0)return;const e=bt;do{try{for(;ze<Ve.length;){const t=Ve[ze];ze++,gt(t),ca(t.$$)}}catch(t){throw Ve.length=0,ze=0,t}for(gt(null),Ve.length=0,ze=0;Ce.length;)Ce.pop()();for(let t=0;t<qe.length;t+=1){const r=qe[t];hr.has(r)||(hr.add(r),r())}qe.length=0}while(Ve.length);for(;pn.length;)pn.pop()();yr=!1,hr.clear(),gt(e)}function ca(e){if(e.fragment!==null){e.update(),de(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Gt)}}function ha(e){const t=[],r=[];qe.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),qe=t}const kt=new Set;let Le;function di(){Le={r:0,c:[],p:Le}}function pi(){Le.r||de(Le.c),Le=Le.p}function _e(e,t){e&&e.i&&(kt.delete(e),e.i(t))}function Ae(e,t,r,n){if(e&&e.o){if(kt.has(e))return;kt.add(e),Le.c.push(()=>{kt.delete(e),n&&(r&&e.d(1),n())}),e.o(t)}else n&&n()}function Ee(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function fa(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),Gt(()=>{const o=e.$$.on_mount.map(si).filter(kr);e.$$.on_destroy?e.$$.on_destroy.push(...o):de(o),e.$$.on_mount=[]}),i.forEach(Gt)}function da(e,t){const r=e.$$;r.fragment!==null&&(ha(r.after_update),de(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function pa(e,t){e.$$.dirty[0]===-1&&(Ve.push(e),ua(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function mi(e,t,r,n,i,o,a=null,l=[-1]){const u=bt;gt(e);const c=e.$$={fragment:null,ctx:[],props:o,update:ee,not_equal:i,bound:dn(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:dn(),dirty:l,skip_bound:!1,root:t.target||u.$$.root};a&&a(c.root);let f=!1;if(c.ctx=r?r(e,t.props||{},(h,d,..._)=>{const M=_.length?_[0]:d;return c.ctx&&i(c.ctx[h],c.ctx[h]=M)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](M),f&&pa(e,h)),d}):[],c.update(),f=!0,de(c.before_update),c.fragment=n?n(c.ctx):!1,t.target){if(t.hydrate){const h=$o(t.target);c.fragment&&c.fragment.l(h),h.forEach(C)}else c.fragment&&c.fragment.c();t.intro&&_e(e.$$.fragment),fa(e,t.target,t.anchor),S()}gt(u)}let gi;typeof HTMLElement=="function"&&(gi=class extends HTMLElement{constructor(t,r,n){super();ue(this,"$$ctor");ue(this,"$$s");ue(this,"$$c");ue(this,"$$cn",!1);ue(this,"$$d",{});ue(this,"$$r",!1);ue(this,"$$p_d",{});ue(this,"$$l",{});ue(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return pt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let a;return{c:function(){a=v("slot"),o!=="default"&&m(a,"name",o)},m:function(c,f){B(c,a,f)},d:function(c){c&&C(a)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=oa(this);for(const o of this.$$s)o in n&&(r[o]=[t(o)]);for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=Ft(a,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:fn(hn({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const a=Ft(o,this.$$d[o],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,a)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const a of this.$$l[o]){const l=this.$$c.$on(o,a);this.$$l_u.set(a,l)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ft(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Ft(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function bi(e,t,r,n,i,o){let a=class extends gi{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Object.keys(t).forEach(l=>{Object.defineProperty(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(u){var c;u=Ft(l,u,t),this.$$d[l]=u,(c=this.$$c)==null||c.$set({[l]:u})}})}),n.forEach(l=>{Object.defineProperty(a.prototype,l,{get(){var u;return(u=this.$$c)==null?void 0:u[l]}})}),e.element=a,a}class vi{constructor(){ue(this,"$$");ue(this,"$$set")}$destroy(){da(this,1),this.$destroy=ee}$on(t,r){if(!kr(r))return ee;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!Jo(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ma="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ma);/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */var _r=function(e,t){return _r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},_r(e,t)};function _t(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");_r(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function wr(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Er(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){a={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function Sr(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||t)}function we(e){return typeof e=="function"}function yi(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var fr=yi(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
15
|
+
`+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
|
|
16
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function xr(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Vt=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var l=wr(a),u=l.next();!u.done;u=l.next()){var c=u.value;c.remove(this)}}catch(y){t={error:y}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}else a.remove(this);var f=this.initialTeardown;if(we(f))try{f()}catch(y){o=y instanceof fr?y.errors:[y]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=wr(h),_=d.next();!_.done;_=d.next()){var M=_.value;try{mn(M)}catch(y){o=o!=null?o:[],y instanceof fr?o=Sr(Sr([],Er(o)),Er(y.errors)):o.push(y)}}}catch(y){n={error:y}}finally{try{_&&!_.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}}if(o)throw new fr(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)mn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&xr(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&xr(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),_i=Vt.EMPTY;function wi(e){return e instanceof Vt||e&&"closed"in e&&we(e.remove)&&we(e.add)&&we(e.unsubscribe)}function mn(e){we(e)?e():e.unsubscribe()}var ga={Promise:void 0},ba={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Sr([e,t],Er(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function va(e){ba.setTimeout(function(){throw e})}function gn(){}function Rt(e){e()}var Ei=function(e){_t(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,wi(r)&&r.add(n)):n.destination=wa,n}return t.create=function(r,n,i){return new Hr(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Vt),ya=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){Pt(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Pt(n)}else Pt(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Pt(r)}},e}(),Hr=function(e){_t(t,e);function t(r,n,i){var o=e.call(this)||this,a;return we(r)||!r?a={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:i!=null?i:void 0}:a=r,o.destination=new ya(a),o}return t}(Ei);function Pt(e){va(e)}function _a(e){throw e}var wa={closed:!0,next:gn,error:_a,complete:gn},Ea=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Sa(e){return e}function xa(e){return e.length===0?Sa:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var bn=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,o=Ma(t)?t:new Hr(t,r,n);return Rt(function(){var a=i,l=a.operator,u=a.source;o.add(l?l.call(o,u):u?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=vn(r),new r(function(i,o){var a=new Hr({next:function(l){try{t(l)}catch(u){o(u),a.unsubscribe()}},error:o,complete:i});n.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Ea]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return xa(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=vn(t),new t(function(n,i){var o;r.subscribe(function(a){return o=a},function(a){return i(a)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function vn(e){var t;return(t=e!=null?e:ga.Promise)!==null&&t!==void 0?t:Promise}function Ha(e){return e&&we(e.next)&&we(e.error)&&we(e.complete)}function Ma(e){return e&&e instanceof Ei||Ha(e)&&wi(e)}var Aa=yi(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Si=function(e){_t(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new yn(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Aa},t.prototype.next=function(r){var n=this;Rt(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=wr(n.currentObservers),l=a.next();!l.done;l=a.next()){var u=l.value;u.next(r)}}catch(c){i={error:c}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;Rt(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;Rt(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,a=i.isStopped,l=i.observers;return o||a?_i:(this.currentObservers=null,l.push(r),new Vt(function(){n.currentObservers=null,xr(l,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,a=n.isStopped;i?r.error(o):a&&r.complete()},t.prototype.asObservable=function(){var r=new bn;return r.source=this,r},t.create=function(r,n){return new yn(r,n)},t}(bn),yn=function(e){_t(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:_i},t}(Si),xi={now:function(){return(xi.delegate||Date).now()},delegate:void 0},Ca=function(e){_t(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=xi);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=n,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,n),o}return t.prototype.next=function(r){var n=this,i=n.isStopped,o=n._buffer,a=n._infiniteTimeWindow,l=n._timestampProvider,u=n._windowTime;i||(o.push(r),!a&&o.push(l.now()+u)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,o=i._infiniteTimeWindow,a=i._buffer,l=a.slice(),u=0;u<l.length&&!r.closed;u+=o?1:2)r.next(l[u]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,o=r._buffer,a=r._infiniteTimeWindow,l=(a?1:2)*n;if(n<1/0&&l<o.length&&o.splice(0,o.length-l),!a){for(var u=i.now(),c=0,f=1;f<o.length&&o[f]<=u;f+=2)c=f;c&&o.splice(0,c+1)}},t}(Si);const _n=[],wn={},Ba=(e,t=0)=>{if(_n.indexOf(e)==-1){const r=new Ca(t);wn[e]=r,_n.push(e)}return wn[e]},We=[];function Ia(e,t){return{subscribe:Xt(e,t).subscribe}}function Xt(e,t=ee){let r;const n=new Set;function i(l){if(Fr(e,l)&&(e=l,r)){const u=!We.length;for(const c of n)c[1](),We.push(c,e);if(u){for(let c=0;c<We.length;c+=2)We[c][0](We[c+1]);We.length=0}}}function o(l){i(l(e))}function a(l,u=ee){const c=[l,u];return n.add(c),n.size===1&&(r=t(i,o)||ee),l(e),()=>{n.delete(c),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:a}}function it(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Ia(r,(a,l)=>{let u=!1;const c=[];let f=0,h=ee;const d=()=>{if(f)return;h();const M=t(n?c[0]:c,a,l);o?a(M):h=kr(M)?M:ee},_=i.map((M,y)=>li(M,L=>{c[y]=L,f&=~(1<<y),u&&d()},()=>{f|=1<<y}));return u=!0,d(),function(){de(_),h(),u=!1}})}var Ta=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function La(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Na=function(t){return Pa(t)&&!Oa(t)};function Pa(e){return!!e&&typeof e=="object"}function Oa(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Ra(e)}var ka=typeof Symbol=="function"&&Symbol.for,Fa=ka?Symbol.for("react.element"):60103;function Ra(e){return e.$$typeof===Fa}function Da(e){return Array.isArray(e)?[]:{}}function vt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ke(Da(e),e,t):e}function Ua(e,t,r){return e.concat(t).map(function(n){return vt(n,r)})}function Ga(e,t){if(!t.customMerge)return Ke;var r=t.customMerge(e);return typeof r=="function"?r:Ke}function ja(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function En(e){return Object.keys(e).concat(ja(e))}function Hi(e,t){try{return t in e}catch(r){return!1}}function za(e,t){return Hi(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Wa(e,t,r){var n={};return r.isMergeableObject(e)&&En(e).forEach(function(i){n[i]=vt(e[i],r)}),En(t).forEach(function(i){za(e,i)||(Hi(e,i)&&r.isMergeableObject(t[i])?n[i]=Ga(i,r)(e[i],t[i],r):n[i]=vt(t[i],r))}),n}function Ke(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ua,r.isMergeableObject=r.isMergeableObject||Na,r.cloneUnlessOtherwiseSpecified=vt;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):Wa(e,t,r):vt(t,r)}Ke.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Ke(n,i,r)},{})};var Va=Ke,Xa=Va;const Za=La(Xa);var Mr=function(e,t){return Mr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Mr(e,t)};function Zt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Mr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ge=function(){return ge=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ge.apply(this,arguments)};function Ya(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function dr(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function pr(e,t){var r=t&&t.cache?t.cache:ts,n=t&&t.serializer?t.serializer:$a,i=t&&t.strategy?t.strategy:qa;return i(e,{cache:r,serializer:n})}function Ja(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Qa(e,t,r,n){var i=Ja(n)?n:r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,n),t.set(i,o)),o}function Mi(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,n),t.set(i,o)),o}function Ai(e,t,r,n,i){return r.bind(t,e,n,i)}function qa(e,t){var r=e.length===1?Qa:Mi;return Ai(e,this,r,t.cache.create(),t.serializer)}function Ka(e,t){return Ai(e,this,Mi,t.cache.create(),t.serializer)}var $a=function(){return JSON.stringify(arguments)},es=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),ts={create:function(){return new es}},mr={variadic:Ka},jt=function(){return jt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},jt.apply(this,arguments)};var F;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(F||(F={}));var U;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(U||(U={}));var $e;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})($e||($e={}));function Sn(e){return e.type===U.literal}function rs(e){return e.type===U.argument}function Ci(e){return e.type===U.number}function Bi(e){return e.type===U.date}function Ii(e){return e.type===U.time}function Ti(e){return e.type===U.select}function Li(e){return e.type===U.plural}function ns(e){return e.type===U.pound}function Ni(e){return e.type===U.tag}function Pi(e){return!!(e&&typeof e=="object"&&e.type===$e.number)}function Ar(e){return!!(e&&typeof e=="object"&&e.type===$e.dateTime)}var Oi=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,is=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function os(e){var t={};return e.replace(is,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var W=function(){return W=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},W.apply(this,arguments)};var as=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ss(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(as).filter(function(d){return d.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n],a=o.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var l=a[0],u=a.slice(1),c=0,f=u;c<f.length;c++){var h=f[c];if(h.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:u})}return r}function ls(e){return e.replace(/^(.*?)-/,"")}var xn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ki=/^(@+)?(\+|#+)?[rs]?$/g,us=/(\*)(0+)|(#+)(0+)|(0+)/g,Fi=/^(0+)$/;function Hn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ki,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function Ri(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function cs(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Fi.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Mn(e){var t={},r=Ri(e);return r||t}function hs(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=ls(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=W(W(W({},t),{notation:"scientific"}),i.options.reduce(function(u,c){return W(W({},u),Mn(c))},{}));continue;case"engineering":t=W(W(W({},t),{notation:"engineering"}),i.options.reduce(function(u,c){return W(W({},u),Mn(c))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(us,function(u,c,f,h,d,_){if(c)t.minimumIntegerDigits=f.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(_)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Fi.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(xn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(xn,function(u,c,f,h,d,_){return f==="*"?t.minimumFractionDigits=c.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:d&&_?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+_.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var o=i.options[0];o==="w"?t=W(W({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=W(W({},t),Hn(o)));continue}if(ki.test(i.stem)){t=W(W({},t),Hn(i.stem));continue}var a=Ri(i.stem);a&&(t=W(W({},t),a));var l=cs(i.stem);l&&(t=W(W({},t),l))}return t}var Ot={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function fs(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(o&1),l=o<2?1:3+(o>>1),u="a",c=ds(t);for((c=="H"||c=="k")&&(l=0);l-- >0;)r+=u;for(;a-- >0;)r=c+r}else i==="J"?r+="H":r+=i}return r}function ds(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Ot[n||""]||Ot[r||""]||Ot["".concat(r,"-001")]||Ot["001"];return i[0]}var gr,ps=new RegExp("^".concat(Oi.source,"*")),ms=new RegExp("".concat(Oi.source,"*$"));function R(e,t){return{start:e,end:t}}var gs=!!String.prototype.startsWith&&"_a".startsWith("a",1),bs=!!String.fromCodePoint,vs=!!Object.fromEntries,ys=!!String.prototype.codePointAt,_s=!!String.prototype.trimStart,ws=!!String.prototype.trimEnd,Es=!!Number.isSafeInteger,Ss=Es?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Cr=!0;try{var xs=Ui("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Cr=((gr=xs.exec("a"))===null||gr===void 0?void 0:gr[0])==="a"}catch(e){Cr=!1}var An=gs?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Br=bs?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0,a;i>o;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},Cn=vs?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var o=i[n],a=o[0],l=o[1];r[a]=l}return r},Di=ys?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Hs=_s?function(t){return t.trimStart()}:function(t){return t.replace(ps,"")},Ms=ws?function(t){return t.trimEnd()}:function(t){return t.replace(ms,"")};function Ui(e,t){return new RegExp(e,t)}var Ir;if(Cr){var Bn=Ui("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ir=function(t,r){var n;Bn.lastIndex=r;var i=Bn.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else Ir=function(t,r){for(var n=[];;){var i=Di(t,r);if(i===void 0||Gi(i)||Is(i))break;n.push(i),r+=i>=65536?2:1}return Br.apply(void 0,n)};var As=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),i.push({type:U.pound,location:R(l,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(F.UNMATCHED_CLOSING_TAG,R(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Tr(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:U.literal,value:"<".concat(i,"/>"),location:R(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var a=o.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Tr(this.char()))return this.error(F.INVALID_TAG,R(l,this.clonePosition()));var u=this.clonePosition(),c=this.parseTagName();return i!==c?this.error(F.UNMATCHED_CLOSING_TAG,R(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:U.tag,value:i,children:a,location:R(n,this.clonePosition())},err:null}:this.error(F.INVALID_TAG,R(l,this.clonePosition())))}else return this.error(F.UNCLOSED_TAG,R(n,this.clonePosition()))}else return this.error(F.INVALID_TAG,R(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Bs(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}var u=R(n,this.clonePosition());return{val:{type:U.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Cs(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Br.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Br(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,R(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(F.EMPTY_ARGUMENT,R(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(F.MALFORMED_ARGUMENT,R(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,R(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:U.argument,value:i,location:R(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,R(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(F.MALFORMED_ARGUMENT,R(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Ir(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),a=R(t,o);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,a=this.clonePosition(),l=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(l){case"":return this.error(F.EXPECT_ARGUMENT_TYPE,R(a,u));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=Ms(h.val);if(d.length===0)return this.error(F.EXPECT_ARGUMENT_STYLE,R(this.clonePosition(),this.clonePosition()));var _=R(f,this.clonePosition());c={style:d,styleLocation:_}}var M=this.tryParseArgumentClose(i);if(M.err)return M;var y=R(i,this.clonePosition());if(c&&An(c==null?void 0:c.style,"::",0)){var L=Hs(c.style.slice(2));if(l==="number"){var h=this.parseNumberSkeletonFromString(L,c.styleLocation);return h.err?h:{val:{type:U.number,value:n,location:y,style:h.val},err:null}}else{if(L.length===0)return this.error(F.EXPECT_DATE_TIME_SKELETON,y);var N=L;this.locale&&(N=fs(L,this.locale));var d={type:$e.dateTime,pattern:N,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?os(N):{}},x=l==="date"?U.date:U.time;return{val:{type:x,value:n,location:y,style:d},err:null}}}return{val:{type:l==="number"?U.number:l==="date"?U.date:U.time,value:n,location:y,style:(o=c==null?void 0:c.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS,R(A,jt({},A)));this.bumpSpace();var T=this.parseIdentifierIfPossible(),G=0;if(l!=="select"&&T.value==="offset"){if(!this.bumpIf(":"))return this.error(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,R(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),T=this.parseIdentifierIfPossible(),G=h.val}var J=this.tryParsePluralOrSelectOptions(t,l,r,T);if(J.err)return J;var M=this.tryParseArgumentClose(i);if(M.err)return M;var H=R(i,this.clonePosition());return l==="select"?{val:{type:U.select,value:n,options:Cn(J.val),location:H},err:null}:{val:{type:U.plural,value:n,options:Cn(J.val),offset:G,pluralType:l==="plural"?"cardinal":"ordinal",location:H},err:null}}default:return this.error(F.INVALID_ARGUMENT_TYPE,R(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE,R(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(F.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,R(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=ss(t)}catch(i){return this.error(F.INVALID_NUMBER_SKELETON,r)}return{val:{type:$e.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?hs(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,a=!1,l=[],u=new Set,c=i.value,f=i.location;;){if(c.length===0){var h=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_SELECTOR,F.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;f=R(h,this.clonePosition()),c=this.message.slice(h.offset,this.offset())}else break}if(u.has(c))return this.error(r==="select"?F.DUPLICATE_SELECT_ARGUMENT_SELECTOR:F.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);c==="other"&&(a=!0),this.bumpSpace();var _=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:F.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,R(this.clonePosition(),this.clonePosition()));var M=this.parseMessage(t+1,r,n);if(M.err)return M;var y=this.tryParseArgumentClose(_);if(y.err)return y;l.push([c,{value:M.val,location:R(_,this.clonePosition())}]),u.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,f=o.location}return l.length===0?this.error(r==="select"?F.EXPECT_SELECT_ARGUMENT_SELECTOR:F.EXPECT_PLURAL_ARGUMENT_SELECTOR,R(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(F.MISSING_OTHER_CLAUSE,R(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,a=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)o=!0,a=a*10+(l-48),this.bump();else break}var u=R(i,this.clonePosition());return o?(a*=n,Ss(a)?{val:a,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Di(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(An(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Gi(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function Tr(e){return e>=97&&e<=122||e>=65&&e<=90}function Cs(e){return Tr(e)||e===47}function Bs(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Gi(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Is(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Lr(e){e.forEach(function(t){if(delete t.location,Ti(t)||Li(t))for(var r in t.options)delete t.options[r].location,Lr(t.options[r].value);else Ci(t)&&Pi(t.style)||(Bi(t)||Ii(t))&&Ar(t.style)?delete t.style.location:Ni(t)&&Lr(t.children)})}function Ts(e,t){t===void 0&&(t={}),t=jt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new As(e,t).parse();if(r.err){var n=SyntaxError(F[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Lr(r.val),r.val}var et;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(et||(et={}));var Yt=function(e){Zt(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),In=function(e){Zt(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),et.INVALID_VALUE,o)||this}return t}(Yt),Ls=function(e){Zt(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),et.INVALID_VALUE,i)||this}return t}(Yt),Ns=function(e){Zt(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),et.MISSING_VALUE,n)||this}return t}(Yt),ne;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ne||(ne={}));function Ps(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==ne.literal||r.type!==ne.literal?t.push(r):n.value+=r.value,t},[])}function Os(e){return typeof e=="function"}function Dt(e,t,r,n,i,o,a){if(e.length===1&&Sn(e[0]))return[{type:ne.literal,value:e[0].value}];for(var l=[],u=0,c=e;u<c.length;u++){var f=c[u];if(Sn(f)){l.push({type:ne.literal,value:f.value});continue}if(ns(f)){typeof o=="number"&&l.push({type:ne.literal,value:r.getNumberFormat(t).format(o)});continue}var h=f.value;if(!(i&&h in i))throw new Ns(h,a);var d=i[h];if(rs(f)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),l.push({type:typeof d=="string"?ne.literal:ne.object,value:d});continue}if(Bi(f)){var _=typeof f.style=="string"?n.date[f.style]:Ar(f.style)?f.style.parsedOptions:void 0;l.push({type:ne.literal,value:r.getDateTimeFormat(t,_).format(d)});continue}if(Ii(f)){var _=typeof f.style=="string"?n.time[f.style]:Ar(f.style)?f.style.parsedOptions:n.time.medium;l.push({type:ne.literal,value:r.getDateTimeFormat(t,_).format(d)});continue}if(Ci(f)){var _=typeof f.style=="string"?n.number[f.style]:Pi(f.style)?f.style.parsedOptions:void 0;_&&_.scale&&(d=d*(_.scale||1)),l.push({type:ne.literal,value:r.getNumberFormat(t,_).format(d)});continue}if(Ni(f)){var M=f.children,y=f.value,L=i[y];if(!Os(L))throw new Ls(y,"function",a);var N=Dt(M,t,r,n,i,o),x=L(N.map(function(G){return G.value}));Array.isArray(x)||(x=[x]),l.push.apply(l,x.map(function(G){return{type:typeof G=="string"?ne.literal:ne.object,value:G}}))}if(Ti(f)){var A=f.options[d]||f.options.other;if(!A)throw new In(f.value,d,Object.keys(f.options),a);l.push.apply(l,Dt(A.value,t,r,n,i));continue}if(Li(f)){var A=f.options["=".concat(d)];if(!A){if(!Intl.PluralRules)throw new Yt(`Intl.PluralRules is not available in this environment.
|
|
17
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
18
|
+
`,et.MISSING_INTL_API,a);var T=r.getPluralRules(t,{type:f.pluralType}).select(d-(f.offset||0));A=f.options[T]||f.options.other}if(!A)throw new In(f.value,d,Object.keys(f.options),a);l.push.apply(l,Dt(A.value,t,r,n,i,d-(f.offset||0)));continue}}return Ps(l)}function ks(e,t){return t?ge(ge(ge({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=ge(ge({},e[n]),t[n]||{}),r},{})):e}function Fs(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=ks(e[n],t[n]),r},ge({},e)):e}function br(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Rs(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:pr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,dr([void 0],r,!1)))},{cache:br(e.number),strategy:mr.variadic}),getDateTimeFormat:pr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,dr([void 0],r,!1)))},{cache:br(e.dateTime),strategy:mr.variadic}),getPluralRules:pr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,dr([void 0],r,!1)))},{cache:br(e.pluralRules),strategy:mr.variadic})}}var Ds=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var c=o.formatToParts(u);if(c.length===1)return c[0].value;var f=c.reduce(function(h,d){return!h.length||d.type!==ne.literal||typeof h[h.length-1]!="string"?h.push(d.value):h[h.length-1]+=d.value,h},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return Dt(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var l=Ya(a,["formatters"]);this.ast=e.__parse(t,ge(ge({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Fs(e.formats,n),this.formatters=i&&i.formatters||Rs(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Ts,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Us(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const o=r.slice(i,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[i]]}else n=void 0;return n}const Be={},Gs=(e,t,r)=>r&&(t in Be||(Be[t]={}),e in Be[t]||(Be[t][e]=r),r),ji=(e,t)=>{if(t==null)return;if(t in Be&&e in Be[t])return Be[t][e];const r=Jt(t);for(let n=0;n<r.length;n++){const i=r[n],o=zs(i,e);if(o)return Gs(e,t,o)}};let Rr;const ot=Xt({});function js(e){return Rr[e]||null}function zi(e){return e in Rr}function zs(e,t){if(!zi(e))return null;const r=js(e);return Us(r,t)}function Ws(e){if(e==null)return;const t=Jt(e);for(let r=0;r<t.length;r++){const n=t[r];if(zi(n))return n}}function Dr(e,...t){delete Be[e],ot.update(r=>(r[e]=Za.all([r[e]||{},...t]),r))}it([ot],([e])=>Object.keys(e));ot.subscribe(e=>Rr=e);const Ut={};function Vs(e,t){Ut[e].delete(t),Ut[e].size===0&&delete Ut[e]}function Wi(e){return Ut[e]}function Xs(e){return Jt(e).map(t=>{const r=Wi(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Nr(e){return e==null?!1:Jt(e).some(t=>{var r;return(r=Wi(t))==null?void 0:r.size})}function Zs(e,t){return Promise.all(t.map(n=>(Vs(e,n),n().then(i=>i.default||i)))).then(n=>Dr(e,...n))}const mt={};function Vi(e){if(!Nr(e))return e in mt?mt[e]:Promise.resolve();const t=Xs(e);return mt[e]=Promise.all(t.map(([r,n])=>Zs(r,n))).then(()=>{if(Nr(e))return Vi(e);delete mt[e]}),mt[e]}const Ys={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Js={fallbackLocale:null,loadingDelay:200,formats:Ys,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Qs=Js;function tt(){return Qs}const vr=Xt(!1);var qs=Object.defineProperty,Ks=Object.defineProperties,$s=Object.getOwnPropertyDescriptors,Tn=Object.getOwnPropertySymbols,el=Object.prototype.hasOwnProperty,tl=Object.prototype.propertyIsEnumerable,Ln=(e,t,r)=>t in e?qs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rl=(e,t)=>{for(var r in t||(t={}))el.call(t,r)&&Ln(e,r,t[r]);if(Tn)for(var r of Tn(t))tl.call(t,r)&&Ln(e,r,t[r]);return e},nl=(e,t)=>Ks(e,$s(t));let Pr;const zt=Xt(null);function Nn(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Jt(e,t=tt().fallbackLocale){const r=Nn(e);return t?[...new Set([...r,...Nn(t)])]:r}function Pe(){return Pr!=null?Pr:void 0}zt.subscribe(e=>{Pr=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const il=e=>{if(e&&Ws(e)&&Nr(e)){const{loadingDelay:t}=tt();let r;return typeof window!="undefined"&&Pe()!=null&&t?r=window.setTimeout(()=>vr.set(!0),t):vr.set(!0),Vi(e).then(()=>{zt.set(e)}).finally(()=>{clearTimeout(r),vr.set(!1)})}return zt.set(e)},Se=nl(rl({},zt),{set:il}),Qt=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var ol=Object.defineProperty,Wt=Object.getOwnPropertySymbols,Xi=Object.prototype.hasOwnProperty,Zi=Object.prototype.propertyIsEnumerable,Pn=(e,t,r)=>t in e?ol(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ur=(e,t)=>{for(var r in t||(t={}))Xi.call(t,r)&&Pn(e,r,t[r]);if(Wt)for(var r of Wt(t))Zi.call(t,r)&&Pn(e,r,t[r]);return e},at=(e,t)=>{var r={};for(var n in e)Xi.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Wt)for(var n of Wt(e))t.indexOf(n)<0&&Zi.call(e,n)&&(r[n]=e[n]);return r};const yt=(e,t)=>{const{formats:r}=tt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},al=Qt(e=>{var t=e,{locale:r,format:n}=t,i=at(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=yt("number",n)),new Intl.NumberFormat(r,i)}),sl=Qt(e=>{var t=e,{locale:r,format:n}=t,i=at(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=yt("date",n):Object.keys(i).length===0&&(i=yt("date","short")),new Intl.DateTimeFormat(r,i)}),ll=Qt(e=>{var t=e,{locale:r,format:n}=t,i=at(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=yt("time",n):Object.keys(i).length===0&&(i=yt("time","short")),new Intl.DateTimeFormat(r,i)}),ul=(e={})=>{var t=e,{locale:r=Pe()}=t,n=at(t,["locale"]);return al(Ur({locale:r},n))},cl=(e={})=>{var t=e,{locale:r=Pe()}=t,n=at(t,["locale"]);return sl(Ur({locale:r},n))},hl=(e={})=>{var t=e,{locale:r=Pe()}=t,n=at(t,["locale"]);return ll(Ur({locale:r},n))},fl=Qt((e,t=Pe())=>new Ds(e,t,tt().formats,{ignoreTag:tt().ignoreTag})),dl=(e,t={})=>{var r,n,i,o;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:l,locale:u=Pe(),default:c}=a;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=ji(e,u);if(!f)f=(o=(i=(n=(r=tt()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:c}))!=null?i:c)!=null?o:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!l)return f;let h=f;try{h=fl(f,u).format(l)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,d.message)}return h},pl=(e,t)=>hl(t).format(e),ml=(e,t)=>cl(t).format(e),gl=(e,t)=>ul(t).format(e),bl=(e,t=Pe())=>ji(e,t),Yi=it([Se,ot],()=>dl);it([Se],()=>pl);it([Se],()=>ml);it([Se],()=>gl);it([Se,ot],()=>bl);window.emWidgets={topic:Ba};const Or=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),Ji=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Qi(e,t){return new Promise((r,n)=>{const i=new Headers;i.append("X-SessionID",t);const o={method:"GET",headers:i};fetch(`${e}/v1/player/session/player`,o).then(a=>a.json()).then(a=>r(a)).catch(a=>n(a))})}function vl(e){return!e||typeof e!="string"?"User0000":`User${e.replace(/\D/g,"").slice(-4).padStart(4,"0")}`}function qi(e,t,r){return pt(this,null,function*(){const n=new Headers;n.append("X-SessionID",r);const o=yield(yield fetch(`${e}/v1/player/${t}/profile`,{method:"GET",headers:n})).json();if(o.alias)return o.alias;const a=vl(o.username||""),l=new Headers;return l.append("X-SessionID",r),l.append("Content-Type","application/json"),fetch(`${e}/v1/player/${t}/profile`,{method:"POST",headers:l,body:JSON.stringify({alias:a})}).catch(u=>console.error("Failed to save auto-generated alias:",u)),a})}String(Number.MAX_SAFE_INTEGER).length;const Xe="__WIDGET_GLOBAL_STYLE_CACHE__";function Ki(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function $i(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function eo(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=yl(e,t),r;window[Xe]||(window[Xe]={}),r=_l(e,t);const o=r.unsubscribe.bind(r),a=()=>{if(window[Xe][t]){const l=window[Xe][t];l.refCount>1?l.refCount=l.refCount-1:delete window[Xe][t]}o()};return r.unsubscribe=a,r}function yl(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r))})}function _l(e,t){return window.emMessageBus.subscribe(t,r=>{if(!e)return;const n=e.getRootNode(),i=window[Xe];let o=i[t]&&i[t].sheet;o?i[t].refCount=i[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(r),i[t]={sheet:o,refCount:1});const a=n.adoptedStyleSheets||[];a.includes(o)||(n.adoptedStyleSheets=[...a,o])})}function wl({withLocale:e,translations:t}){Se.subscribe(r=>{r==null&&(ot.set(t),Se.set(e))})}function On(e,t){Dr(e,t)}function El(e){Se.set(e)}const kn={en:{login:"Login",register:"Register",deposit:"Deposit",promotions:"Promotions",closeButton:"CLOSE"},"zh-hk":{login:"登錄",register:"登記",deposit:"訂金",promotions:"促销活动",closeButton:"關閉"},fr:{login:"Connexion",register:"Enregistrer",deposit:"Dépôt",promotions:"Promotions",closeButton:"FERMER"},tr:{login:"Giriş",register:"Kayıt",deposit:"Yatır",promotions:"Promosyonlar",closeButton:"KAPAT"},ro:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit",promotions:"Promotii",closeButton:"INCHIDE"},es:{login:"Iniciar sesión",register:"Regístrate",deposit:"Deposita",promotions:"Promociones",closeButton:"CERRAR"},pt:{login:"Entrar",register:"Registro",deposit:"Depósito",promotions:"Promoções",closeButton:"FECHAR"},hr:{login:"Prijava",register:"Registracija",deposit:"Uplata",promotions:"Promocije",closeButton:"ZATVORI"},"pt-br":{login:"Entrar",register:"Registro",deposit:"Depósito",promotions:"Promoções",closeButton:"FECHAR"},"es-mx":{login:"Ingresar",register:"Registro",deposit:"Depósito",promotions:"Promociones",closeButton:"CERRAR"},"en-us":{login:"Login",register:"Register",deposit:"Deposit",promotions:"Promotions",closeButton:"CLOSE"}},Sl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg==";function xl(e){hi(e,"svelte-1hfnq1n",`*,*::before,*::after{font-family:inherit}:host{font-family:inherit}.NavIcon{width:30px;height:28px;position:relative;margin:50px auto;-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg);-webkit-transition:0.5s ease-in-out;-moz-transition:0.5s ease-in-out;-o-transition:0.5s ease-in-out;transition:0.5s ease-in-out;cursor:pointer}.NavIcon span{display:block;position:absolute;height:3px;width:100%;background:#ffffff;border-radius:9px;opacity:1;left:0;-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg);-webkit-transition:0.25s ease-in-out;-moz-transition:0.25s ease-in-out;-o-transition:0.25s ease-in-out;transition:0.25s ease-in-out}.NavIcon span:nth-child(1){top:0px;width:80%}.NavIcon span:nth-child(2){top:9px}.NavIcon span:nth-child(3){top:18px}.NavIcon.Open span:nth-child(1){top:9px;width:100%;-webkit-transform:rotate(135deg);-moz-transform:rotate(135deg);-o-transform:rotate(135deg);transform:rotate(135deg)}.NavIcon.Open span:nth-child(2){opacity:0;left:-60px}.NavIcon.Open span:nth-child(3){top:9px;-webkit-transform:rotate(-135deg);-moz-transform:rotate(-135deg);-o-transform:rotate(-135deg);transform:rotate(-135deg)}.Skeleton{animation:skeleton-loading 0.6s linear infinite alternate}@keyframes skeleton-loading{0%{background:linear-gradient(90deg, rgba(35, 178, 78, 0.2) 0%, rgba(0, 61, 93, 0.2) 100%)}12%{background:linear-gradient(90deg, rgba(35, 178, 78, 0.225) 0%, rgba(0, 61, 93, 0.225) 100%)}25%{background:linear-gradient(90deg, rgba(35, 178, 78, 0.25) 0%, rgba(0, 61, 93, 0.25) 100%)}33%{background:linear-gradient(90deg, rgba(35, 178, 78, 0.275) 0%, rgba(0, 61, 93, 0.275) 100%)}50%{background:linear-gradient(90deg, rgba(35, 178, 78, 0.3) 0%, rgba(0, 61, 93, 0.3) 100%)}63%{background:linear-gradient(90deg, rgba(35, 178, 78, 0.325) 0%, rgba(0, 61, 93, 0.325) 100%)}75%{background:linear-gradient(90deg, rgba(35, 178, 78, 0.35) 0%, rgba(0, 61, 93, 0.35) 100%)}88%{background:linear-gradient(90deg, rgba(35, 178, 78, 0.375) 0%, rgba(0, 61, 93, 0.375) 100%)}100%{background:linear-gradient(90deg, rgba(35, 178, 78, 0.4) 0%, rgba(0, 61, 93, 0.4) 100%)}}.SkeletonText{opacity:0.5;margin:0 15px;width:125px;height:15px;border-radius:15px}.HeaderContainer{width:100%;background-color:var(--emw--header-color-background, var(--emw--color-background, #000000));display:flex;flex-direction:column;align-items:center;user-select:none}.HeaderContainer .MainNav{width:99%;height:84px;display:flex;gap:5px;flex-direction:row;align-items:center;margin:0 15px}.HeaderContainer .MainNav .HeaderMobileMainNav{display:flex;margin-left:5px}.HeaderContainer .MainNav .Logo{display:flex;justify-content:center;align-items:center;width:10%;min-width:75px;transition:width 0.2s}.HeaderContainer .MainNav .Logo .HeaderBranding{width:140px;cursor:pointer}.HeaderContainer .MainNav .Logo .HeaderBranding img{width:100%}@media only screen and (max-width: 360px){.HeaderContainer .MainNav .Logo .HeaderBranding{margin-right:0}}.HeaderContainer .MainNav .Logo:active{opacity:0.9;transform:scale(1.02)}.HeaderContainer .MainNav .GamificationWrapper{margin-right:16px}.HeaderContainer .MainNav .BalanceDepositWrapper{height:34px;background-color:white;display:flex;position:relative;justify-content:center;align-items:center;border-radius:30px}.HeaderContainer .MainNav .BalanceDepositWrapper .Background{height:34px;position:absolute;background:linear-gradient(0deg, rgb(35, 178, 78) 0%, rgb(26, 205, 80) 100%) padding-box, linear-gradient(180deg, rgba(35, 178, 78, 0.2) 0%, rgba(26, 205, 80, 0.2) 100%) border-box;border-radius:30px;z-index:3;transition:background-color 0.3s ease}.HeaderContainer .MainNav .BalanceDepositWrapper .Deposit{display:flex;align-items:center;cursor:pointer;justify-content:center;z-index:4}.HeaderContainer .MainNav .BalanceDepositWrapper .Deposit .DepositButton{font-size:14px;text-align:center;cursor:pointer;padding:0 10px;transition:color 0.5s linear;display:flex;justify-content:center;align-items:center}.HeaderContainer .MainNav .BalanceDepositWrapper .Deposit .DepositButton p{text-transform:uppercase;color:white;transition:color 0.3s ease}.HeaderContainer .MainNav .BalanceDepositWrapper .Deposit .DepositButton p:hover{text-shadow:0px 1px 5px rgba(0, 0, 0, 0.2)}.HeaderContainer .MainNav .BalanceDepositWrapper .Deposit .DepositButton p:active{color:black}.HeaderContainer .MainNav .BalanceDepositWrapper .Deposit.Open .DepositButton p{transition:color 0.5s linear;color:black;opacity:0.5}.HeaderContainer .MainNav .BalanceDepositWrapper .Balance{display:flex;z-index:4;height:100%;padding-left:10px;align-items:center}.HeaderContainer .MainNav .BalanceDepositWrapper .Balance.Open{color:white}.HeaderContainer .MainNav .Profile{display:flex;justify-content:center;flex-direction:column;cursor:pointer}.HeaderContainer .MainNav .Profile .ProfileWrapper{width:30px;height:30px;background-color:orange;border-radius:50px;display:flex;justify-content:center;align-items:center;transition:width 0.3s ease;position:relative}.HeaderContainer .MainNav .Profile .ProfileWrapper svg{width:15px;height:16px;fill:var(--emw--color-white, #FFFFFF)}.HeaderContainer .MainNav .Profile .ProfileWrapper:hover{box-shadow:0px 0px 4px white}.HeaderContainer .MainNav .Profile .ProfileWrapper:active svg{fill:var(--emw--color-black, #000000)}.HeaderContainer .MainNav .PrimaryMenu{display:flex;flex-direction:row;align-items:center;width:100%}.HeaderContainer .MainNav .PrimaryMenu .ItemMenu{color:white;margin:0 20px;text-transform:uppercase;height:84px;transition:color 0.5s;cursor:pointer}.HeaderContainer .MainNav .PrimaryMenu .ItemMenu:after{content:"";display:block;height:5px;width:100%;cursor:pointer;background-color:pink;position:relative}.HeaderContainer .MainNav .PrimaryMenu .ItemMenu .MenuHover{width:0px;transition:transform 0.3s ease-in-out;transform-origin:center;transform:scaleX(0)}.HeaderContainer .MainNav .PrimaryMenu .ItemMenu.ItemUsername{display:none;position:relative}.HeaderContainer .MainNav .PrimaryMenu .ItemMenu .MenuItemTag{display:none}.HeaderContainer .MainNav .PrimaryMenu .ItemMenu p{height:33px;margin-top:35px}.HeaderContainer .MainNav .PrimaryMenu .ItemMenu:hover,.HeaderContainer .MainNav .PrimaryMenu .ItemMenu.Active{color:#22B04F}.HeaderContainer .MainNav .PrimaryMenu .ItemMenu:hover .MenuHover,.HeaderContainer .MainNav .PrimaryMenu .ItemMenu.Active .MenuHover{transform:scaleX(1);opacity:1;background-color:rgba(255, 255, 255, 0.5);width:100%;position:relative;height:5px;z-index:4}.HeaderContainer .MainNav .PrimaryMenu .ItemMenu:active{color:rgb(255, 255, 255)}.HeaderContainer .MainNav .AuthButtons{display:flex;flex-direction:row;justify-content:center;align-items:center}.HeaderContainer .MainNav .AuthButtons .Item{gap:5px;padding:0 25px;display:flex;align-items:center;color:white}.HeaderContainer .MainNav .AuthButtons .Item.ItemLogin{border:1px solid var(--emw--color-primary);font-size:14px;height:36px;text-align:center;margin-right:10px;position:relative;cursor:pointer;border-radius:var(--emw--border-radius-medium, 10px)}.HeaderContainer .MainNav .AuthButtons .Item.ItemLogin:hover{color:white;background:var(--emw--color-primary);opacity:0.6}.HeaderContainer .MainNav .AuthButtons .Item.ItemLogin:active{background:var(--emw--color-primary);opacity:0.6}.HeaderContainer .MainNav .AuthButtons .Item.ItemRegister{background:var(--emw--color-primary);border-radius:var(--emw--border-radius-medium, 10px);font-size:14px;height:36px;text-align:center;line-height:44px;cursor:pointer}.HeaderContainer .MainNav .AuthButtons .Item.ItemRegister:hover{background:linear-gradient(180deg, rgb(35, 178, 78) 0%, rgb(26, 205, 80) 100%) padding-box, linear-gradient(0deg, rgba(35, 178, 78, 0.2) 0%, rgba(26, 205, 80, 0.2) 100%) border-box}.HeaderContainer .MainNav .AuthButtons .Item.ItemRegister:active{background:linear-gradient(0deg, rgb(35, 178, 78) 0%, rgb(26, 205, 80) 100%) padding-box, linear-gradient(180deg, rgba(35, 178, 78, 0.2) 0%, rgba(26, 205, 80, 0.2) 100%) border-box}.HeaderContainer .MainNav .AuthButtons .Item svg{width:15px;height:15px;fill:white;padding-bottom:2px}.HeaderContainer .MainNav .LanguageSelector{align-content:center;cursor:pointer;transform:all 0.3s linear;color:white}.HeaderContainer .MainNav .LanguageSelector .SelectedOption{display:flex;align-items:center;justify-content:center}.HeaderContainer .MainNav .LanguageSelector .SelectedOption .TriangleActive,.HeaderContainer .MainNav .LanguageSelector .SelectedOption .TriangleInactive{display:block;margin:0 0 0 10px;transition:all 0.2s}.HeaderContainer .MainNav .LanguageSelector .SelectedOption .TriangleActive:hover,.HeaderContainer .MainNav .LanguageSelector .SelectedOption .TriangleInactive:hover{transform:scale(1.2)}.HeaderContainer .MainNav .LanguageSelector .SelectedOption .TriangleActive svg,.HeaderContainer .MainNav .LanguageSelector .SelectedOption .TriangleInactive svg{margin:2px 0px}.HeaderContainer .MainNav .LanguageSelector .SelectedOption .TriangleActive{transform:scale(1.1) rotateX(180deg);margin-bottom:5px}.HeaderContainer .MainNav .LanguageSelector .SelectedOption .TriangleActive:hover{transform:scale(1.1) rotateX(180deg)}.HeaderContainer .MainNav .LanguageSelector img.LanguageName{width:30px;border-radius:10px}.HeaderContainer .MainNav .LanguageSelector .LanguageName .ItemLanguage{display:flex;justify-content:space-around}.HeaderContainer .MainNav .LanguageSelector .LanguageName svg{width:30px;border-radius:10px}.HeaderContainer .MainNav .LanguageSelector .OptionList{border:1px solid var(--emw--header-color-primary);padding:10px;position:absolute;cursor:pointer;display:flex;gap:4px;flex-direction:column;border-radius:var(--emw--border-radius-medium, 10px);transition:all 0.4s ease;opacity:0;visibility:hidden;z-index:6;right:5px;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%)}.HeaderContainer .MainNav .LanguageSelector .OptionList.Active{opacity:1;visibility:visible}.HeaderContainer .MainNav .LanguageSelector .OptionList .FlagIcon>img{width:16px;border-radius:5px;margin-right:5px}.HeaderContainer .MainNav .LanguageSelector .OptionList .LanguageOption{display:flex;align-items:center;transform:scale(1.1);gap:3px;padding:7px}.HeaderContainer .MainNav .LanguageSelector .OptionList .LanguageOption:hover{transition:color 0.2s;color:var(--emw--color-primary);background:var(--emw--color-primary) transparent;box-shadow:inset 0px 0px 0px 2px var(--emw--color-primary);border-radius:var(--emw--border-radius-medium, 10px);box-sizing:border-box}.HeaderContainer .Separator{width:100%;height:5px;background:rgb(0, 0, 0);background:linear-gradient(90deg, rgb(0, 0, 0) 0%, rgb(35, 172, 77) 50%, rgb(0, 0, 0) 100%);z-index:3}.HeaderContainer .SecondaryNav{width:100%;height:50px;display:flex;align-items:center;background:linear-gradient(90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);z-index:3}.HeaderContainer .SecondaryNav .LeftSpace{width:10%}.HeaderContainer .SecondaryNav .SecondaryMenuContent{text-transform:uppercase;margin:0 20px;color:white;transition:color 0.5s;display:flex;cursor:pointer;user-select:none;gap:20px}.HeaderContainer .SecondaryNav .SecondaryMenuContent .ItemSecondary{transition:color 0.5s}.HeaderContainer .SecondaryNav .SecondaryMenuContent .ItemSecondary .Active{color:black}.HeaderContainer .SecondaryNav .SecondaryMenuContent .ItemSecondary .Active:hover{opacity:0.5;color:white}.HeaderContainer .SecondaryNav .SecondaryMenuContent .ItemSecondary:hover{color:black}.HeaderContainer .SecondaryNav .SecondaryMenuContent .ItemSecondary:active{color:white}.HeaderContainer .OptionListOverlay{position:fixed;top:0;bottom:0;left:0;right:0;z-index:5}.HeaderContainer .CloseButton{padding:0;margin:0;border:none;background:none;color:var(--emw--color-white, #FFFFFF);display:flex;align-items:center}.HeaderContainer .CloseButton svg{fill:var(--emw--color-white, #FFFFFF)}@keyframes ModalBounce{0%{opacity:0;transform:translateY(20px)}50%{transform:translateY(-6px);opacity:0.8}100%{transform:translateY(0);opacity:1}}input,textarea,button{font-family:inherit}.HeaderSlider{width:100%;height:400px}.ClosePopUpButtonShortCashier{margin-left:auto;cursor:pointer}.ClosePopUpButtonShortCashier svg{position:absolute;top:10px;right:10px}.ShortCashierWindow{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}.ShortCashierContainerWrapper{position:relative;animation:ModalBounce 0.5s forwards;z-index:17;right:60%}.ShortCashierContainer{background-color:var(--emw--color-white, #FFFFFF);position:absolute;width:360px;top:16px;transform:translateX(-60%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 10px);z-index:17;box-shadow:0px 5px 20px 0px #191919}.ShortCashierContainer:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:84%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.ShortCashierContainerWrapperMobile{position:relative;animation:ModalBounce 0.5s forwards;right:110%;z-index:17}.ShortCashierContainerMobile{background-color:var(--emw--color-white, #FFFFFF);position:absolute;width:80vw;top:14px;left:50%;transform:translateX(-60%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.ShortCashierContainerMobile:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:84%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.HeaderWrapper{background:var(--emw--header-color-menu-bg, var(--emw--color-background-secondary, #050518))}.HeaderMainNav{text-align:left}.HeaderTopActions{text-align:right;margin-left:auto}.HeaderSecondaryNav{flex-direction:row;width:100%;background:var(--emw--header-color-secondary-menu-bg, var(--emw--color-background-secondary, #050518));border-top:1px solid var(--emw--color-gray-300, #58586B)}.HeaderItemsMenu{gap:8px;display:flex;align-content:flex-start;list-style:none;text-transform:uppercase;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));font-size:16px;align-items:center}.HeaderItemsMenu .Item:hover .HeaderSecondaryNav{display:block}.HeaderItemsMenu .Item{gap:2px;padding:0 12px;display:flex;align-items:center}.HeaderItemsMenu.PrimaryMenu{gap:10px}.ItemDeposit{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.ItemLanguage{height:44px;width:74px;text-align:center;line-height:44px;background:transparent;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));border:none;cursor:pointer;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.ItemLanguage option{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF))}.ItemLanguage.NoFlag{background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23FFFFFF' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--header-color-menu-bg, var(--emw--color-background-secondary, #050518));background-position:calc(100% - 0.75rem) center;width:90px;margin-right:6px}.ItemBalance{background:transparent;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));border:0}.ItemAccount{cursor:pointer}.ItemAccount svg{width:20px;height:20px}.HeaderItemsMenuSecondary{display:flex;flex-direction:row;align-content:flex-start;align-items:center;height:60px;list-style:none;text-transform:uppercase;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));font-size:14px;max-width:1280px;margin:0 auto;overflow-y:hidden;overflow-x:auto;padding:0}.HeaderItemsMenuSecondary .ItemSecondary{width:auto;height:100%;display:flex;justify-content:center;padding:0 15px;font-weight:600;transition-duration:0.15s}.HeaderItemsMenuSecondary .ItemSecondary button{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;border:none;background:none;font-size:14px;font-weight:600;text-transform:uppercase;cursor:pointer}.HeaderItemsMenuSecondary .ItemSecondary button:hover{color:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.HeaderItemsMenuSecondary .ItemSecondary button:focus{color:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.HeaderItemsMenuSecondary .ItemSecondary button:visited{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF))}.HeaderItemsMenuSecondary .ItemSecondary button:focus-visible{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));outline:none}.HeaderItemsMenuSecondary .ItemSecondary.active{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.HeaderSliderMobile{background-position:bottom}.HeaderMobileWrapper .HeaderContainer{height:55px;padding:0 15px;gap:10px}@media only screen and (max-width: 360px){.HeaderMobileWrapper .HeaderContainer{padding:0 5px}}.HeaderMobileWrapper .HeaderItemsMenu .Item{padding:0 10px;display:block;width:unset}.HeaderMobileWrapper .HeaderItemsMenu .ItemBalance{font-size:12px}.HeaderMobileWrapper .HeaderItemsMenu .ItemAccount{padding:0}.HeaderMobileWrapper .ItemRegister,.HeaderMobileWrapper .ItemDeposit,.HeaderMobileWrapper .ItemLogin{height:30px;line-height:30px;font-size:12px}.HeaderMobileWrapper .ItemLogin{margin-right:10px}.ActiveBonusesBadge{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;border-radius:50%;background-color:var(--emw--active-bonuses-badge-bg, #FF6B00);color:var(--emw--active-bonuses-badge-color, #FFFFFF);font-size:10px;font-weight:bold;display:flex;align-items:center;justify-content:center;line-height:1;padding:1px 3px;box-sizing:border-box;pointer-events:none;z-index:1}`)}function Fn(e,t,r){const n=e.slice();return n[156]=t[r],n}function Hl(e,t,r){const n=e.slice();return n[153]=t[r],n}function Rn(e,t,r){const n=e.slice();return n[159]=t[r],n}const Ml=e=>({}),Dn=e=>({}),Al=e=>({}),Un=e=>({}),Cl=e=>({}),Gn=e=>({}),Bl=e=>({}),jn=e=>({});function zn(e,t,r){const n=e.slice();return n[164]=t[r],n}function Il(e,t,r){const n=e.slice();return n[153]=t[r],n}const Tl=e=>({}),Wn=e=>({});function Ll(e){let t,r,n,i,o,a,l=e[48]&&Vn(e);const u=e[91].logo,c=Ze(u,e,e[90],Wn),f=c||Pl(e);return{c(){l&&l.c(),t=O(),r=v("div"),n=v("div"),f&&f.c(),m(n,"class","HeaderBranding"),m(r,"class","Logo")},m(h,d){l&&l.m(h,d),B(h,t,d),B(h,r,d),g(r,n),f&&f.m(n,null),i=!0,o||(a=Z(n,"click",e[94]),o=!0)},p(h,d){h[48]?l?l.p(h,d):(l=Vn(h),l.c(),l.m(t.parentNode,t)):l&&(l.d(1),l=null),c?c.p&&(!i||d[2]&268435456)&&Je(c,u,h,h[90],i?Ye(u,h[90],d,Tl):Qe(h[90]),Wn):f&&f.p&&(!i||d[2]&128)&&f.p(h,i?d:[-1,-1,-1,-1,-1,-1])},i(h){i||(_e(f,h),i=!0)},o(h){Ae(f,h),i=!1},d(h){h&&(C(t),C(r)),l&&l.d(h),f&&f.d(h),o=!1,a()}}}function Nl(e){let t,r,n,i=e[70]("closeButton")+"",o,a,l;return{c(){t=v("button"),r=v("span"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24"><path d="M13.414 12l4.95-4.95-1.414-1.414-4.95 4.95-4.95-4.95L5.636 7.05l4.95 4.95-4.95 4.95 1.414 1.414 4.95-4.95 4.95 4.95 1.414-1.414-4.95-4.95z"></path></svg>',n=O(),o=ie(i),m(r,"class",""),m(t,"type","button"),m(t,"class","CloseButton")},m(u,c){B(u,t,c),g(t,r),g(t,n),g(t,o),a||(l=Z(t,"click",e[93]),a=!0)},p(u,c){c[2]&256&&i!==(i=u[70]("closeButton")+"")&&le(o,i)},i:ee,o:ee,d(u){u&&C(t),a=!1,l()}}}function Vn(e){let t,r,n,i,o,a,l,u,c,f;return{c(){t=v("div"),r=v("div"),n=v("span"),i=O(),o=v("span"),a=O(),l=v("span"),m(r,"class",u="NavIcon "+(e[64]?"Open":"")),m(t,"class","HeaderMobileMainNav")},m(h,d){B(h,t,d),g(t,r),g(r,n),g(r,i),g(r,o),g(r,a),g(r,l),c||(f=Z(r,"click",e[76]),c=!0)},p(h,d){d[2]&4&&u!==(u="NavIcon "+(h[64]?"Open":""))&&m(r,"class",u)},d(h){h&&C(t),c=!1,f()}}}function Pl(e){let t,r;return{c(){t=v("img"),Ne(t.src,r=e[69])||m(t,"src",r),m(t,"alt","Logo")},m(n,i){B(n,t,i)},p(n,i){i[2]&128&&!Ne(t.src,r=n[69])&&m(t,"src",r)},d(n){n&&C(t)}}}function Xn(e){let t;function r(o,a){return o[57]?kl:Ol}let n=r(e),i=n(e);return{c(){i.c(),t=nt()},m(o,a){i.m(o,a),B(o,t,a)},p(o,a){n===(n=r(o))&&i?i.p(o,a):(i.d(1),i=n(o),i&&(i.c(),i.m(t.parentNode,t)))},d(o){o&&C(t),i.d(o)}}}function Ol(e){let t,r,n=e[59]&&(e[46]==="true"?e[62]:e[61]||e[60])&&Zn(e),i=Ee(e[54]),o=[];for(let a=0;a<i.length;a+=1)o[a]=Qn(zn(e,i,a));return{c(){n&&n.c(),t=O();for(let a=0;a<o.length;a+=1)o[a].c();r=nt()},m(a,l){n&&n.m(a,l),B(a,t,l);for(let u=0;u<o.length;u+=1)o[u]&&o[u].m(a,l);B(a,r,l)},p(a,l){if(a[59]&&(a[46]==="true"?a[62]:a[61]||a[60])?n?n.p(a,l):(n=Zn(a),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),l[1]&8650752|l[2]&8192){i=Ee(a[54]);let u;for(u=0;u<i.length;u+=1){const c=zn(a,i,u);o[u]?o[u].p(c,l):(o[u]=Qn(c),o[u].c(),o[u].m(r.parentNode,r))}for(;u<o.length;u+=1)o[u].d(1);o.length=i.length}},d(a){a&&(C(t),C(r)),n&&n.d(a),rt(o,a)}}}function kl(e){let t,r=Ee(new Array(6)),n=[];for(let i=0;i<r.length;i+=1)n[i]=Fl(Il(e,r,i));return{c(){for(let i=0;i<n.length;i+=1)n[i].c();t=nt()},m(i,o){for(let a=0;a<n.length;a+=1)n[a]&&n[a].m(i,o);B(i,t,o)},p:ee,d(i){i&&C(t),rt(n,i)}}}function Zn(e){let t,r,n=(e[46]==="true"?e[62]:e[61]||e[60])+"",i,o,a,l,u,c,f=e[45]==="true"&&e[68]>0&&Yn(e);return{c(){t=v("div"),r=v("p"),i=ie(n),o=O(),a=v("div"),l=O(),f&&f.c(),m(a,"class","MenuHover"),m(t,"class","ItemMenu ItemUsername")},m(h,d){B(h,t,d),g(t,r),g(r,i),g(t,o),g(t,a),g(t,l),f&&f.m(t,null),u||(c=Z(t,"click",e[95]),u=!0)},p(h,d){d[1]&1610645504|d[2]&1&&n!==(n=(h[46]==="true"?h[62]:h[61]||h[60])+"")&&le(i,n),h[45]==="true"&&h[68]>0?f?f.p(h,d):(f=Yn(h),f.c(),f.m(t,null)):f&&(f.d(1),f=null)},d(h){h&&C(t),f&&f.d(),u=!1,c()}}}function Yn(e){let t,r;return{c(){t=v("span"),r=ie(e[68]),m(t,"class","ActiveBonusesBadge")},m(n,i){B(n,t,i),g(t,r)},p(n,i){i[2]&64&&le(r,n[68])},d(n){n&&C(t)}}}function Jn(e){let t,r=e[164].tag+"",n,i;return{c(){t=v("span"),n=ie(r),m(t,"title",i=e[164].tag),m(t,"class","MenuItemTag")},m(o,a){B(o,t,a),g(t,n)},p(o,a){a[1]&8388608&&r!==(r=o[164].tag+"")&&le(n,r),a[1]&8388608&&i!==(i=o[164].tag)&&m(t,"title",i)},d(o){o&&C(t)}}}function Qn(e){var M;let t,r,n=e[164].label+"",i,o,a,l,u,c,f,h,d=((M=e[164])==null?void 0:M.tag)&&Jn(e);function _(){return e[96](e[164])}return{c(){t=v("div"),r=v("p"),i=ie(n),o=O(),a=v("div"),l=O(),d&&d.c(),u=O(),m(a,"class","MenuHover"),m(t,"class",c="ItemMenu "+(e[164].id==e[49]?"Active":""))},m(y,L){B(y,t,L),g(t,r),g(r,i),g(t,o),g(t,a),g(t,l),d&&d.m(t,null),g(t,u),f||(h=Z(t,"click",_),f=!0)},p(y,L){var N;e=y,L[1]&8388608&&n!==(n=e[164].label+"")&&le(i,n),(N=e[164])!=null&&N.tag?d?d.p(e,L):(d=Jn(e),d.c(),d.m(t,u)):d&&(d.d(1),d=null),L[1]&8650752&&c!==(c="ItemMenu "+(e[164].id==e[49]?"Active":""))&&m(t,"class",c)},d(y){y&&C(t),d&&d.d(),f=!1,h()}}}function Fl(e){let t;return{c(){t=v("div"),m(t,"class","Skeleton SkeletonText")},m(r,n){B(r,t,n)},p:ee,d(r){r&&C(t)}}}function Rl(e){let t,r,n,i=e[70]("login")+"",o,a,l,u,c,f,h,d=e[70]("register")+"",_,M,y,L,N,x;return{c(){t=v("div"),r=v("div"),n=v("p"),o=ie(i),a=O(),l=be("svg"),u=be("path"),c=O(),f=v("div"),h=v("p"),_=ie(d),M=O(),y=be("svg"),L=be("path"),m(u,"d","M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"),m(l,"xmlns","http://www.w3.org/2000/svg"),m(l,"viewBox","0 0 448 512"),m(r,"class","Item ItemLogin"),m(L,"d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"),m(y,"xmlns","http://www.w3.org/2000/svg"),m(y,"viewBox","0 0 320 512"),m(f,"class","Item ItemRegister"),m(t,"class","AuthButtons")},m(A,T){B(A,t,T),g(t,r),g(r,n),g(n,o),g(r,a),g(r,l),g(l,u),g(t,c),g(t,f),g(f,h),g(h,_),g(f,M),g(f,y),g(y,L),N||(x=[Z(r,"click",e[105]),Z(f,"click",e[106])],N=!0)},p(A,T){T[2]&256&&i!==(i=A[70]("login")+"")&&le(o,i),T[2]&256&&d!==(d=A[70]("register")+"")&&le(_,d)},d(A){A&&C(t),N=!1,de(x)}}}function Dl(e){let t,r,n,i,o,a,l,u,c,f=e[70]("deposit")+"",h,d,_,M,y,L,N,x,A,T,G,J,H,ce,k,V=e[42]==="true"&&!e[48]&&qn(e),X=e[65]&&Kn(e),j=e[45]==="true"&&e[68]>0&&$n(e);return{c(){V&&V.c(),t=O(),r=v("div"),n=v("div"),i=v("player-account-balance-modal-nd"),a=O(),l=v("div"),u=v("div"),c=v("p"),h=ie(f),d=O(),X&&X.c(),M=O(),y=v("div"),N=O(),x=v("div"),A=v("div"),T=be("svg"),G=be("g"),J=be("path"),H=O(),j&&j.c(),p(i,"session",e[1]),p(i,"userid",e[2]),p(i,"endpoint",e[3]),p(i,"mbsource",e[30]),p(i,"lang",e[6]),p(i,"clientstyling",e[31]),p(i,"clientstylingurl",e[32]),p(i,"gmversion",e[11]),p(i,"displaybalanceoption",e[13]),p(i,"shownegativebalance",e[17]),p(i,"totalcalculationmode",e[37]),p(i,"primarybalancemode",e[38]),p(i,"currencydisplay",e[33]),p(i,"maximumfractiondigits",e[34]),p(i,"minimumfractiondigits",e[35]),p(i,"customdisplayformat",e[36]),p(i,"balancelimitsbutton",e[39]),p(i,"activebonusesbutton",e[40]),p(i,"hideproducttype",e[41]),p(i,"currencylocale",e[10]),m(n,"class",o="Balance "+(e[66]?"Open":"")),m(u,"class","DepositButton"),m(l,"class",_="Deposit "+(e[66]?"Open":"")),m(y,"class",L="Background "+(e[66]?"Open":"")),m(r,"class","BalanceDepositWrapper"),m(J,"class","a"),m(J,"d","M15.5,4a3.75,3.75,0,1,0,3.75,3.75A3.761,3.761,0,0,0,15.5,4Zm0,1.429A2.321,2.321,0,1,1,13.179,7.75,2.311,2.311,0,0,1,15.5,5.429Zm0,6.429A7.7,7.7,0,0,0,8,19.714a.714.714,0,0,0,.714.714H22.286A.714.714,0,0,0,23,19.714,7.7,7.7,0,0,0,15.5,11.857Zm0,1.429A6.18,6.18,0,0,1,21.5,19H9.5A6.18,6.18,0,0,1,15.5,13.286Z"),m(J,"transform","translate(0 0)"),m(G,"transform","translate(-8 -4)"),m(T,"xmlns","http://www.w3.org/2000/svg"),m(T,"viewBox","0 0 15 16.429"),m(A,"class","ProfileWrapper"),m(x,"class","Profile")},m(w,P){V&&V.m(w,P),B(w,t,P),B(w,r,P),g(r,n),g(n,i),e[98](n),g(r,a),g(r,l),g(l,u),g(u,c),g(c,h),g(l,d),X&&X.m(l,null),e[102](l),g(r,M),g(r,y),e[103](y),B(w,N,P),B(w,x,P),g(x,A),g(A,T),g(T,G),g(G,J),g(A,H),j&&j.m(A,null),ce||(k=[Z(u,"click",e[99]),Z(A,"click",e[104])],ce=!0)},p(w,P){w[42]==="true"&&!w[48]?V?V.p(w,P):(V=qn(w),V.c(),V.m(t.parentNode,t)):V&&(V.d(1),V=null),P[0]&2&&p(i,"session",w[1]),P[0]&4&&p(i,"userid",w[2]),P[0]&8&&p(i,"endpoint",w[3]),P[0]&1073741824&&p(i,"mbsource",w[30]),P[0]&64&&p(i,"lang",w[6]),P[1]&1&&p(i,"clientstyling",w[31]),P[1]&2&&p(i,"clientstylingurl",w[32]),P[0]&2048&&p(i,"gmversion",w[11]),P[0]&8192&&p(i,"displaybalanceoption",w[13]),P[0]&131072&&p(i,"shownegativebalance",w[17]),P[1]&64&&p(i,"totalcalculationmode",w[37]),P[1]&128&&p(i,"primarybalancemode",w[38]),P[1]&4&&p(i,"currencydisplay",w[33]),P[1]&8&&p(i,"maximumfractiondigits",w[34]),P[1]&16&&p(i,"minimumfractiondigits",w[35]),P[1]&32&&p(i,"customdisplayformat",w[36]),P[1]&256&&p(i,"balancelimitsbutton",w[39]),P[1]&512&&p(i,"activebonusesbutton",w[40]),P[1]&1024&&p(i,"hideproducttype",w[41]),P[0]&1024&&p(i,"currencylocale",w[10]),P[2]&16&&o!==(o="Balance "+(w[66]?"Open":""))&&m(n,"class",o),P[2]&256&&f!==(f=w[70]("deposit")+"")&&le(h,f),w[65]?X?X.p(w,P):(X=Kn(w),X.c(),X.m(l,null)):X&&(X.d(1),X=null),P[2]&16&&_!==(_="Deposit "+(w[66]?"Open":""))&&m(l,"class",_),P[2]&16&&L!==(L="Background "+(w[66]?"Open":""))&&m(y,"class",L),w[45]==="true"&&w[68]>0?j?j.p(w,P):(j=$n(w),j.c(),j.m(A,null)):j&&(j.d(1),j=null)},d(w){w&&(C(t),C(r),C(N),C(x)),V&&V.d(w),e[98](null),X&&X.d(),e[102](null),e[103](null),j&&j.d(),ce=!1,de(k)}}}function qn(e){let t,r;return{c(){t=v("div"),r=v("gamification-dropdown"),p(r,"session",e[1]),p(r,"endpoint",e[3]),p(r,"mb-source",e[30]),p(r,"language",e[6]),p(r,"client-styling",e[31]),p(r,"client-styling-url",e[32]),p(r,"translation-url",e[9]),m(t,"class","GamificationWrapper")},m(n,i){B(n,t,i),g(t,r)},p(n,i){i[0]&2&&p(r,"session",n[1]),i[0]&8&&p(r,"endpoint",n[3]),i[0]&1073741824&&p(r,"mb-source",n[30]),i[0]&64&&p(r,"language",n[6]),i[1]&1&&p(r,"client-styling",n[31]),i[1]&2&&p(r,"client-styling-url",n[32]),i[0]&512&&p(r,"translation-url",n[9])},d(n){n&&C(t)}}}function Kn(e){let t,r,n,i,o,a,l,u;function c(d,_){return d[11]==="gmcore"?Gl:Ul}let f=c(e),h=f(e);return{c(){t=v("div"),r=O(),n=v("div"),i=v("div"),o=v("div"),o.innerHTML='<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><line x1="2" y1="2" x2="18" y2="18" stroke-width="2"></line><line x1="18" y1="2" x2="2" y2="18" stroke-width="2"></line></svg>',a=O(),h.c(),m(t,"class","ShortCashierWindow"),m(o,"class","ClosePopUpButtonShortCashier"),m(i,"class","ShortCashierContainerMobile"),m(n,"class","ShortCashierContainerWrapperMobile")},m(d,_){B(d,t,_),B(d,r,_),B(d,n,_),g(n,i),g(i,o),g(i,a),h.m(i,null),l||(u=[Z(t,"click",e[100]),Z(o,"click",e[101])],l=!0)},p(d,_){f===(f=c(d))&&h?h.p(d,_):(h.d(1),h=f(d),h&&(h.c(),h.m(i,null)))},d(d){d&&(C(t),C(r),C(n)),h.d(),l=!1,de(u)}}}function Ul(e){let t,r,n,i,o,a,l,u,c,f;return{c(){t=v("user-deposit-withdrawal"),p(t,"endpoint",e[3]),p(t,"type","deposit"),p(t,"channel","Mobile"),p(t,"language",e[6]),p(t,"mb-source",e[30]),p(t,"is-short-cashier",e[19]),p(t,"product-type",e[20]),p(t,"user-id",e[2]),p(t,"session",e[1]),p(t,"enable-step-up-auth",r=e[44]==="true"),p(t,"success-url",n="https://"+window.location.hostname+"/"+e[6]+e[21]),p(t,"cancel-url",i="https://"+window.location.hostname+"/"+e[6]+e[23]),p(t,"fail-url",o="https://"+window.location.hostname+"/"+e[6]+e[22]),p(t,"sports-url",a="https://"+window.location.hostname+"/"+e[6]+e[24]),p(t,"casino-url",l="https://"+window.location.hostname+"/"+e[6]+e[25]),p(t,"contact-url",u="https://"+window.location.hostname+"/"+e[6]+e[26]),p(t,"home-url",c="https://"+window.location.hostname+"/"+e[6]+e[27]),p(t,"deposit-url",f="https://"+window.location.hostname+"/"+e[6]+e[28])},m(h,d){B(h,t,d)},p(h,d){d[0]&8&&p(t,"endpoint",h[3]),d[0]&64&&p(t,"language",h[6]),d[0]&1073741824&&p(t,"mb-source",h[30]),d[0]&524288&&p(t,"is-short-cashier",h[19]),d[0]&1048576&&p(t,"product-type",h[20]),d[0]&4&&p(t,"user-id",h[2]),d[0]&2&&p(t,"session",h[1]),d[1]&8192&&r!==(r=h[44]==="true")&&p(t,"enable-step-up-auth",r),d[0]&2097216&&n!==(n="https://"+window.location.hostname+"/"+h[6]+h[21])&&p(t,"success-url",n),d[0]&8388672&&i!==(i="https://"+window.location.hostname+"/"+h[6]+h[23])&&p(t,"cancel-url",i),d[0]&4194368&&o!==(o="https://"+window.location.hostname+"/"+h[6]+h[22])&&p(t,"fail-url",o),d[0]&16777280&&a!==(a="https://"+window.location.hostname+"/"+h[6]+h[24])&&p(t,"sports-url",a),d[0]&33554496&&l!==(l="https://"+window.location.hostname+"/"+h[6]+h[25])&&p(t,"casino-url",l),d[0]&67108928&&u!==(u="https://"+window.location.hostname+"/"+h[6]+h[26])&&p(t,"contact-url",u),d[0]&134217792&&c!==(c="https://"+window.location.hostname+"/"+h[6]+h[27])&&p(t,"home-url",c),d[0]&268435520&&f!==(f="https://"+window.location.hostname+"/"+h[6]+h[28])&&p(t,"deposit-url",f)},d(h){h&&C(t)}}}function Gl(e){let t;return{c(){t=v("player-deposit"),p(t,"endpoint",e[3]),p(t,"session",e[1]),p(t,"mbsource",e[30]),p(t,"playerid",e[2]),p(t,"lang",e[6]),p(t,"hasdefaultamount",e[15]),p(t,"playercurrency",e[16]),p(t,"shortcashierenabled",e[19]),p(t,"clientstyling",e[31]),p(t,"clientstylingurl",e[32])},m(r,n){B(r,t,n)},p(r,n){n[0]&8&&p(t,"endpoint",r[3]),n[0]&2&&p(t,"session",r[1]),n[0]&1073741824&&p(t,"mbsource",r[30]),n[0]&4&&p(t,"playerid",r[2]),n[0]&64&&p(t,"lang",r[6]),n[0]&32768&&p(t,"hasdefaultamount",r[15]),n[0]&65536&&p(t,"playercurrency",r[16]),n[0]&524288&&p(t,"shortcashierenabled",r[19]),n[1]&1&&p(t,"clientstyling",r[31]),n[1]&2&&p(t,"clientstylingurl",r[32])},d(r){r&&C(t)}}}function $n(e){let t,r;return{c(){t=v("span"),r=ie(e[68]),m(t,"class","ActiveBonusesBadge")},m(n,i){B(n,t,i),g(t,r)},p(n,i){i[2]&64&&le(r,n[68])},d(n){n&&C(t)}}}function ei(e){let t,r=e[63].length>1&&ti(e);return{c(){t=v("div"),r&&r.c(),m(t,"class","LanguageSelector")},m(n,i){B(n,t,i),r&&r.m(t,null)},p(n,i){n[63].length>1?r?r.p(n,i):(r=ti(n),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(n){n&&C(t),r&&r.d()}}}function ti(e){let t,r,n,i,o,a,l,u,c,f,h,d;function _(x,A){return x[12]=="true"?zl:jl}let M=_(e),y=M(e),L=Ee(e[63]),N=[];for(let x=0;x<L.length;x+=1)N[x]=ni(Rn(e,L,x));return{c(){t=v("div"),r=v("div"),y.c(),n=O(),i=v("span"),o=be("svg"),a=be("path"),u=O(),c=v("div");for(let x=0;x<N.length;x+=1)N[x].c();m(a,"id","arrow"),m(a,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),m(a,"transform","translate(-274.511 -441.088)"),m(a,"fill","#d1d1d1"),m(o,"xmlns","http://www.w3.org/2000/svg"),m(o,"width","14"),m(o,"height","6.835"),m(o,"viewBox","0 0 14 6.835"),m(i,"class",l=e[58]?"TriangleActive":"TriangleInactive"),m(r,"class","SelectedOption"),m(t,"class","LanguageDropdown"),m(c,"class",f="OptionList "+(e[58]?"Active":""))},m(x,A){B(x,t,A),g(t,r),y.m(r,null),g(r,n),g(r,i),g(i,o),g(o,a),B(x,u,A),B(x,c,A);for(let T=0;T<N.length;T+=1)N[T]&&N[T].m(c,null);h||(d=Z(r,"click",e[107]),h=!0)},p(x,A){if(M===(M=_(x))&&y?y.p(x,A):(y.d(1),y=M(x),y&&(y.c(),y.m(r,n))),A[1]&134217728&&l!==(l=x[58]?"TriangleActive":"TriangleInactive")&&m(i,"class",l),A[0]&4096|A[2]&655362){L=Ee(x[63]);let T;for(T=0;T<L.length;T+=1){const G=Rn(x,L,T);N[T]?N[T].p(G,A):(N[T]=ni(G),N[T].c(),N[T].m(c,null))}for(;T<N.length;T+=1)N[T].d(1);N.length=L.length}A[1]&134217728&&f!==(f="OptionList "+(x[58]?"Active":""))&&m(c,"class",f)},d(x){x&&(C(t),C(u),C(c)),y.d(),rt(N,x),h=!1,d()}}}function jl(e){let t,r;return{c(){t=v("span"),r=ie(e[67]),m(t,"class","LanguageName")},m(n,i){B(n,t,i),g(t,r)},p(n,i){i[2]&32&&le(r,n[67])},d(n){n&&C(t)}}}function zl(e){let t,r;return{c(){t=v("img"),m(t,"class","LanguageName"),Ne(t.src,r=`http://purecatamphetamine.github.io/country-flag-icons/3x2/${e[81](e[56])}.svg`)||m(t,"src",r),m(t,"alt","flag")},m(n,i){B(n,t,i)},p(n,i){i[1]&33554432&&!Ne(t.src,r=`http://purecatamphetamine.github.io/country-flag-icons/3x2/${n[81](n[56])}.svg`)&&m(t,"src",r)},d(n){n&&C(t)}}}function ri(e){let t,r,n;return{c(){t=v("span"),r=v("img"),Ne(r.src,n=`http://purecatamphetamine.github.io/country-flag-icons/3x2/${e[81](e[159])}.svg`)||m(r,"src",n),m(t,"class","FlagIcon")},m(i,o){B(i,t,o),g(t,r)},p(i,o){o[2]&2&&!Ne(r.src,n=`http://purecatamphetamine.github.io/country-flag-icons/3x2/${i[81](i[159])}.svg`)&&m(r,"src",n)},d(i){i&&C(t)}}}function ni(e){let t,r,n,i=e[81](e[159])+"",o,a,l,u,c=e[12]=="true"&&ri(e);function f(){return e[108](e[159])}return{c(){t=v("div"),c&&c.c(),r=O(),n=v("span"),o=ie(i),a=O(),m(n,"class","LanguageName"),m(t,"class","LanguageOption")},m(h,d){B(h,t,d),c&&c.m(t,null),g(t,r),g(t,n),g(n,o),g(t,a),l||(u=Z(t,"click",f),l=!0)},p(h,d){e=h,e[12]=="true"?c?c.p(e,d):(c=ri(e),c.c(),c.m(t,r)):c&&(c.d(1),c=null),d[2]&2&&i!==(i=e[81](e[159])+"")&&le(o,i)},d(h){h&&C(t),c&&c.d(),l=!1,u()}}}function ii(e){let t,r,n,i;function o(u,c){return u[57]?Vl:Wl}let a=o(e),l=a(e);return{c(){t=v("div"),r=v("div"),r.innerHTML='<span class="fi fi-gr"></span> <span class="fi fi-gr fis"></span>',n=O(),i=v("div"),l.c(),m(r,"class","LeftSpace"),m(i,"class","SecondaryMenuContent"),m(t,"class","SecondaryNav")},m(u,c){B(u,t,c),g(t,r),g(t,n),g(t,i),l.m(i,null)},p(u,c){a===(a=o(u))&&l?l.p(u,c):(l.d(1),l=a(u),l&&(l.c(),l.m(i,null)))},d(u){u&&C(t),l.d()}}}function Wl(e){let t,r=Ee(e[55]),n=[];for(let i=0;i<r.length;i+=1)n[i]=oi(Fn(e,r,i));return{c(){for(let i=0;i<n.length;i+=1)n[i].c();t=nt()},m(i,o){for(let a=0;a<n.length;a+=1)n[a]&&n[a].m(i,o);B(i,t,o)},p(i,o){if(o[1]&17039360|o[2]&65536){r=Ee(i[55]);let a;for(a=0;a<r.length;a+=1){const l=Fn(i,r,a);n[a]?n[a].p(l,o):(n[a]=oi(l),n[a].c(),n[a].m(t.parentNode,t))}for(;a<n.length;a+=1)n[a].d(1);n.length=r.length}},d(i){i&&C(t),rt(n,i)}}}function Vl(e){let t,r=Ee(new Array(2)),n=[];for(let i=0;i<r.length;i+=1)n[i]=Xl(Hl(e,r,i));return{c(){for(let i=0;i<n.length;i+=1)n[i].c();t=nt()},m(i,o){for(let a=0;a<n.length;a+=1)n[a]&&n[a].m(i,o);B(i,t,o)},p:ee,d(i){i&&C(t),rt(n,i)}}}function oi(e){let t,r,n=e[156].label+"",i,o,a,l,u;function c(){return e[109](e[156])}return{c(){t=v("span"),r=v("p"),i=ie(n),o=O(),m(t,"class",a="ItemSecondary "+(e[156].id==e[49]?"Active":""))},m(f,h){B(f,t,h),g(t,r),g(r,i),g(t,o),l||(u=Z(r,"click",c),l=!0)},p(f,h){e=f,h[1]&16777216&&n!==(n=e[156].label+"")&&le(i,n),h[1]&17039360&&a!==(a="ItemSecondary "+(e[156].id==e[49]?"Active":""))&&m(t,"class",a)},d(f){f&&C(t),l=!1,u()}}}function Xl(e){let t;return{c(){t=v("div"),m(t,"class","Skeleton SkeletonText")},m(r,n){B(r,t,n)},p:ee,d(r){r&&C(t)}}}function ai(e){let t,r,n;return{c(){t=v("div"),m(t,"class","OptionListOverlay")},m(i,o){B(i,t,o),r||(n=Z(t,"click",e[110]),r=!0)},p:ee,d(i){i&&C(t),r=!1,n()}}}function Zl(e){let t,r,n,i,o,a,l,u,c,f,h,d,_,M,y,L,N,x,A,T,G,J,H,ce,k,V,X;const j=[Nl,Ll],w=[];function P(b,I){return b[43]&&b[0]?0:1}n=P(e),i=w[n]=j[n](e);let Q=!e[48]&&Xn(e);const Oe=e[91].slot4,oe=Ze(Oe,e,e[90],jn);function st(b,I){return b[59]?Dl:Rl}let Ie=st(e),se=Ie(e);const ke=e[91].slot1,ae=Ze(ke,e,e[90],Gn),ve=e[91].slot2,te=Ze(ve,e,e[90],Un),xe=e[91].slot3,re=Ze(xe,e,e[90],Dn);let q=!e[48]&&ei(e),K=!e[48]&&e[55].length>0&&ii(e),$=e[58]&&ai(e);return{c(){t=v("div"),r=v("div"),i.c(),o=O(),a=v("nav"),Q&&Q.c(),l=O(),u=v("div"),oe&&oe.c(),c=O(),se.c(),f=O(),h=v("div"),ae&&ae.c(),d=O(),_=v("div"),te&&te.c(),M=O(),y=v("div"),re&&re.c(),L=O(),q&&q.c(),N=O(),x=v("div"),x.innerHTML="",A=O(),K&&K.c(),T=O(),$&&$.c(),J=O(),H=v("casino-hamburger-menu-nd"),m(a,"class","PrimaryMenu"),m(u,"class","Slot4"),m(h,"class","Slot1"),m(_,"class","Slot2"),m(y,"class","Slot3"),m(r,"class","MainNav"),m(x,"class","Separator"),m(t,"class",G="HeaderContainer "+(e[48]?"Mobile":"")),p(H,"cmsendpoint",e[4]),p(H,"endpoint",e[3]),p(H,"cmsenv",e[5]),p(H,"userroles",e[29]),p(H,"mbsource",e[30]),p(H,"activecategory",e[8]),p(H,"lang",e[6]),p(H,"countryflaghamburger",e[14]),p(H,"customlocaleidentifier",e[10]),p(H,"languageslist",e[7]),p(H,"clientstyling",e[31]),p(H,"clientstylingurl",e[32]),p(H,"session",e[1]),p(H,"userid",e[2]),p(H,"customlogourl",e[69]),p(H,"langtransformmap",e[18]),p(H,"showactivebonusesbadge",e[45]),p(H,"activebonusescount",ce=e[68].toString()),p(H,"showaliasasusername",e[46])},m(b,I){B(b,t,I),g(t,r),w[n].m(r,null),g(r,o),g(r,a),Q&&Q.m(a,null),e[97](a),g(r,l),g(r,u),oe&&oe.m(u,null),g(r,c),se.m(r,null),g(r,f),g(r,h),ae&&ae.m(h,null),g(r,d),g(r,_),te&&te.m(_,null),g(r,M),g(r,y),re&&re.m(y,null),g(r,L),q&&q.m(r,null),g(t,N),g(t,x),g(t,A),K&&K.m(t,null),g(t,T),$&&$.m(t,null),e[111](t),B(b,J,I),B(b,H,I),k=!0,V||(X=[Z(a,"mousedown",e[71]),Z(a,"mouseleave",e[72]),Z(a,"mouseup",e[73]),Z(a,"mousemove",e[74]),Z(a,"click",Ko(e[92]))],V=!0)},p(b,I){let Fe=n;n=P(b),n===Fe?w[n].p(b,I):(di(),Ae(w[Fe],1,1,()=>{w[Fe]=null}),pi(),i=w[n],i?i.p(b,I):(i=w[n]=j[n](b),i.c()),_e(i,1),i.m(r,o)),b[48]?Q&&(Q.d(1),Q=null):Q?Q.p(b,I):(Q=Xn(b),Q.c(),Q.m(a,null)),oe&&oe.p&&(!k||I[2]&268435456)&&Je(oe,Oe,b,b[90],k?Ye(Oe,b[90],I,Bl):Qe(b[90]),jn),Ie===(Ie=st(b))&&se?se.p(b,I):(se.d(1),se=Ie(b),se&&(se.c(),se.m(r,f))),ae&&ae.p&&(!k||I[2]&268435456)&&Je(ae,ke,b,b[90],k?Ye(ke,b[90],I,Cl):Qe(b[90]),Gn),te&&te.p&&(!k||I[2]&268435456)&&Je(te,ve,b,b[90],k?Ye(ve,b[90],I,Al):Qe(b[90]),Un),re&&re.p&&(!k||I[2]&268435456)&&Je(re,xe,b,b[90],k?Ye(xe,b[90],I,Ml):Qe(b[90]),Dn),b[48]?q&&(q.d(1),q=null):q?q.p(b,I):(q=ei(b),q.c(),q.m(r,null)),!b[48]&&b[55].length>0?K?K.p(b,I):(K=ii(b),K.c(),K.m(t,T)):K&&(K.d(1),K=null),b[58]?$?$.p(b,I):($=ai(b),$.c(),$.m(t,null)):$&&($.d(1),$=null),(!k||I[1]&131072&&G!==(G="HeaderContainer "+(b[48]?"Mobile":"")))&&m(t,"class",G),(!k||I[0]&16)&&p(H,"cmsendpoint",b[4]),(!k||I[0]&8)&&p(H,"endpoint",b[3]),(!k||I[0]&32)&&p(H,"cmsenv",b[5]),(!k||I[0]&536870912)&&p(H,"userroles",b[29]),(!k||I[0]&1073741824)&&p(H,"mbsource",b[30]),(!k||I[0]&256)&&p(H,"activecategory",b[8]),(!k||I[0]&64)&&p(H,"lang",b[6]),(!k||I[0]&16384)&&p(H,"countryflaghamburger",b[14]),(!k||I[0]&1024)&&p(H,"customlocaleidentifier",b[10]),(!k||I[0]&128)&&p(H,"languageslist",b[7]),(!k||I[1]&1)&&p(H,"clientstyling",b[31]),(!k||I[1]&2)&&p(H,"clientstylingurl",b[32]),(!k||I[0]&2)&&p(H,"session",b[1]),(!k||I[0]&4)&&p(H,"userid",b[2]),(!k||I[2]&128)&&p(H,"customlogourl",b[69]),(!k||I[0]&262144)&&p(H,"langtransformmap",b[18]),(!k||I[1]&16384)&&p(H,"showactivebonusesbadge",b[45]),(!k||I[2]&64&&ce!==(ce=b[68].toString()))&&p(H,"activebonusescount",ce),(!k||I[1]&32768)&&p(H,"showaliasasusername",b[46])},i(b){k||(_e(i),_e(oe,b),_e(ae,b),_e(te,b),_e(re,b),k=!0)},o(b){Ae(i),Ae(oe,b),Ae(ae,b),Ae(te,b),Ae(re,b),k=!1},d(b){b&&(C(t),C(J),C(H)),w[n].d(),Q&&Q.d(),e[97](null),oe&&oe.d(b),se.d(),ae&&ae.d(b),te&&te.d(b),re&&re.d(b),q&&q.d(),K&&K.d(),$&&$.d(),e[111](null),V=!1,de(X)}}}function Yl(e,t,r){let n,i,o;ui(e,Yi,s=>r(70,o=s));let{$$slots:a={},$$scope:l}=t;const u={"casino-hamburger-menu-nd":{loaded:!1,load:()=>Promise.resolve().then(()=>require("../lazy/casino-hamburger-menu-nd-CyPRbuAF.cjs"))},"player-account-balance-modal-nd":{loaded:!1,load:()=>Promise.resolve().then(()=>require("../lazy/player-account-balance-modal-nd-1_AX0n2O.cjs"))},"player-deposit":{loaded:!1,load:()=>Promise.resolve().then(()=>require("../lazy/player-deposit-DsqqqW7O.cjs"))},"user-deposit-withdrawal":{loaded:!1,load:()=>Promise.resolve().then(()=>require("../stencil/user-deposit-withdrawal-CcrrvIVK.cjs"))},"gamification-dropdown":{loaded:!1,load:()=>Promise.resolve().then(()=>require("../stencil/gamification-dropdown-WlLyuHae.cjs"))}};let{session:c=""}=t,{userid:f=""}=t,{endpoint:h=""}=t,{cmsendpoint:d=""}=t,{cmsenv:_=""}=t,{lang:M="en"}=t,{languageslist:y="en, ro"}=t,{activecategory:L=""}=t,{usefallbackactiveindex:N="true"}=t,{translationurl:x=""}=t,{customlocaleidentifier:A=""}=t,{gmversion:T=""}=t,{countryflagheader:G="false"}=t,{displaybalanceoption:J="All"}=t,{countryflaghamburger:H="false"}=t,{hasdefaultamount:ce=""}=t,{playercurrency:k=""}=t,{shownegativebalance:V="false"}=t,{disablelangtransform:X="false"}=t,{langtransformmap:j=""}=t,{shortcashierenabled:w=""}=t,{producttype:P=""}=t,{successurl:Q=""}=t,{failurl:Oe=""}=t,{cancelurl:oe=""}=t,{sportsurl:st=""}=t,{casinourl:Ie=""}=t,{contacturl:se=""}=t,{homeurl:ke=""}=t,{depositurl:ae=""}=t,{userroles:ve=""}=t,{mbsource:te=""}=t,{clientstyling:xe=""}=t,{clientstylingurl:re=""}=t,{currencydisplay:q="symbol"}=t,{maximumfractiondigits:K="2"}=t,{minimumfractiondigits:$="0"}=t,{customdisplayformat:b=""}=t,{totalcalculationmode:I="totalCashAmount"}=t,{primarybalancemode:Fe}=t,{balancelimitsbutton:Gr=""}=t,{activebonusesbutton:jr=""}=t,{hideproducttype:zr=""}=t,{gamification:wt="false"}=t,{showclosebutton:Wr=!1}=t,{closebuttonactive:Et=!1}=t,{enablestepupauth:Vr="false"}=t,{customlogourl:lt}=t,{filterbykeyword:Re="none"}=t,{showactivebonusesbadge:qt="false"}=t,{showaliasasusername:St="false"}=t,ro,Xr,pe,De,ut,he;wl({withLocale:"en",translations:{}});let xt=!1,Zr=0,Yr=0,z;const no=s=>{var E,Y;s.preventDefault(),xt=!0,z==null||z.classList.add("dragging"),Zr=s.pageX-((E=z==null?void 0:z.offsetLeft)!=null?E:0),Yr=(Y=z==null?void 0:z.scrollLeft)!=null?Y:0},io=s=>{s.preventDefault(),xt=!1,z==null||z.classList.remove("dragging")},oo=s=>{xt=!1,z==null||z.classList.remove("dragging")},ao=s=>{if(!xt||!z)return;s.preventDefault();const Y=(s.pageX-z.offsetLeft-Zr)*1.5;r(53,z.scrollLeft=Yr-Y,z)},so=()=>{fetch(x).then(s=>s.json()).then(s=>{Object.keys(s).forEach(E=>{On(E,s[E])})}).catch(s=>{console.log(s)})};Object.keys(kn).forEach(s=>{On(s,kn[s])});let Kt=[],$t=[],er=[],tr=[],me="",Te,ye,Jr,ct=!0,Ue=!1,rr=!0,ht=!1,nr=!1,ir=window.navigator.userAgent,Ge=!1,He="",Ht="",or="",Mt="",At=[],ft=null,Ct=!1,ar="",sr=!1,Bt=!1,lr,It=0;const dt=s=>{typeof gtag=="function"&>ag("event",s,{context:"HeaderController"})},fe=(s,E)=>{switch(s){case"login":window.postMessage({type:"OpenLoginRegisterModal",transition:"Login"},window.location.href),dt("OpenLoginModal");break;case"register":window.postMessage({type:"OpenLoginRegisterModal",transition:"Register"},window.location.href),dt("OpenRegisterModal");break;case"lobby":window.postMessage({type:"GoToHomepage"},window.location.href),dt("GoToHomepage");break;case"myaccount":window.postMessage({type:"PlayerAccountMenuActive",isMobile:Or(ir)},window.location.href),dt("GoToMyAccount");break;case"deposit":window.postMessage({type:"CloseBalance"},window.location.href),i?(localStorage.getItem("userActionConsents")==="true"?window.postMessage({type:"EnableConsentsModal"},window.location.href):r(65,sr=!0),window.postMessage({type:"DisableScroll"},window.location.href)):window.postMessage({type:"GoToDeposit"},window.location.href),dt("GoToDeposit");break;case"language":r(67,lr=ur()),window.postMessage({type:"LanguageChanged",selectedLanguage:me},window.location.href);break;case"page":window.postMessage({type:"NavigateTo",item:E,path:E.path});break;case"closeLanguageSelector":r(58,ht=!1);break}},lo=()=>{r(64,Ct=!Ct),window.postMessage({type:"OpenHamburgerMenuModal"},window.location.href)},Qr=s=>{if(s.data)switch(s.data.type){case"UserSessionID":r(60,He=s.data.userid),Ht=s.data.session,r(59,Ge=!0),nn(Ht);break;case"ActiveBonusesUpdated":on();break;case"CloseHamburgerMenu":window.postMessage({type:"EnableScroll"},window.location.href),s.data.showhamburger&&r(64,Ct=!1);break;case"LogoutSuccessfull":r(59,Ge=!1),r(68,It=0);break;case"AliasUpdated":St==="true"&&s.data.alias&&r(62,Mt=s.data.alias);break;case"LanguageChanged":s.data.selectedLanguage.toLowerCase()!=M&&r(57,rr=!0),Kr(),tn(ye);break;case"OpenShortCashier":fe("deposit");break;case"CloseShortCashier":Tt();break;case"RequestHeaderHeight":window.postMessage({type:"HeaderHeight",headerHeight:pe.clientHeight},window.location.href);break;case"BalanceModalStatus":r(66,Bt=s.data.status=="open"),qr(Bt);break;case"UpdateBalanceBackground":qr(Bt);break;case"CloseButtonActive":r(0,Et=s.data.isOpen);break}},uo=()=>{if(!ut)return;let s=ut.getBoundingClientRect().width;r(52,he.style.width=`${s}px`,he),r(52,he.style.left=`${De.getBoundingClientRect().width}px`,he)},qr=s=>{if(s&&De){let E=De.getBoundingClientRect().width;r(52,he.style.width=`${E}px`,he),r(52,he.style.left="0px",he)}else uo()},co=()=>{r(59,Ge=!0),Ht=c},Tt=s=>{r(65,sr=!1),window.postMessage({type:"EnableScroll"},window.location.href),s==null||s.stopPropagation()},Kr=()=>{ye=new URL(`${d}/${me.toLowerCase()}/menu`),Te=new URL(`${d}/${me.toLowerCase()}/hamburger-menu`),Jr=new URL(`${d}/${me.toLowerCase()}/op-options/style`);let s=Ji(ir);ye.searchParams.append("env",_),ye.searchParams.append("language",me.toLowerCase()),ye.searchParams.append("userRoles",ve),s&&(s==="PC"?(Te.searchParams.append("device","dk"),ye.searchParams.append("device","dk")):(Te.searchParams.append("device","mtWeb"),ye.searchParams.append("device","mtWeb"))),Te.searchParams.append("env",_),Te.searchParams.append("language",me.toLowerCase()),Te.searchParams.append("userRoles",ve),tn(ye)},ho=()=>{El(M)},fo=()=>{r(56,me=M.toUpperCase()),r(67,lr=ur()),r(63,At=y.replace(/ /g,"").split(",")),r(63,At=At.map(s=>s.toUpperCase())),Kr(),vo(Jr)},po=()=>{r(49,Xr=mo(L,Kt.concat(er)))},mo=(s,E)=>{var D;const Y=E.find(Me=>s===Me.path||`/${M}${s}`.replace(/\/$/,"")===Me.path.replace(/\/$/,"")||$r(s).endsWith($r(Me.path)));if(Y)return Y.id;if(N==="true"){const Me=E.find(jo=>jo.path.split("/").indexOf(s.split("/")[1])>-1);return(D=Me==null?void 0:Me.id)!=null?D:-1}return-1},$r=s=>s.replace(/\/+$/,""),go=(s,E)=>s.filter(Y=>E.includes(Y)),en=s=>s.split(",").filter(Boolean).map(E=>E.trim()),Lt=s=>{if(!Re||Re==="none")return s;const E=en(Re);return E.length===0?s:s.filter(Y=>{const D=en(Y.keyword||"");return D.length===0?!0:go(E,D).length>0})},bo=()=>{r(54,$t=Lt(Kt)),r(55,tr=Lt(er))},tn=s=>(r(87,ct=!0),new Promise((E,Y)=>{fetch(s).then(D=>D.json()).then(D=>{Kt=D.desktop.primary,r(54,$t=Lt(D.desktop.primary)),er=D.desktop.secondary,r(55,tr=Lt(D.desktop.secondary)),r(87,ct=!1),r(57,rr=!1),E(D)},D=>{r(87,ct=!1),console.error(D),Y(D)})})),vo=s=>(r(88,Ue=!1),new Promise((E,Y)=>{fetch(s).then(D=>D.json()).then(D=>{D.logoUrl.length>0&&(D.logoUrl!="null"||D.logoUrl!="false")?(r(89,ar=D.logoUrl),r(88,Ue=!0)):r(88,Ue=!1),E(D)},D=>{r(88,Ue=!1),console.error(D),Y(D)})})),yo=s=>{r(61,or=s.Username),r(60,He=s.UserID),r(59,Ge=!0),on(),St==="true"&&He&&c&&qi(h,He,c).then(E=>{r(62,Mt=E)}).catch(E=>{console.error("Failed to fetch alias:",E)})},rn=()=>{r(59,Ge=!1),Ht=null,r(60,He=null),r(61,or=""),r(62,Mt="")},nn=s=>pt(this,null,function*(){if(!s){rn();return}try{const E=yield Qi(h,s);yo(E)}catch(E){console.error("Error while checking the session:",E),rn()}}),on=()=>{if(qt!=="true"||!c||!He||!h)return;const s=new URL(`${h}/v1/player/${He}/bonusWallet`);s.searchParams.append("filter","status=active"),s.searchParams.append("pagination","offset=0,limit=1"),fetch(s,{method:"GET",headers:{"X-SessionId":c}}).then(E=>E.json()).then(E=>{var Y;r(68,It=(Y=E==null?void 0:E.total)!=null?Y:0)}).catch(E=>{console.error("Error fetching active bonuses count:",E),r(68,It=0)})},an=s=>{var E;window.postMessage({type:"NavigateTo",itemId:s.id,item:s,path:s.path,externalLink:s.externalLink||!1,target:((E=s.attrs)==null?void 0:E.target)||null},window.location.href)},sn=s=>{r(56,me=s),r(58,ht=!1),fe("language")},ln=()=>{r(58,ht=!ht)},ur=s=>{let E=s?s.slice(-2):me.slice(-2);return A&&(E=A.includes(E.toLowerCase())?A.slice(-2):E),X!=="true"&&E.toUpperCase()==="EN"&&(E="GB"),ft&&(E=ft[E]||E),E.toUpperCase()},je=s=>pt(this,null,function*(){u[s]&&(u[s].loaded||(u[s].load(),u[s].loaded=!0))}),_o=s=>s==="false"?!1:!!s,un=()=>{window.postMessage({type:"HeaderCloseButton"},window.location.href),r(0,Et=!1)};fi(()=>(je("player-account-balance-modal-nd"),je("casino-hamburger-menu-nd"),window.addEventListener("message",Qr,!1),r(48,nr=Or(ir)),()=>{window.removeEventListener("message",Qr)}));const wo=()=>{try{const s=JSON.parse(j);s&&typeof s=="object"&&!Array.isArray(s)&&Object.keys(s).length?ft=s:ft=null}catch(s){ft=null}};function Eo(s){sa.call(this,e,s)}const So=()=>un(),xo=()=>fe("lobby"),Ho=()=>fe("myaccount"),Mo=s=>fe("page",s);function Ao(s){Ce[s?"unshift":"push"](()=>{z=s,r(53,z)})}function Co(s){Ce[s?"unshift":"push"](()=>{De=s,r(50,De)})}const Bo=()=>fe("deposit"),Io=s=>Tt(s),To=s=>Tt(s);function Lo(s){Ce[s?"unshift":"push"](()=>{ut=s,r(51,ut)})}function No(s){Ce[s?"unshift":"push"](()=>{he=s,r(52,he)})}const Po=()=>fe("myaccount"),Oo=()=>fe("login"),ko=()=>fe("register"),Fo=()=>ln(),Ro=s=>sn(s),Do=s=>an(s),Uo=()=>fe("closeLanguageSelector");function Go(s){Ce[s?"unshift":"push"](()=>{pe=s,r(47,pe)})}return e.$$set=s=>{"session"in s&&r(1,c=s.session),"userid"in s&&r(2,f=s.userid),"endpoint"in s&&r(3,h=s.endpoint),"cmsendpoint"in s&&r(4,d=s.cmsendpoint),"cmsenv"in s&&r(5,_=s.cmsenv),"lang"in s&&r(6,M=s.lang),"languageslist"in s&&r(7,y=s.languageslist),"activecategory"in s&&r(8,L=s.activecategory),"usefallbackactiveindex"in s&&r(83,N=s.usefallbackactiveindex),"translationurl"in s&&r(9,x=s.translationurl),"customlocaleidentifier"in s&&r(10,A=s.customlocaleidentifier),"gmversion"in s&&r(11,T=s.gmversion),"countryflagheader"in s&&r(12,G=s.countryflagheader),"displaybalanceoption"in s&&r(13,J=s.displaybalanceoption),"countryflaghamburger"in s&&r(14,H=s.countryflaghamburger),"hasdefaultamount"in s&&r(15,ce=s.hasdefaultamount),"playercurrency"in s&&r(16,k=s.playercurrency),"shownegativebalance"in s&&r(17,V=s.shownegativebalance),"disablelangtransform"in s&&r(84,X=s.disablelangtransform),"langtransformmap"in s&&r(18,j=s.langtransformmap),"shortcashierenabled"in s&&r(19,w=s.shortcashierenabled),"producttype"in s&&r(20,P=s.producttype),"successurl"in s&&r(21,Q=s.successurl),"failurl"in s&&r(22,Oe=s.failurl),"cancelurl"in s&&r(23,oe=s.cancelurl),"sportsurl"in s&&r(24,st=s.sportsurl),"casinourl"in s&&r(25,Ie=s.casinourl),"contacturl"in s&&r(26,se=s.contacturl),"homeurl"in s&&r(27,ke=s.homeurl),"depositurl"in s&&r(28,ae=s.depositurl),"userroles"in s&&r(29,ve=s.userroles),"mbsource"in s&&r(30,te=s.mbsource),"clientstyling"in s&&r(31,xe=s.clientstyling),"clientstylingurl"in s&&r(32,re=s.clientstylingurl),"currencydisplay"in s&&r(33,q=s.currencydisplay),"maximumfractiondigits"in s&&r(34,K=s.maximumfractiondigits),"minimumfractiondigits"in s&&r(35,$=s.minimumfractiondigits),"customdisplayformat"in s&&r(36,b=s.customdisplayformat),"totalcalculationmode"in s&&r(37,I=s.totalcalculationmode),"primarybalancemode"in s&&r(38,Fe=s.primarybalancemode),"balancelimitsbutton"in s&&r(39,Gr=s.balancelimitsbutton),"activebonusesbutton"in s&&r(40,jr=s.activebonusesbutton),"hideproducttype"in s&&r(41,zr=s.hideproducttype),"gamification"in s&&r(42,wt=s.gamification),"showclosebutton"in s&&r(43,Wr=s.showclosebutton),"closebuttonactive"in s&&r(0,Et=s.closebuttonactive),"enablestepupauth"in s&&r(44,Vr=s.enablestepupauth),"customlogourl"in s&&r(85,lt=s.customlogourl),"filterbykeyword"in s&&r(86,Re=s.filterbykeyword),"showactivebonusesbadge"in s&&r(45,qt=s.showactivebonusesbadge),"showaliasasusername"in s&&r(46,St=s.showaliasasusername),"$$scope"in s&&r(90,l=s.$$scope)},e.$$.update=()=>{e.$$.dirty[2]&16777216&&Re&&bo(),e.$$.dirty[2]&209715200&&r(69,n=Ue?lt!=null?lt:ar:Sl),e.$$.dirty[0]&256|e.$$.dirty[2]&33554432&&L&&!ct&&po(),e.$$.dirty[0]&2&&c&&(co(),nn(c)),e.$$.dirty[0]&524288&&(i=w.toLocaleLowerCase()=="true"),e.$$.dirty[0]&64&&M&&ho(),e.$$.dirty[0]&536871152&&d&&M&&y&&ve&&_&&fo(),e.$$.dirty[0]&512&&x&&so(),e.$$.dirty[1]&65537&&xe&&pe&&Ki(pe,xe),e.$$.dirty[1]&65538&&re&&pe&&$i(pe,re),e.$$.dirty[0]&1073741824|e.$$.dirty[1]&65536&&te&&pe&&eo(pe,`${te}.Style`,ro),e.$$.dirty[1]&2048&&wt&&_o(wt)&&je("gamification-dropdown"),e.$$.dirty[0]&2048&&je(T&&T==="gmcore"?"player-deposit":"user-deposit-withdrawal"),e.$$.dirty[1]&131072&&nr&&je("casino-hamburger-menu-nd"),e.$$.dirty[0]&262144&&j&&wo()},[Et,c,f,h,d,_,M,y,L,x,A,T,G,J,H,ce,k,V,j,w,P,Q,Oe,oe,st,Ie,se,ke,ae,ve,te,xe,re,q,K,$,b,I,Fe,Gr,jr,zr,wt,Wr,Vr,qt,St,pe,nr,Xr,De,ut,he,z,$t,tr,me,rr,ht,Ge,He,or,Mt,At,Ct,sr,Bt,lr,It,n,o,no,io,oo,ao,fe,lo,Tt,an,sn,ln,ur,un,N,X,lt,Re,ct,Ue,ar,l,a,Eo,So,xo,Ho,Mo,Ao,Co,Bo,Io,To,Lo,No,Po,Oo,ko,Fo,Ro,Do,Uo,Go]}class to extends vi{constructor(t){super(),mi(this,t,Yl,Zl,Fr,{session:1,userid:2,endpoint:3,cmsendpoint:4,cmsenv:5,lang:6,languageslist:7,activecategory:8,usefallbackactiveindex:83,translationurl:9,customlocaleidentifier:10,gmversion:11,countryflagheader:12,displaybalanceoption:13,countryflaghamburger:14,hasdefaultamount:15,playercurrency:16,shownegativebalance:17,disablelangtransform:84,langtransformmap:18,shortcashierenabled:19,producttype:20,successurl:21,failurl:22,cancelurl:23,sportsurl:24,casinourl:25,contacturl:26,homeurl:27,depositurl:28,userroles:29,mbsource:30,clientstyling:31,clientstylingurl:32,currencydisplay:33,maximumfractiondigits:34,minimumfractiondigits:35,customdisplayformat:36,totalcalculationmode:37,primarybalancemode:38,balancelimitsbutton:39,activebonusesbutton:40,hideproducttype:41,gamification:42,showclosebutton:43,closebuttonactive:0,enablestepupauth:44,customlogourl:85,filterbykeyword:86,showactivebonusesbadge:45,showaliasasusername:46},xl,[-1,-1,-1,-1,-1,-1])}get session(){return this.$$.ctx[1]}set session(t){this.$$set({session:t}),S()}get userid(){return this.$$.ctx[2]}set userid(t){this.$$set({userid:t}),S()}get endpoint(){return this.$$.ctx[3]}set endpoint(t){this.$$set({endpoint:t}),S()}get cmsendpoint(){return this.$$.ctx[4]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),S()}get cmsenv(){return this.$$.ctx[5]}set cmsenv(t){this.$$set({cmsenv:t}),S()}get lang(){return this.$$.ctx[6]}set lang(t){this.$$set({lang:t}),S()}get languageslist(){return this.$$.ctx[7]}set languageslist(t){this.$$set({languageslist:t}),S()}get activecategory(){return this.$$.ctx[8]}set activecategory(t){this.$$set({activecategory:t}),S()}get usefallbackactiveindex(){return this.$$.ctx[83]}set usefallbackactiveindex(t){this.$$set({usefallbackactiveindex:t}),S()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),S()}get customlocaleidentifier(){return this.$$.ctx[10]}set customlocaleidentifier(t){this.$$set({customlocaleidentifier:t}),S()}get gmversion(){return this.$$.ctx[11]}set gmversion(t){this.$$set({gmversion:t}),S()}get countryflagheader(){return this.$$.ctx[12]}set countryflagheader(t){this.$$set({countryflagheader:t}),S()}get displaybalanceoption(){return this.$$.ctx[13]}set displaybalanceoption(t){this.$$set({displaybalanceoption:t}),S()}get countryflaghamburger(){return this.$$.ctx[14]}set countryflaghamburger(t){this.$$set({countryflaghamburger:t}),S()}get hasdefaultamount(){return this.$$.ctx[15]}set hasdefaultamount(t){this.$$set({hasdefaultamount:t}),S()}get playercurrency(){return this.$$.ctx[16]}set playercurrency(t){this.$$set({playercurrency:t}),S()}get shownegativebalance(){return this.$$.ctx[17]}set shownegativebalance(t){this.$$set({shownegativebalance:t}),S()}get disablelangtransform(){return this.$$.ctx[84]}set disablelangtransform(t){this.$$set({disablelangtransform:t}),S()}get langtransformmap(){return this.$$.ctx[18]}set langtransformmap(t){this.$$set({langtransformmap:t}),S()}get shortcashierenabled(){return this.$$.ctx[19]}set shortcashierenabled(t){this.$$set({shortcashierenabled:t}),S()}get producttype(){return this.$$.ctx[20]}set producttype(t){this.$$set({producttype:t}),S()}get successurl(){return this.$$.ctx[21]}set successurl(t){this.$$set({successurl:t}),S()}get failurl(){return this.$$.ctx[22]}set failurl(t){this.$$set({failurl:t}),S()}get cancelurl(){return this.$$.ctx[23]}set cancelurl(t){this.$$set({cancelurl:t}),S()}get sportsurl(){return this.$$.ctx[24]}set sportsurl(t){this.$$set({sportsurl:t}),S()}get casinourl(){return this.$$.ctx[25]}set casinourl(t){this.$$set({casinourl:t}),S()}get contacturl(){return this.$$.ctx[26]}set contacturl(t){this.$$set({contacturl:t}),S()}get homeurl(){return this.$$.ctx[27]}set homeurl(t){this.$$set({homeurl:t}),S()}get depositurl(){return this.$$.ctx[28]}set depositurl(t){this.$$set({depositurl:t}),S()}get userroles(){return this.$$.ctx[29]}set userroles(t){this.$$set({userroles:t}),S()}get mbsource(){return this.$$.ctx[30]}set mbsource(t){this.$$set({mbsource:t}),S()}get clientstyling(){return this.$$.ctx[31]}set clientstyling(t){this.$$set({clientstyling:t}),S()}get clientstylingurl(){return this.$$.ctx[32]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),S()}get currencydisplay(){return this.$$.ctx[33]}set currencydisplay(t){this.$$set({currencydisplay:t}),S()}get maximumfractiondigits(){return this.$$.ctx[34]}set maximumfractiondigits(t){this.$$set({maximumfractiondigits:t}),S()}get minimumfractiondigits(){return this.$$.ctx[35]}set minimumfractiondigits(t){this.$$set({minimumfractiondigits:t}),S()}get customdisplayformat(){return this.$$.ctx[36]}set customdisplayformat(t){this.$$set({customdisplayformat:t}),S()}get totalcalculationmode(){return this.$$.ctx[37]}set totalcalculationmode(t){this.$$set({totalcalculationmode:t}),S()}get primarybalancemode(){return this.$$.ctx[38]}set primarybalancemode(t){this.$$set({primarybalancemode:t}),S()}get balancelimitsbutton(){return this.$$.ctx[39]}set balancelimitsbutton(t){this.$$set({balancelimitsbutton:t}),S()}get activebonusesbutton(){return this.$$.ctx[40]}set activebonusesbutton(t){this.$$set({activebonusesbutton:t}),S()}get hideproducttype(){return this.$$.ctx[41]}set hideproducttype(t){this.$$set({hideproducttype:t}),S()}get gamification(){return this.$$.ctx[42]}set gamification(t){this.$$set({gamification:t}),S()}get showclosebutton(){return this.$$.ctx[43]}set showclosebutton(t){this.$$set({showclosebutton:t}),S()}get closebuttonactive(){return this.$$.ctx[0]}set closebuttonactive(t){this.$$set({closebuttonactive:t}),S()}get enablestepupauth(){return this.$$.ctx[44]}set enablestepupauth(t){this.$$set({enablestepupauth:t}),S()}get customlogourl(){return this.$$.ctx[85]}set customlogourl(t){this.$$set({customlogourl:t}),S()}get filterbykeyword(){return this.$$.ctx[86]}set filterbykeyword(t){this.$$set({filterbykeyword:t}),S()}get showactivebonusesbadge(){return this.$$.ctx[45]}set showactivebonusesbadge(t){this.$$set({showactivebonusesbadge:t}),S()}get showaliasasusername(){return this.$$.ctx[46]}set showaliasasusername(t){this.$$set({showaliasasusername:t}),S()}}bi(to,{session:{},userid:{},endpoint:{},cmsendpoint:{},cmsenv:{},lang:{},languageslist:{},activecategory:{},usefallbackactiveindex:{},translationurl:{},customlocaleidentifier:{},gmversion:{},countryflagheader:{},displaybalanceoption:{},countryflaghamburger:{},hasdefaultamount:{},playercurrency:{},shownegativebalance:{},disablelangtransform:{},langtransformmap:{},shortcashierenabled:{},producttype:{},successurl:{},failurl:{},cancelurl:{},sportsurl:{},casinourl:{},contacturl:{},homeurl:{},depositurl:{},userroles:{},mbsource:{},clientstyling:{},clientstylingurl:{},currencydisplay:{},maximumfractiondigits:{},minimumfractiondigits:{},customdisplayformat:{},totalcalculationmode:{},primarybalancemode:{},balancelimitsbutton:{},activebonusesbutton:{},hideproducttype:{},gamification:{},showclosebutton:{type:"Boolean"},closebuttonactive:{type:"Boolean"},enablestepupauth:{},customlogourl:{},filterbykeyword:{},showactivebonusesbadge:{},showaliasasusername:{}},["logo","slot4","slot1","slot2","slot3"],[],!0);const Jl=Object.freeze(Object.defineProperty({__proto__:null,default:to},Symbol.toStringTag,{value:"Module"}));exports.$format=Yi;exports.$locale=Se;exports.CasinoHeaderControllerNd_ce=Jl;exports.SvelteComponent=vi;exports.addMessages=Dr;exports.add_render_callback=Gt;exports.append=g;exports.append_styles=hi;exports.attr=m;exports.binding_callbacks=Ce;exports.checkSession=Qi;exports.check_outros=pi;exports.commonjsGlobal=Ta;exports.component_subscribe=ui;exports.create_custom_element=bi;exports.create_slot=Ze;exports.destroy_each=rt;exports.detach=C;exports.element=v;exports.empty=nt;exports.ensurePlayerAlias=qi;exports.ensure_array_like=Ee;exports.flush=S;exports.getDevice=Ji;exports.get_all_dirty_from_scope=Qe;exports.get_slot_changes=Ye;exports.group_outros=di;exports.init=mi;exports.insert=B;exports.isMobile=Or;exports.listen=Z;exports.noop=ee;exports.onMount=fi;exports.run_all=de;exports.safe_not_equal=Fr;exports.select_option=ra;exports.select_value=na;exports.setClientStyling=Ki;exports.setClientStylingURL=$i;exports.setStreamStyling=eo;exports.set_data=le;exports.set_input_value=ea;exports.set_style=ta;exports.space=O;exports.src_url_equal=Ne;exports.svg_element=be;exports.text=ie;exports.toggle_class=ia;exports.transition_in=_e;exports.transition_out=Ae;exports.update_slot_base=Je;
|