@everymatrix/casino-game-overlay 1.75.1 → 1.76.0
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/{CasinoGameOverlay-CT-PHubo.js → CasinoGameOverlay-B-rk2DoX.js} +1 -1
- package/components/{CasinoGameOverlay-DCWJvo1M.js → CasinoGameOverlay-BMsFTxKC.js} +1 -1
- package/components/{CasinoGameOverlay-eBjcFeDp.cjs → CasinoGameOverlay-Iv7bUu7N.cjs} +1 -1
- package/components/{LotteryProgramWof-B8X27eN3.js → LotteryProgramWof-Bs_CT5cj.js} +4 -4
- package/components/{LotteryProgramWof-CztYJ8u_.cjs → LotteryProgramWof-CnMggyi4.cjs} +1 -1
- package/components/{LotteryProgramWof-C1VLwduU.js → LotteryProgramWof-DLKOqcT7.js} +4 -4
- package/es2015/casino-game-overlay.cjs +1 -1
- package/es2015/casino-game-overlay.js +1 -1
- package/esnext/casino-game-overlay.js +1 -1
- package/package.json +1 -1
|
@@ -4438,7 +4438,7 @@ function l1(t) {
|
|
|
4438
4438
|
let e, i = (
|
|
4439
4439
|
/*showLuckyWheelList*/
|
|
4440
4440
|
(t[12] || /*gameoverlay*/
|
|
4441
|
-
t[6]) && Oe(t)
|
|
4441
|
+
t[6] === !0) && Oe(t)
|
|
4442
4442
|
);
|
|
4443
4443
|
return {
|
|
4444
4444
|
c() {
|
|
@@ -4450,7 +4450,7 @@ function l1(t) {
|
|
|
4450
4450
|
p(o, s) {
|
|
4451
4451
|
/*showLuckyWheelList*/
|
|
4452
4452
|
o[12] || /*gameoverlay*/
|
|
4453
|
-
o[6] ? i ? i.p(o, s) : (i = Oe(o), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null);
|
|
4453
|
+
o[6] === !0 ? i ? i.p(o, s) : (i = Oe(o), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null);
|
|
4454
4454
|
},
|
|
4455
4455
|
i: g0,
|
|
4456
4456
|
o: g0,
|
|
@@ -4462,7 +4462,7 @@ function l1(t) {
|
|
|
4462
4462
|
function a1(t, e, i) {
|
|
4463
4463
|
let o, s, r;
|
|
4464
4464
|
W0(t, X0, (I) => i(15, r = I));
|
|
4465
|
-
let { lang: n = z0.en } = e, { endpoint: a = "" } = e, { session: l = "" } = e, { clientstyling: f = "" } = e, { clientstylingurl: c = "" } = e, { translationurl: h = "" } = e, { programid: d = "" } = e, { loginevent: u = "" } = e, { loginurl: p = "" } = e, { currentinfo: w = D0.RemainingTimes } = e, { giftimagesrc: x = "" } = e, { isshowhistory: v = "true" } = e, { contentdirection: b = "anticlockwise" } = e, { terms: O = "" } = e, { gameoverlay: F =
|
|
4465
|
+
let { lang: n = z0.en } = e, { endpoint: a = "" } = e, { session: l = "" } = e, { clientstyling: f = "" } = e, { clientstylingurl: c = "" } = e, { translationurl: h = "" } = e, { programid: d = "" } = e, { loginevent: u = "" } = e, { loginurl: p = "" } = e, { currentinfo: w = D0.RemainingTimes } = e, { giftimagesrc: x = "" } = e, { isshowhistory: v = "true" } = e, { contentdirection: b = "anticlockwise" } = e, { terms: O = "" } = e, { gameoverlay: F = !1 } = e, R, D = !1;
|
|
4466
4466
|
ot();
|
|
4467
4467
|
let j = [], Z = !0, S, H = window.navigator.userAgent, n0 = a2(H), J = !1, T = !1, U = !1;
|
|
4468
4468
|
const f0 = (I) => /(https?:\/\/[^\s]+)/g.test(I), Q = () => o0(this, null, function* () {
|
|
@@ -4690,7 +4690,7 @@ class c1 extends R0 {
|
|
|
4690
4690
|
this.$$set({ gameoverlay: e }), E();
|
|
4691
4691
|
}
|
|
4692
4692
|
}
|
|
4693
|
-
H0(c1, { lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, programid: {}, loginevent: {}, loginurl: {}, currentinfo: {}, giftimagesrc: {}, isshowhistory: {}, contentdirection: {}, terms: {}, gameoverlay: {} }, [], [], !0);
|
|
4693
|
+
H0(c1, { lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, programid: {}, loginevent: {}, loginurl: {}, currentinfo: {}, giftimagesrc: {}, isshowhistory: {}, contentdirection: {}, terms: {}, gameoverlay: { type: "Boolean" } }, [], [], !0);
|
|
4694
4694
|
export {
|
|
4695
4695
|
c1 as default
|
|
4696
4696
|
};
|
|
@@ -28,4 +28,4 @@
|
|
|
28
28
|
`,Fe=()=>[_t(),$t(),e3(),`
|
|
29
29
|
--img-theme-partition-light: url("${Qt}");
|
|
30
30
|
--img-theme-pointer-area: url("${Lt}");
|
|
31
|
-
`].join(" ");function t3(i){e.append_styles(i,"svelte-19t82yv",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.LotteryProgramWof{background:var(--emw--color-contrast, #07072A);display:flex;align-items:center;flex-direction:column;padding:20px 0}main{max-width:600px;width:100%;display:flex;justify-content:space-around;min-height:200px}svg{transition:opacity 0.3s}.FortuneContainer{width:100%;display:flex;align-items:center;flex-direction:column}.Center{cursor:pointer;transition:filter;transition-duration:1s}.Center.disabled{filter:grayscale(80%)}.Center .CenterCircle{fill:#3CE4BB;stroke:rgb(150, 54, 88);stroke-width:2px;cursor:pointer;transition:fill;transition-duration:1s}.Center .CenterText{fill:#FFFFFF}.PointerPartition{opacity:0.3;fill:lightgoldenrodyellow;stroke:red;stroke-width:6px;stroke-dasharray:12}.Current{color:#FFFFFF}.PartitionText{color:#FFFFFF;font-style:normal;font-weight:700;text-anchor:end;text-shadow:0px 3px #000;dominant-baseline:central}.PartitionsShadow{background-blend-mode:multiply;mix-blend-mode:multiply}.PartitionTextEntityContainer{height:100%;display:flex;align-items:center}.PartitionTextEntity{width:100%}.PartitionTextEntity.Anticlockwise{text-align:end}.theme1 foreignObject.Bottom div,.theme4 foreignObject.Bottom div,.theme5 foreignObject.Bottom div{background-image:var(--img-theme1-bg3), var(--img-theme-BgBlackRing), var(--img-theme-BgHalo);background-position:center, center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 7px), calc(var(--radius) * 2px + var(--ratio) * 37px), calc(var(--radius) * 2px + var(--ratio) * 130px)}.theme2 foreignObject.Bottom div,.theme6 foreignObject.Bottom div{background-image:var(--img-theme2-bg3), var(--img-theme-BgHalo), var(--img-theme-BgBlackRing);background-position:center, center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 8px), calc(var(--radius) * 2px + var(--ratio) * 123px), calc(var(--radius) * 2px + var(--ratio) * 37px)}.theme3 foreignObject.Bottom div{background-image:var(--img-theme3-bg2), var(--img-theme3-bg1);background-position:center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 57px), calc(var(--radius) * 2px + var(--ratio) * 125px)}.theme7 foreignObject.Bottom div{background-image:var(--img-theme7-bg3), var(--img-theme7-bg2), var(--img-theme7-bg1);background-position:center, center calc(var(--size) * 1px - var(--ratio) * 95px), calc(var(--ratio) * 42px) calc(var(--ratio) * -5px);background-size:calc(var(--radius) * 2px + 35px), calc(var(--radius) * 2px * 0.6), calc(var(--radius) * 2.7px)}.theme8 foreignObject.Bottom div{background-image:var(--img-theme8-bg1);background-position:center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 20px), calc(var(--radius) * 2px + var(--ratio) * 125px)}.theme1 foreignObject.Middle div,.theme4 foreignObject.Middle div{background-image:var(--img-theme-center1);background-position:center}.theme2 foreignObject.Middle div{background-image:var(--img-theme2-center), var(--img-theme2-arrow);background-position:center, center 60px}.theme3 foreignObject.Middle div{background-image:var(--img-theme3-center), var(--img-theme3-arrow);background-position:center, center 39px}.theme8 foreignObject.Middle div{background-image:var(--img-theme8-center), var(--img-theme8-arrow);background-position:center, center 55px}.theme5 foreignObject.Middle div,.theme6 foreignObject.Middle div{background-image:var(--img-theme-center2);background-position:center}.theme7 foreignObject.Middle div{background-image:var(--img-theme7-center), var(--img-theme7-arrow);background-position:center, center 36px}.theme7 foreignObject.Top div{background-image:var(--img-theme7-light);background-position:294px 135px}.theme1 foreignObject.Top,.theme2 foreignObject.Top,.theme3 foreignObject.Top,.theme4 foreignObject.Top,.theme5 foreignObject.Top,.theme6 foreignObject.Top{mix-blend-mode:multiply}.theme1 foreignObject.Top div,.theme2 foreignObject.Top div,.theme3 foreignObject.Top div,.theme4 foreignObject.Top div,.theme5 foreignObject.Top div,.theme6 foreignObject.Top div{background-image:var(--img-theme-shadow);background-position:center;background-size:calc(var(--radius) * 2px)}.theme2 foreignObject.Partition1 div{background-image:var(--img-theme-partition-light);background-position:center calc((var(--size) / 2 - var(--radius)) * 1px - var(--ratio) * 22px);transform:rotate(calc(var(--index) * 360deg / var(--length)))}.theme2 foreignObject.Partition2 div{background-image:var(--img-theme-partition-light);background-position:center calc((var(--size) / 2 - var(--radius)) * 1px - var(--ratio) * 22px);transform:rotate(calc((var(--index) + 0.5) * 360deg / var(--length)))}foreignObject.PointerArea{mix-blend-mode:screen}foreignObject.PointerArea div{background-image:var(--img-theme-pointer-area);background-position:center -3px;background-size:51%}foreignObject.Partition1 div,foreignObject.Partition2 div{transform-origin:center}.PartitionsCustomable1 div,.PartitionsCustomable2 div{visibility:hidden}.PartitionsCustomable1 div.active,.PartitionsCustomable2 div.active{visibility:visible}foreignObject.Customable{overflow:visible}foreignObject.Customable div{background-repeat:no-repeat}.PartitionBackground div{background-size:calc(var(--radius) * 2 / var(--size) * 100%) calc(var(--radius) * 2 / var(--size) * 100%);background-position:center}.theme1 .PartitionBackground:nth-child(4n+1) div,.theme2 .PartitionBackground:nth-child(4n+1) div{background-image:radial-gradient(#009C9C 0%, #002634 100%)}.theme1 .PartitionBackground:nth-child(4n+2) div,.theme2 .PartitionBackground:nth-child(4n+2) div{background-image:radial-gradient(#AA00BF 0%, #3B0031 100%)}.theme1 .PartitionBackground:nth-child(4n+3) div,.theme2 .PartitionBackground:nth-child(4n+3) div{background-image:radial-gradient(#0068CD 0%, #150D42 100%)}.theme1 .PartitionBackground:nth-child(4n+4) div,.theme2 .PartitionBackground:nth-child(4n+4) div{background-image:radial-gradient(#DA005B 0%, #400021 100%)}.theme3 .PartitionBackground:nth-child(4n+1) div{background-image:radial-gradient(#066 0%, #007F76 13%, #00B59B 42%, #00DDB5 67.01%, #00F6C6 88.01%, #0FC 100.01%)}.theme3 .PartitionBackground:nth-child(4n+2) div{background-image:radial-gradient(#580065 22.67%, #D453FF 91.3%)}.theme3 .PartitionBackground:nth-child(4n+3) div{background-image:radial-gradient(#FFE767 -0.01%, #F28F00 100%)}.theme3 .PartitionBackground:nth-child(4n+4) div{background-image:radial-gradient(#900A42 22.59%, #960A44 23.94%, #B60B53 31.36%, #D00C5E 39.45%, #E40D67 48.22%, #F30D6E 57.66%, #FB0D71 69.8%, #FE0E73 90.03%)}.theme4 .PartitionBackground:nth-child(4n+1) div,.theme5 .PartitionBackground:nth-child(4n+1) div,.theme6 .PartitionBackground:nth-child(4n+1) div{background:radial-gradient(#3B0031 0%, #7E008E 100.01%)}.theme4 .PartitionBackground:nth-child(4n+2) div,.theme5 .PartitionBackground:nth-child(4n+2) div,.theme6 .PartitionBackground:nth-child(4n+2) div{background:radial-gradient(#5A005F 22.67%, #EA53FF 91.3%)}.theme4 .PartitionBackground:nth-child(4n+3) div,.theme5 .PartitionBackground:nth-child(4n+3) div,.theme6 .PartitionBackground:nth-child(4n+3) div{background:radial-gradient(#B300C3 -0.01%, #4D003B 100%)}.theme4 .PartitionBackground:nth-child(4n+4) div,.theme5 .PartitionBackground:nth-child(4n+4) div,.theme6 .PartitionBackground:nth-child(4n+4) div{background:radial-gradient(#59007B 22.59%, #B753FF 90.03%)}.theme7 .PartitionBackground:nth-child(2n+1) div{background:linear-gradient(90.23deg, #F6AD3F 16.59%, #AF8531 99.8%)}.theme7 .PartitionBackground:nth-child(2n+2) div{background:linear-gradient(90deg, #323234 -0.01%, #272425 54.99%, #231F1F 99.99%)}.theme8 .PartitionBackground div{background:#333}.theme8 .PartitionBackground:nth-child(2n+1) .PartitionSmallBackground{background:#3F2E75}.theme8 .PartitionBackground:nth-child(2n+2) .PartitionSmallBackground{background:#9482CE}.theme8 .PartitionBackgrounds{position:relative}.theme8 .PartitionSmallBackground{position:absolute;top:0;width:100%;height:100%}.PartitionBackground div{transform-origin:center}.PartitionBackgroundStroke{fill:transparent;stroke-width:0.5px;stroke-dasharray:var(--radius) calc(6.2831853072 / var(--length) * var(--radius))}.theme1 .PartitionBackgroundStroke,.theme2 .PartitionBackgroundStroke{stroke:#FCD755}.PointerPartitionFrame{stroke:#FFDD64;fill:transparent;stroke-dasharray:var(--radius) calc(6.2831853072 / var(--length) * var(--radius));stroke-width:0px}.PointerPartitionFrame.active{stroke-width:3px}g.Center.spinning{cursor:not-allowed}')}function Se(i,t,s){const o=i.slice();return o[44]=t[s],o[46]=s,o}function Ee(i,t,s){const o=i.slice();return o[44]=t[s],o[46]=s,o}function Pe(i,t,s){const o=i.slice();return o[44]=t[s],o[46]=s,o}function Qe(i,t,s){const o=i.slice();return o[49]=t[s],o[46]=s,o}function Le(i,t,s){const o=i.slice();return o[44]=t[s],o[46]=s,o}function De(i,t,s){const o=i.slice();return o[44]=t[s],o[46]=s,o}function Oe(i){let t,s,o,r,n,a,c,l,f,d,h,p,A,u,m,v,y,C,S,B,L=[i[13]],F={};for(let g=0;g<L.length;g+=1)F=e.assign(F,L[g]);let O=[i[4],{class:"Bottom Customable"}],z={};for(let g=0;g<O.length;g+=1)z=e.assign(z,O[g]);let x=e.ensure_array_like(i[3]),Q=[];for(let g=0;g<x.length;g+=1)Q[g]=ze(De(i,x,g));let N=e.ensure_array_like(i[3]),D=[];for(let g=0;g<N.length;g+=1)D[g]=Te(Le(i,N,g));let P=e.ensure_array_like(i[3]),T=[];for(let g=0;g<P.length;g+=1)T[g]=Je(Qe(i,P,g));let V=[{class:"PartitionsContainer"},i[6].getSpinnerProps()],M={};for(let g=0;g<V.length;g+=1)M=e.assign(M,V[g]);let j=e.ensure_array_like(i[3]),H=[];for(let g=0;g<j.length;g+=1)H[g]=Ge(Pe(i,j,g));let q=e.ensure_array_like(i[3]),R=[];for(let g=0;g<q.length;g+=1)R[g]=je(Ee(i,q,g));let Y=i[5].pointerMode===K.Partition&&Ze(i),e0=[i[13]],_={};for(let g=0;g<e0.length;g+=1)_=e.assign(_,e0[g]);let r0=[{class:"Middle Customable"},i[4]],n0={};for(let g=0;g<r0.length;g+=1)n0=e.assign(n0,r0[g]);let o0=[i[13]],k={};for(let g=0;g<o0.length;g+=1)k=e.assign(k,o0[g]);let W=[{class:"Top Customable"},i[4]],t0={};for(let g=0;g<W.length;g+=1)t0=e.assign(t0,W[g]);let s0=e.ensure_array_like(i[3]),b=[];for(let g=0;g<s0.length;g+=1)b[g]=Ye(Se(i,s0,g));return{c(){t=e.svg_element("svg"),s=e.svg_element("foreignObject"),o=e.element("div"),r=e.svg_element("g"),n=e.svg_element("g");for(let g=0;g<Q.length;g+=1)Q[g].c();a=e.svg_element("g");for(let g=0;g<D.length;g+=1)D[g].c();c=e.svg_element("g");for(let g=0;g<T.length;g+=1)T[g].c();l=e.svg_element("g");for(let g=0;g<H.length;g+=1)H[g].c();f=e.svg_element("g");for(let g=0;g<R.length;g+=1)R[g].c();Y&&Y.c(),d=e.svg_element("foreignObject"),h=e.element("div"),p=e.svg_element("foreignObject"),A=e.element("div"),u=e.svg_element("g"),m=e.svg_element("foreignObject"),C=e.svg_element("g");for(let g=0;g<b.length;g+=1)b[g].c();e.set_attributes(o,F),e.set_svg_attributes(s,z),e.attr(n,"class","PartitionsBackgrounds"),e.attr(a,"class","PartitionsBackgroundStrokes"),e.attr(c,"class","Partitions"),e.set_style(c,"filter",i[14]),e.set_svg_attributes(r,M),e.attr(l,"class","PartitionsCustomable1"),e.toggle_class(l,"active",i[8]),e.attr(f,"class","PartitionsCustomable2"),e.toggle_class(f,"active",i[8]),e.set_attributes(h,_),e.set_svg_attributes(d,n0),e.set_attributes(A,k),e.set_svg_attributes(p,t0),e.attr(m,"x",v=Number(i[0])/2-100/2),e.attr(m,"y",y=Number(i[0])/2-100/2),e.attr(m,"width",100),e.attr(m,"height",100),e.attr(u,"class","Center"),e.toggle_class(u,"spinning",i[10]),e.attr(t,"width",i[0]),e.attr(t,"height",i[0]),e.set_style(t,"opacity",i[12]?".3":"")},m(g,I){e.insert(g,t,I),e.append(t,s),e.append(s,o),e.append(t,r),e.append(r,n);for(let w=0;w<Q.length;w+=1)Q[w]&&Q[w].m(n,null);e.append(r,a);for(let w=0;w<D.length;w+=1)D[w]&&D[w].m(a,null);e.append(r,c);for(let w=0;w<T.length;w+=1)T[w]&&T[w].m(c,null);e.append(t,l);for(let w=0;w<H.length;w+=1)H[w]&&H[w].m(l,null);e.append(t,f);for(let w=0;w<R.length;w+=1)R[w]&&R[w].m(f,null);Y&&Y.m(t,null),e.append(t,d),e.append(d,h),e.append(t,p),e.append(p,A),e.append(t,u),e.append(u,m),e.append(t,C);for(let w=0;w<b.length;w+=1)b[w]&&b[w].m(C,null);i[28](t),S||(B=[e.listen(u,"click",i[27]),e.listen(t,"click",i[29])],S=!0)},p(g,I){if(e.set_attributes(o,F=e.get_spread_update(L,[I[0]&8192&&g[13]])),e.set_svg_attributes(s,z=e.get_spread_update(O,[I[0]&16&&g[4],{class:"Bottom Customable"}])),I[0]&8201){x=e.ensure_array_like(g[3]);let w;for(w=0;w<x.length;w+=1){const J=De(g,x,w);Q[w]?Q[w].p(J,I):(Q[w]=ze(J),Q[w].c(),Q[w].m(n,null))}for(;w<Q.length;w+=1)Q[w].d(1);Q.length=x.length}if(I[0]&73){N=e.ensure_array_like(g[3]);let w;for(w=0;w<N.length;w+=1){const J=Le(g,N,w);D[w]?D[w].p(J,I):(D[w]=Te(J),D[w].c(),D[w].m(a,null))}for(;w<D.length;w+=1)D[w].d(1);D.length=N.length}if(I[0]&72){P=e.ensure_array_like(g[3]);let w;for(w=0;w<P.length;w+=1){const J=Qe(g,P,w);T[w]?T[w].p(J,I):(T[w]=Je(J),T[w].c(),T[w].m(c,null))}for(;w<T.length;w+=1)T[w].d(1);T.length=P.length}if(I[0]&16384&&e.set_style(c,"filter",g[14]),e.set_svg_attributes(r,M=e.get_spread_update(V,[{class:"PartitionsContainer"},I[0]&64&&g[6].getSpinnerProps()])),I[0]&8216){j=e.ensure_array_like(g[3]);let w;for(w=0;w<j.length;w+=1){const J=Pe(g,j,w);H[w]?H[w].p(J,I):(H[w]=Ge(J),H[w].c(),H[w].m(l,null))}for(;w<H.length;w+=1)H[w].d(1);H.length=j.length}if(I[0]&256&&e.toggle_class(l,"active",g[8]),I[0]&8216){q=e.ensure_array_like(g[3]);let w;for(w=0;w<q.length;w+=1){const J=Ee(g,q,w);R[w]?R[w].p(J,I):(R[w]=je(J),R[w].c(),R[w].m(f,null))}for(;w<R.length;w+=1)R[w].d(1);R.length=q.length}if(I[0]&256&&e.toggle_class(f,"active",g[8]),g[5].pointerMode===K.Partition?Y?Y.p(g,I):(Y=Ze(g),Y.c(),Y.m(t,d)):Y&&(Y.d(1),Y=null),e.set_attributes(h,_=e.get_spread_update(e0,[I[0]&8192&&g[13]])),e.set_svg_attributes(d,n0=e.get_spread_update(r0,[{class:"Middle Customable"},I[0]&16&&g[4]])),e.set_attributes(A,k=e.get_spread_update(o0,[I[0]&8192&&g[13]])),e.set_svg_attributes(p,t0=e.get_spread_update(W,[{class:"Top Customable"},I[0]&16&&g[4]])),I[0]&1&&v!==(v=Number(g[0])/2-100/2)&&e.attr(m,"x",v),I[0]&1&&y!==(y=Number(g[0])/2-100/2)&&e.attr(m,"y",y),I[0]&1024&&e.toggle_class(u,"spinning",g[10]),I[0]&72){s0=e.ensure_array_like(g[3]);let w;for(w=0;w<s0.length;w+=1){const J=Se(g,s0,w);b[w]?b[w].p(J,I):(b[w]=Ye(J),b[w].c(),b[w].m(C,null))}for(;w<b.length;w+=1)b[w].d(1);b.length=s0.length}I[0]&1&&e.attr(t,"width",g[0]),I[0]&1&&e.attr(t,"height",g[0]),I[0]&4096&&e.set_style(t,"opacity",g[12]?".3":"")},d(g){g&&e.detach(t),e.destroy_each(Q,g),e.destroy_each(D,g),e.destroy_each(T,g),e.destroy_each(H,g),e.destroy_each(R,g),Y&&Y.d(),e.destroy_each(b,g),i[28](null),S=!1,e.run_all(B)}}}function ze(i){let t,s,o=[i[13]],r={};for(let n=0;n<o.length;n+=1)r=e.assign(r,o[n]);return{c(){t=e.svg_element("foreignObject"),s=e.element("div"),e.set_attributes(s,r),e.attr(t,"clip-path",`url(#clip${i[46]})`),e.attr(t,"class","PartitionBackground Customable"),e.attr(t,"style",`--index: ${i[46]}`),e.attr(t,"width",i[0]),e.attr(t,"height",i[0])},m(n,a){e.insert(n,t,a),e.append(t,s)},p(n,a){e.set_attributes(s,r=e.get_spread_update(o,[a[0]&8192&&n[13]])),a[0]&1&&e.attr(t,"width",n[0]),a[0]&1&&e.attr(t,"height",n[0])},d(n){n&&e.detach(t)}}}function Te(i){let t,s=[{class:"PartitionBackgroundStroke"},i[6].getPartitionDraw(i[46]),{width:i[0]},{height:i[0]}],o={};for(let r=0;r<s.length;r+=1)o=e.assign(o,s[r]);return{c(){t=e.svg_element("path"),e.set_svg_attributes(t,o)},m(r,n){e.insert(r,t,n)},p(r,n){e.set_svg_attributes(t,o=e.get_spread_update(s,[{class:"PartitionBackgroundStroke"},n[0]&64&&r[6].getPartitionDraw(r[46]),n[0]&1&&{width:r[0]},n[0]&1&&{height:r[0]}]))},d(r){r&&e.detach(t)}}}function He(i){let t,s,o;return{c(){t=e.svg_element("g"),e.attr(t,"class",`PartitionImage PartitionImage${i[46]}`)},m(r,n){e.insert(r,t,n),s||(o=e.action_destroyer(i[16].call(null,t,i[46])),s=!0)},p(r,n){i=r},d(r){r&&e.detach(t),s=!1,o()}}}function Re(i){let t,s,o,r=i[49].name+"",n,a,c=[{class:"PartitionText"},i[6].getSvgTextPropsAdjustedByImage(i[46])],l={};for(let f=0;f<c.length;f+=1)l=e.assign(l,c[f]);return{c(){t=e.svg_element("foreignObject"),s=e.element("div"),o=e.element("p"),a=e.space(),e.attr(o,"class",n=`PartitionTextEntity${i[6].contentdirection==="clockwise"?"":" Anticlockwise"}`),e.attr(s,"class","PartitionTextEntityContainer"),e.set_svg_attributes(t,l)},m(f,d){e.insert(f,t,d),e.append(t,s),e.append(s,o),o.innerHTML=r,e.append(s,a)},p(f,d){d[0]&8&&r!==(r=f[49].name+"")&&(o.innerHTML=r),d[0]&64&&n!==(n=`PartitionTextEntity${f[6].contentdirection==="clockwise"?"":" Anticlockwise"}`)&&e.attr(o,"class",n),e.set_svg_attributes(t,l=e.get_spread_update(c,[{class:"PartitionText"},d[0]&64&&f[6].getSvgTextPropsAdjustedByImage(f[46])]))},d(f){f&&e.detach(t)}}}function Je(i){let t,s,o=i[49].image&&He(i),r=i[49].name&&Re(i);return{c(){o&&o.c(),t=e.empty(),r&&r.c(),s=e.empty()},m(n,a){o&&o.m(n,a),e.insert(n,t,a),r&&r.m(n,a),e.insert(n,s,a)},p(n,a){n[49].image?o||(o=He(n),o.c(),o.m(t.parentNode,t)):o&&(o.d(1),o=null),n[49].name?r?r.p(n,a):(r=Re(n),r.c(),r.m(s.parentNode,s)):r&&(r.d(1),r=null)},d(n){n&&(e.detach(t),e.detach(s)),o&&o.d(n),r&&r.d(n)}}}function Ge(i){let t,s,o,r=[i[13]],n={};for(let l=0;l<r.length;l+=1)n=e.assign(n,r[l]);let a=[{class:"Partition1 Customable"},{style:o=`--index: ${i[46]}`},i[4]],c={};for(let l=0;l<a.length;l+=1)c=e.assign(c,a[l]);return{c(){t=e.svg_element("foreignObject"),s=e.element("div"),e.set_attributes(s,n),e.set_svg_attributes(t,c)},m(l,f){e.insert(l,t,f),e.append(t,s)},p(l,f){e.set_attributes(s,n=e.get_spread_update(r,[f[0]&8192&&l[13]])),e.set_svg_attributes(t,c=e.get_spread_update(a,[{class:"Partition1 Customable"},{style:o},f[0]&16&&l[4]]))},d(l){l&&e.detach(t)}}}function je(i){let t,s,o,r=[i[13]],n={};for(let l=0;l<r.length;l+=1)n=e.assign(n,r[l]);let a=[{class:"Partition2 Customable"},{style:o=`--index: ${i[46]}`},i[4]],c={};for(let l=0;l<a.length;l+=1)c=e.assign(c,a[l]);return{c(){t=e.svg_element("foreignObject"),s=e.element("div"),e.set_attributes(s,n),e.set_svg_attributes(t,c)},m(l,f){e.insert(l,t,f),e.append(t,s)},p(l,f){e.set_attributes(s,n=e.get_spread_update(r,[f[0]&8192&&l[13]])),e.set_svg_attributes(t,c=e.get_spread_update(a,[{class:"Partition2 Customable"},{style:o},f[0]&16&&l[4]]))},d(l){l&&e.detach(t)}}}function Ze(i){let t,s,o,r,n=[i[13]],a={};for(let A=0;A<n.length;A+=1)a=e.assign(a,n[A]);let c=[{class:"PointerArea Customable"},i[4]],l={};for(let A=0;A<c.length;A+=1)l=e.assign(l,c[A]);let f=[{class:"PointerPartitionFrame"},i[6].getPartitionDraw(0)],d={};for(let A=0;A<f.length;A+=1)d=e.assign(d,f[A]);let h=[{class:"PointerContainer"},i[6].getSpinnerProps()],p={};for(let A=0;A<h.length;A+=1)p=e.assign(p,h[A]);return{c(){t=e.svg_element("g"),s=e.svg_element("foreignObject"),o=e.element("div"),r=e.svg_element("path"),e.set_attributes(o,a),e.set_svg_attributes(s,l),e.set_svg_attributes(r,d),e.toggle_class(r,"active",i[11]),e.set_svg_attributes(t,p)},m(A,u){e.insert(A,t,u),e.append(t,s),e.append(s,o),e.append(t,r)},p(A,u){e.set_attributes(o,a=e.get_spread_update(n,[u[0]&8192&&A[13]])),e.set_svg_attributes(s,l=e.get_spread_update(c,[{class:"PointerArea Customable"},u[0]&16&&A[4]])),e.set_svg_attributes(r,d=e.get_spread_update(f,[{class:"PointerPartitionFrame"},u[0]&64&&A[6].getPartitionDraw(0)])),e.toggle_class(r,"active",A[11]),e.set_svg_attributes(t,p=e.get_spread_update(h,[{class:"PointerContainer"},u[0]&64&&A[6].getSpinnerProps()]))},d(A){A&&e.detach(t)}}}function Ye(i){let t,s,o=[i[6].getPartitionDraw(i[46])],r={};for(let c=0;c<o.length;c+=1)r=e.assign(r,o[c]);let n=[{id:`clip${i[46]}`}],a={};for(let c=0;c<n.length;c+=1)a=e.assign(a,n[c]);return{c(){t=e.svg_element("clipPath"),s=e.svg_element("path"),e.set_svg_attributes(s,r),e.set_svg_attributes(t,a)},m(c,l){e.insert(c,t,l),e.append(t,s)},p(c,l){e.set_svg_attributes(s,r=e.get_spread_update(o,[l[0]&64&&c[6].getPartitionDraw(c[46])]))},d(c){c&&e.detach(t)}}}function i3(i){let t,s=Number(i[0])&&i[3].length,o,r,n=s&&Oe(i);return{c(){t=e.element("div"),n&&n.c(),e.attr(t,"class",o=`WheelContainer theme${Number(i[7])+1}`),e.attr(t,"style",r=`${Fe()} --length: ${i[3].length}; --radius: ${i[1]}; --ratio: ${Number(i[0])/480}; --size: ${i[0]}`)},m(a,c){e.insert(a,t,c),n&&n.m(t,null),i[30](t)},p(a,c){c[0]&9&&(s=Number(a[0])&&a[3].length),s?n?n.p(a,c):(n=Oe(a),n.c(),n.m(t,null)):n&&(n.d(1),n=null),c[0]&128&&o!==(o=`WheelContainer theme${Number(a[7])+1}`)&&e.attr(t,"class",o),c[0]&11&&r!==(r=`${Fe()} --length: ${a[3].length}; --radius: ${a[1]}; --ratio: ${Number(a[0])/480}; --size: ${a[0]}`)&&e.attr(t,"style",r)},i:e.noop,o:e.noop,d(a){a&&e.detach(t),n&&n.d(),i[30](null)}}}function s3(i,t,s){let o,r,n,a,c,l,f,{lang:d=p0.en}=t,{endpoint:h=""}=t,{session:p=""}=t,{clientstyling:A=""}=t,{contentdirection:u="anticlockwise"}=t,{partitiondivisor:m=""}=t,v,{id:y=void 0}=t,{size:C=""}=t,{radius:S=""}=t,B=!1;const L=b=>{b(-1),setTimeout(()=>{b(1),s(8,B=!0)},100)};let F;const O=()=>Z(this,null,function*(){s(3,z=yield q2(F,d)),$({type:"wof-private-options-ready",id:y}),L(g=>s(0,C=String(Number(C)+g)))});let z=[],x,Q,N=new vt({tick:(b,g)=>{I0(Q,{style:[`transform: rotate(${b}deg)`,`height: ${C}px`,`width: ${C}px`].join(";")}),s(26,j=g*.5)}}),D=!0,P=!1,T=!1,V=!1,M=!1,j=0;const H=()=>{s(6,n.options=z,n)},q=()=>{s(6,n.contentdirection=u||"anticlockwise",n),R()},R=()=>{if(v)for(let b=0;b<=z.length;b++){const g=v.querySelector(`.PartitionImage.PartitionImage${b} image`);g&&I0(g,n.getSvgImageProps(b,m))}},Y=()=>{e0(),q(),s(25,M=!0)},e0=()=>{!!F.current&&F.current.remainingTimes>0?D=!0:(D=!1,F.next?a.setMessage({mode:"show-next",modeValue:F.next}):a.setMessage({mode:"NoNext"}))},_=()=>Z(this,null,function*(){if(e0(),!D||P)return;s(10,P=!0),s(11,T=!1),Q=x.querySelector($2(r.pointerMode)),N.launch();const b=r0();a.drawer(b)}),r0=()=>typeof crypto!="undefined"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():n0(),n0=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(b){var g=Math.random()*16|0,I=b=="x"?g:g&3|8;return I.toString(16)});w0({"wof-private-bonuses":b=>{s(24,F=b.bonuses.find(g=>g.program.id===y))},"wof-private-bonus":b=>{b.bonus.program.id===y&&s(24,F=b.bonus)},"wof-private-message-close":b=>{b.id===y&&(s(10,P=!1),setTimeout(()=>e0(),1),I0(Q,{style:[`transform: rotate(${N.deg}deg)`,`height: ${C}px`,`width: ${C}px`].join(";")}),s(12,V=!1))},"wof-private-message-retry":b=>{b.id===y&&(s(12,V=!1),a.drawer())}});const o0=(b,g)=>{const I=z[g].image;I0(I,n.getSvgImageProps(g)),b.innerHTML=null,b.appendChild(I)},k=()=>R0()||_();function W(b){e.binding_callbacks[b?"unshift":"push"](()=>{x=b,s(9,x)})}const t0=()=>R0()&&_();function s0(b){e.binding_callbacks[b?"unshift":"push"](()=>{v=b,s(2,v)})}return i.$$set=b=>{"lang"in b&&s(17,d=b.lang),"endpoint"in b&&s(18,h=b.endpoint),"session"in b&&s(19,p=b.session),"clientstyling"in b&&s(20,A=b.clientstyling),"contentdirection"in b&&s(21,u=b.contentdirection),"partitiondivisor"in b&&s(22,m=b.partitiondivisor),"id"in b&&s(23,y=b.id),"size"in b&&s(0,C=b.size),"radius"in b&&s(1,S=b.radius)},i.$$.update=()=>{var b,g;i.$$.dirty[0]&1048580&&A&&v&&h0(v,A),i.$$.dirty[0]&16908288&&F&&d&&O(),i.$$.dirty[0]&16777216&&s(7,o=((g=(b=F==null?void 0:F.program)==null?void 0:b.metadata)==null?void 0:g.template)||0),i.$$.dirty[0]&128&&s(5,r=G0[o]||G0[0]),i.$$.dirty[0]&2097291&&s(6,n=new Mt({size:C,radius:S,options:z,themeIndex:o,contentdirection:u})),i.$$.dirty[0]&8&&z&&H(),i.$$.dirty[0]&2097152&&(u||!u)&&q(),i.$$.dirty[0]&50331648&&F&&!M&&Y(),i.$$.dirty[0]&25952328&&(a=new It({id:y,afterSetMessage:()=>s(12,V=!0),halter:(I,w)=>{const J=I>=0?I:z.length-1;N.halt(n.getDeg(J),w)},afterSuccess:()=>s(11,T=!0),fetcher:I=>Z(this,null,function*(){return yield E0.draw(h,p,y,I,z,F)})})),i.$$.dirty[0]&67108896&&s(14,c=r.pointerMode===K.Arrow&&j>.3?`blur(${j}px)`:null),i.$$.dirty[0]&1&&s(4,l={height:C,width:C}),i.$$.dirty[0]&16&&s(13,f={style:Object.keys(l).map(I=>`${I}: ${l[I]}px`).join(";")})},[C,S,v,z,l,r,n,o,B,x,P,T,V,f,c,_,o0,d,h,p,A,u,m,y,F,M,j,k,W,t0,s0]}class o3 extends e.SvelteComponent{constructor(t){super(),e.init(this,t,s3,i3,e.safe_not_equal,{lang:17,endpoint:18,session:19,clientstyling:20,contentdirection:21,partitiondivisor:22,id:23,size:0,radius:1},t3,[-1,-1])}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get endpoint(){return this.$$.ctx[18]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[19]}set session(t){this.$$set({session:t}),e.flush()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get contentdirection(){return this.$$.ctx[21]}set contentdirection(t){this.$$set({contentdirection:t}),e.flush()}get partitiondivisor(){return this.$$.ctx[22]}set partitiondivisor(t){this.$$set({partitiondivisor:t}),e.flush()}get id(){return this.$$.ctx[23]}set id(t){this.$$set({id:t}),e.flush()}get size(){return this.$$.ctx[0]}set size(t){this.$$set({size:t}),e.flush()}get radius(){return this.$$.ctx[1]}set radius(t){this.$$set({radius:t}),e.flush()}}customElements.define("lottery-program-wof-private-item-svg",e.create_custom_element(o3,{lang:{},endpoint:{},session:{},clientstyling:{},contentdirection:{},partitiondivisor:{},id:{},size:{},radius:{}},[],[],!0));function r3(i){e.append_styles(i,"svelte-5mi6dy","lottery-program-wof-private-message-panel{position:absolute;top:0}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.LotteryItem{width:100%;display:flex;align-items:center;flex-direction:column;margin:20px 0}.LotteryItem.Invalid{display:none}.Current{color:#FFFFFF}")}function Ue(i,t,s){const o=i.slice();return o[22]=t[s],o}function Ne(i){let t,s=e.ensure_array_like(i[6]),o=[];for(let r=0;r<s.length;r+=1)o[r]=We(Ue(i,s,r));return{c(){t=e.element("div");for(let r=0;r<o.length;r+=1)o[r].c();e.attr(t,"class","Current")},m(r,n){e.insert(r,t,n);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,n){if(n&2113){s=e.ensure_array_like(r[6]);let a;for(a=0;a<s.length;a+=1){const c=Ue(r,s,a);o[a]?o[a].p(c,n):(o[a]=We(c),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=s.length}},d(r){r&&e.detach(t),e.destroy_each(o,r)}}}function We(i){let t,s=i[11](`wof.${i[22]}`)+"",o,r,n=me(i[0],i[22])+"",a,c,l;return{c(){t=e.element("p"),o=e.text(s),r=e.text(": "),a=e.text(n),c=e.space(),e.attr(t,"class",l=i[22])},m(f,d){e.insert(f,t,d),e.append(t,o),e.append(t,r),e.append(t,a),e.append(t,c)},p(f,d){d&2112&&s!==(s=f[11](`wof.${f[22]}`)+"")&&e.set_data(o,s),d&65&&n!==(n=me(f[0],f[22])+"")&&e.set_data(a,n),d&64&&l!==(l=f[22])&&e.attr(t,"class",l)},d(f){f&&e.detach(t)}}}function n3(i){var h,p,A;let t,s,o,r,n,a=[X(G({},i[10]),{id:i[3],size:i[5],radius:i[9],contentdirection:i[2]})],c={};for(let u=0;u<a.length;u+=1)c=e.assign(c,a[u]);let l=[X(G({},i[10]),{id:i[3],size:i[5],r:i[9],giftimagesrc:i[1],name:(p=(h=i[0])==null?void 0:h.program)==null?void 0:p.name["*"]})],f={};for(let u=0;u<l.length;u+=1)f=e.assign(f,l[u]);let d=((A=i[0])==null?void 0:A.current)&&i[7]&&Ne(i);return{c(){t=e.element("div"),s=e.element("lottery-program-wof-private-item-svg"),o=e.space(),r=e.element("lottery-program-wof-private-message-panel"),n=e.space(),d&&d.c(),e.set_attributes(s,c),e.set_attributes(r,f),e.attr(t,"class","LotteryItem"),e.toggle_class(t,"Invalid",m0(i[0])&&i[8])},m(u,m){e.insert(u,t,m),e.append(t,s),e.append(t,o),e.append(t,r),e.append(t,n),d&&d.m(t,null),i[18](t)},p(u,[m]){var v,y,C;e.set_attributes(s,c=e.get_spread_update(a,[m&1580&&X(G({},u[10]),{id:u[3],size:u[5],radius:u[9],contentdirection:u[2]})])),e.set_attributes(r,f=e.get_spread_update(l,[m&1579&&X(G({},u[10]),{id:u[3],size:u[5],r:u[9],giftimagesrc:u[1],name:(y=(v=u[0])==null?void 0:v.program)==null?void 0:y.name["*"]})])),(C=u[0])!=null&&C.current&&u[7]?d?d.p(u,m):(d=Ne(u),d.c(),d.m(t,null)):d&&(d.d(1),d=null),m&257&&e.toggle_class(t,"Invalid",m0(u[0])&&u[8])},i:e.noop,o:e.noop,d(u){u&&e.detach(t),d&&d.d(),i[18](null)}}}function a3(i,t,s){let o,r,n,a;e.component_subscribe(i,e.$format,x=>s(11,a=x));let{lang:c=p0.en}=t,{endpoint:l=""}=t,{session:f=""}=t,{clientstyling:d=""}=t,{currentinfo:h=g0.RemainingTimes}=t,{giftimagesrc:p=""}=t,{contentdirection:A="anticlockwise"}=t,{size:u="480"}=t,{id:m=""}=t,{bonus:v}=t,y,C,S=[],B,L=!1,F=!0;const O=()=>Z(this,null,function*(){const x=yield E0.lotteries(l,f);return S=x.map(Q=>{if(!m0(Q))return Q}),x.filter(Q=>Q.program.id===m)[0]});w0({"wof-private-options-ready":x=>{x.id===m&&s(7,L=!0)},"wof-private-bonuses":x=>{const Q=x.bonuses.find(N=>N.program.id===m);Q&&s(0,v=Q)},"wof-private-message-spin-after":x=>{x.id===m&&C&&(s(0,v=C),$({type:"wof-private-bonus",bonus:C,id:m}),S&&$({type:"wof-private-bonuses",bonuses:S}))},"wof-private-message-spin-before":x=>Z(this,null,function*(){x.id===m&&(s(8,F=!1),C=yield O())}),"wof-private-message-close":x=>{x.id===m&&($({type:"wof-private-checking",bonus:v,id:m}),setTimeout(()=>{s(8,F=!0)},1e3))}});function z(x){e.binding_callbacks[x?"unshift":"push"](()=>{y=x,s(4,y)})}return i.$$set=x=>{"lang"in x&&s(12,c=x.lang),"endpoint"in x&&s(13,l=x.endpoint),"session"in x&&s(14,f=x.session),"clientstyling"in x&&s(15,d=x.clientstyling),"currentinfo"in x&&s(16,h=x.currentinfo),"giftimagesrc"in x&&s(1,p=x.giftimagesrc),"contentdirection"in x&&s(2,A=x.contentdirection),"size"in x&&s(17,u=x.size),"id"in x&&s(3,m=x.id),"bonus"in x&&s(0,v=x.bonus)},i.$$.update=()=>{i.$$.dirty&32784&&d&&y&&h0(y,d),i.$$.dirty&61440&&s(10,o={endpoint:l,lang:c,session:f,clientstyling:d}),i.$$.dirty&131072&&s(5,r=Number(u)||480),i.$$.dirty&32&&s(9,n=.62*r/2),i.$$.dirty&65536&&s(6,B=h?h.split(","):[g0.RemainingTimes])},[v,p,A,m,y,r,B,L,F,n,o,a,c,l,f,d,h,u,z]}class l3 extends e.SvelteComponent{constructor(t){super(),e.init(this,t,a3,n3,e.safe_not_equal,{lang:12,endpoint:13,session:14,clientstyling:15,currentinfo:16,giftimagesrc:1,contentdirection:2,size:17,id:3,bonus:0},r3)}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),e.flush()}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[14]}set session(t){this.$$set({session:t}),e.flush()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get currentinfo(){return this.$$.ctx[16]}set currentinfo(t){this.$$set({currentinfo:t}),e.flush()}get giftimagesrc(){return this.$$.ctx[1]}set giftimagesrc(t){this.$$set({giftimagesrc:t}),e.flush()}get contentdirection(){return this.$$.ctx[2]}set contentdirection(t){this.$$set({contentdirection:t}),e.flush()}get size(){return this.$$.ctx[17]}set size(t){this.$$set({size:t}),e.flush()}get id(){return this.$$.ctx[3]}set id(t){this.$$set({id:t}),e.flush()}get bonus(){return this.$$.ctx[0]}set bonus(t){this.$$set({bonus:t}),e.flush()}}customElements.define("lottery-program-wof-private-item",e.create_custom_element(l3,{lang:{},endpoint:{},session:{},clientstyling:{},currentinfo:{},giftimagesrc:{},contentdirection:{},size:{},id:{},bonus:{}},[],[],!0));const c3="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.5384%203.18261L14.3222%200.9673C13.3202%20-0.0332963%2011.7009%20-0.26734%209.75715%200.310586C7.83938%200.880634%205.79092%202.18711%203.98901%203.98902C2.18711%205.79092%200.88063%207.83939%200.310582%209.75716C-0.26688%2011.7%20-0.0337635%2013.3211%200.965442%2014.3194C0.980736%2014.3361%200.99742%2014.3491%201.01967%2014.362L3.1826%2016.5384C3.83422%2017.1891%204.73749%2017.4996%205.78675%2017.4996C8.0382%2017.4996%2010.9621%2016.0703%2013.5167%2013.5167C17.2605%209.77199%2018.5878%205.23292%2016.5384%203.18261ZM13.2979%205.31681C12.764%206.90692%2011.6378%208.61521%2010.127%2010.1261C8.6152%2011.6369%206.90738%2012.764%205.31681%2013.2979C3.8991%2013.7744%202.71173%2013.7188%202.14169%2013.1469C1.57118%2012.5768%201.5151%2011.3904%201.99153%209.9722C2.52589%208.38209%203.65254%206.67426%205.1634%205.16341C6.67426%203.65209%208.38255%202.52589%209.97312%201.99153C10.6118%201.77649%2011.2031%201.67036%2011.7129%201.67036C12.3349%201.67036%2012.8345%201.8284%2013.1478%202.14169C13.7178%202.7122%2013.7744%203.89911%2013.2979%205.31681ZM12.3423%2012.3414C9.09859%2015.5846%205.53231%2016.5375%204.35699%2015.3622L4.23696%2015.2426C6.4481%2014.9914%209.06753%2013.5343%2011.3014%2011.3014C13.5343%209.06754%2014.9914%206.4481%2015.2426%204.23696L15.3622%204.357C16.5365%205.53093%2015.5846%209.09859%2012.3423%2012.3414Z'%20fill='url(%23paint0_linear_875_137)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_875_137'%20x1='0'%20y1='8.7498'%20x2='17.5'%20y2='8.7498'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function d3(i){e.append_styles(i,"svelte-19z60n4",`.mobile.drawer{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile .tooltip-backdrop{padding:60px 20px 0;border-top-left-radius:28px;border-top-right-radius:28px}.mobile .tooltip-backdrop .tooltip{padding:20px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .IconButton{width:24px;height:24px}.mobile .Header__title{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500);line-height:14px}.mobile .LuckyWheelList{gap:16px}.mobile .LuckyWheelList .LuckyWheelListKeys{gap:5px;font-size:var(--emw--font-size-medium, 16px)}.mobile .ItemButton{font-weight:var(--emw--font-weight-normal, 400);padding:20px;font-size:var(--emw--font-size-x-small, 12px);line-height:15px;border-radius:16px;height:56px}.mobile .LuckyWheelRules{gap:24px}.mobile .LuckyWheelRules .LuckyWheelRulesDesc{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .LuckyWheelRules .LuckyWheelRulesTerms{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px)}.mobile .LuckyWheelRules .LuckyWheelRulesPrizeTitle{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .LuckyWheelRules .LuckyWheelRulesList{padding-inline-start:15px;margin:5px 0 0}.mobile .LuckyWheelRules .LuckyWheelRulesList .LuckyWheelRulesListItem{margin-bottom:5px;font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .LuckyWheelEmpty{margin-top:50px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .LuckyWheelHistory .LuckyWheelHistoryTitle{font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .LuckyWheelHistory .LuckyWheelHistoryList{margin-bottom:32px}.mobile .LuckyWheelHistory .LuckyWheelHistoryList__item{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .LuckyWheelHistory .LuckyWheelHistoryList__item .name img{width:14px;height:14px}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Loader{display:flex;justify-self:center;width:100%}.NoContent{color:rgb(255, 255, 255);min-height:300px;display:flex;justify-content:center;align-items:center;font-size:16px}.CommonContainer{display:flex;flex-wrap:wrap;flex-direction:column;align-items:center;height:100%}.LuckyWheelList{max-height:85%;overflow:auto;gap:24px;display:flex;flex-wrap:wrap}.LuckyWheelListItem{width:100%}.ItemButton{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-large, 22px);line-height:25px;padding:35px 48px;border-radius:28px;height:110px;color:var(--emw--color-primary, #d3ffed);width:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);cursor:pointer}.IconButton{width:30px;height:30px;border:0px;cursor:pointer}.IconButton.back{background:center/100% url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M10.3579 5.26604C10.0032 4.91132 9.42806 4.91132 9.07334 5.26604L5.26604 9.07334C4.91132 9.42806 4.91132 10.0032 5.26604 10.3579L9.07334 14.1652C9.42806 14.5199 10.0032 14.5199 10.3579 14.1652C10.7126 13.8105 10.7126 13.2354 10.3579 12.8806L8.10118 10.6239H10.7817C12.0761 10.6239 12.9922 10.6246 13.7085 10.6832C14.4142 10.7408 14.8455 10.85 15.1847 11.0229C15.8735 11.3738 16.4335 11.9338 16.7844 12.6226C16.9573 12.9618 17.0665 13.3931 17.1241 14.0989C17.1827 14.8151 17.1834 15.7312 17.1834 17.0256V18.0917C17.1834 18.5933 17.59 19 18.0917 19C18.5933 19 19 18.5933 19 18.0917V16.9854C19 15.74 19 14.7498 18.9347 13.9509C18.8679 13.1329 18.7281 12.4359 18.403 11.7978C17.8779 10.7673 17.04 9.92938 16.0095 9.40427C15.3714 9.07918 14.6744 8.9394 13.8564 8.87257C13.0575 8.80729 12.0673 8.8073 10.8219 8.8073H8.10118L10.3579 6.55059C10.7126 6.19587 10.7126 5.62076 10.3579 5.26604Z" fill="%23729787"/></svg>') no-repeat}.IconButton.close{background:center/100% url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat}.IconButton.help{background:center/100% url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.708 4.583a7.125 7.125 0 1 0 0 14.25 7.125 7.125 0 0 0 0-14.25ZM3 11.708a8.708 8.708 0 1 1 17.417 0 8.708 8.708 0 0 1-17.417 0Zm8.913-3.147a1.583 1.583 0 0 0-1.762 1.035.792.792 0 0 1-1.493-.525 3.167 3.167 0 0 1 6.154 1.055c0 1.211-.899 2.011-1.54 2.439a6.37 6.37 0 0 1-1.335.672l-.028.01-.008.002-.003.001h-.002l-.251-.75.25.751a.792.792 0 0 1-.5-1.502l.011-.004.06-.022a4.778 4.778 0 0 0 .928-.476c.545-.363.834-.75.834-1.122v-.001a1.583 1.583 0 0 0-1.315-1.563Zm-.996 7.106c0-.438.354-.792.791-.792h.008a.792.792 0 1 1 0 1.583h-.008a.792.792 0 0 1-.791-.791Z" fill="%23729787"/></svg>') no-repeat}.Header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.HeaderTitle{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:var(--emw--font-weight-bold, 700);line-height:25px}.drawer{position:fixed;left:50%;transform:translateX(-50%);background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%);box-sizing:border-box;z-index:100;bottom:0;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px}.TabItem{height:100%;overflow-y:auto}.overlay{border:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5019607843));z-index:0;bottom:0;opacity:1;transition:opacity 0.5s ease-in-out}.tooltip-backdrop{box-sizing:border-box;z-index:200;position:absolute;width:100%;height:100%;inset:0;background-color:rgba(0, 0, 0, 0.5);padding:90px 30px 0;border-top-left-radius:72px;border-top-right-radius:72px}.tooltip-backdrop .tooltip{border:1px solid var(--emw--button-border-color, #75ffe9);background:var(--emw--color-background, #213841);border-radius:var(--emw--border-radius-large, 8px);line-height:24px;color:var(--emw--color-secondary, #bbb9c3);position:relative;padding:32px;font-size:var(--emw--font-size-medium, 16px)}.tooltip-backdrop .tooltip .IconButton{top:12px;right:12px;position:absolute}.LuckyWheelRules{display:flex;flex-flow:column;gap:40px;color:var(--emw--color-primary-variant, #a9ccbe)}.LuckyWheelRules__description{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:32px}.LuckyWheelRules__terms{display:flex;gap:5px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);border:none;padding:0;cursor:pointer;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.LuckyWheelRules__terms .arrow-icon{width:14px;height:14px;background:center/100% url('data:image/svg+xml,<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.41 7.744a.833.833 0 0 0 0 1.179l5 5a.833.833 0 0 0 1.18 0l5-5a.833.833 0 1 0-1.18-1.179L10 12.154l-4.41-4.41a.833.833 0 0 0-1.18 0Z" fill="url(%23a)"/><defs><linearGradient id="a" x1="10" y1="7.5" x2="10" y2="14.167" gradientUnits="userSpaceOnUse"><stop stop-color="%2375FFE9"/><stop offset="1" stop-color="%23B2FF6D"/></linearGradient></defs></svg>') no-repeat}.LuckyWheelRules__prize-title{color:#ffffff;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.LuckyWheelRules__list{padding-inline-start:25px;margin:15px 0 0}.LuckyWheelRules__list__item{font-weight:var(--emw--font-weight-normal, 400);margin-bottom:12px;font-size:var(--emw--font-size-medium, 16px);line-height:32px;list-style:initial}`)}function Xe(i,t,s){const o=i.slice();return o[40]=t[s],o}function Ke(i){let t,s,o,r,n,a=i[11]&&Ve(i);function c(d,h){return d[10]?g3:f3}let l=c(i),f=l(i);return{c(){t=e.element("div"),s=e.element("button"),o=e.space(),r=e.element("div"),a&&a.c(),n=e.space(),f.c(),e.attr(s,"class","overlay"),e.attr(r,"class","drawer "+(i[16]?"mobile":"")),e.attr(t,"class","WofContainer")},m(d,h){e.insert(d,t,h),e.append(t,s),e.append(t,o),e.append(t,r),a&&a.m(r,null),e.append(r,n),f.m(r,null),i[32](t)},p(d,h){d[11]?a?a.p(d,h):(a=Ve(d),a.c(),a.m(r,n)):a&&(a.d(1),a=null),l===(l=c(d))&&f?f.p(d,h):(f.d(1),f=l(d),f&&(f.c(),f.m(r,null)))},d(d){d&&e.detach(t),a&&a.d(),f.d(),i[32](null)}}}function Ve(i){let t,s,o,r,n,a=i[15]("wof.InfoTooltip")+"",c,l,f;return{c(){t=e.element("div"),s=e.element("div"),o=e.element("button"),r=e.space(),n=e.element("span"),c=e.text(a),e.attr(o,"class","IconButton close"),e.attr(s,"class","tooltip"),e.attr(t,"class","tooltip-backdrop")},m(d,h){e.insert(d,t,h),e.append(t,s),e.append(s,o),e.append(s,r),e.append(s,n),e.append(n,c),l||(f=e.listen(o,"click",i[20]),l=!0)},p(d,h){h[0]&32768&&a!==(a=d[15]("wof.InfoTooltip")+"")&&e.set_data(c,a)},d(d){d&&e.detach(t),l=!1,f()}}}function f3(i){var N0;let t,s,o,r,n=i[15]("LuckyWheels")+"",a,c,l,f,d,h,p,A,u,m,v,y,C,S,B=i[15]("wof.RulesDescription")+"",L,F,O,z,x,Q=i[15]("wof.PrizeAgenda")+"",N,D,P,T,V=i[15]("wof.TournamentTicket")+"",M,j,H,q=i[15]("wof.FreeSpins")+"",R,Y,e0,_=i[15]("wof.BonusMoney")+"",r0,n0,o0,k=i[15]("wof.LoyaltyPoints")+"",W,t0,s0,b=i[15]("wof.LuckyWheel")+"",g,I,w,J=i[15]("wof.MysteryChest")+"",P0,j0,C0,y0=i[15]("wof.CoinRoyale")+"",Q0,Z0,b0,v0=i[15]("wof.CustomRewards")+"",L0,D0,Y0;function U0(E,U){return E[9]?u3:E[8].length?A3:p3}let k0=U0(i),a0=k0(i),O0=[X(G({},i[14]),{id:(N0=i[8].find(i[31]))==null?void 0:N0.program.id,bonuses:i[8]})],B0={};for(let E=0;E<O0.length;E+=1)B0=e.assign(B0,O0[E]);let i0=i[13]&&_e(i),z0=[i[14],{isshowhistory:i[3]}],x0={};for(let E=0;E<z0.length;E+=1)x0=e.assign(x0,z0[E]);return{c(){t=e.element("div"),s=e.element("button"),s.innerHTML="",o=e.space(),r=e.element("div"),a=e.text(n),c=e.space(),l=e.element("button"),f=e.space(),d=e.element("lottery-program-wof-private-tabs"),h=e.element("div"),p=e.element("div"),a0.c(),A=e.space(),u=e.element("div"),m=e.element("lottery-program-wof-private-outcomes"),v=e.space(),y=e.element("div"),C=e.element("div"),S=e.element("span"),L=e.text(B),F=e.space(),i0&&i0.c(),O=e.space(),z=e.element("section"),x=e.element("span"),N=e.text(Q),D=e.space(),P=e.element("ul"),T=e.element("li"),M=e.text(V),j=e.space(),H=e.element("li"),R=e.text(q),Y=e.space(),e0=e.element("li"),r0=e.text(_),n0=e.space(),o0=e.element("li"),W=e.text(k),t0=e.space(),s0=e.element("li"),g=e.text(b),I=e.space(),w=e.element("li"),P0=e.text(J),j0=e.space(),C0=e.element("li"),Q0=e.text(y0),Z0=e.space(),b0=e.element("li"),L0=e.text(v0),e.attr(s,"class","IconButton help"),e.attr(r,"class","HeaderTitle"),e.attr(l,"class","IconButton close"),e.attr(t,"class","Header"),e.attr(p,"class","CommonContainer"),e.attr(h,"class","TabItem"),e.attr(h,"slot","tab-Play"),e.set_attributes(m,B0),e.attr(u,"class","TabItem"),e.attr(u,"slot","tab-History"),e.attr(S,"class","LuckyWheelRules__description"),e.attr(x,"class","LuckyWheelRules__prize-title"),e.attr(T,"class","LuckyWheelRules__list__item"),e.attr(H,"class","LuckyWheelRules__list__item"),e.attr(e0,"class","LuckyWheelRules__list__item"),e.attr(o0,"class","LuckyWheelRules__list__item"),e.attr(s0,"class","LuckyWheelRules__list__item"),e.attr(w,"class","LuckyWheelRules__list__item"),e.attr(C0,"class","LuckyWheelRules__list__item"),e.attr(b0,"class","LuckyWheelRules__list__item"),e.attr(P,"class","LuckyWheelRules__list"),e.attr(C,"class","LuckyWheelRules"),e.attr(y,"class","TabItem"),e.attr(y,"slot","tab-Rules"),e.set_attributes(d,x0)},m(E,U){e.insert(E,t,U),e.append(t,s),e.append(t,o),e.append(t,r),e.append(r,a),e.append(t,c),e.append(t,l),e.insert(E,f,U),e.insert(E,d,U),e.append(d,h),e.append(h,p),a0.m(p,null),e.append(d,A),e.append(d,u),e.append(u,m),e.append(d,v),e.append(d,y),e.append(y,C),e.append(C,S),e.append(S,L),e.append(C,F),i0&&i0.m(C,null),e.append(C,O),e.append(C,z),e.append(z,x),e.append(x,N),e.append(z,D),e.append(z,P),e.append(P,T),e.append(T,M),e.append(P,j),e.append(P,H),e.append(H,R),e.append(P,Y),e.append(P,e0),e.append(e0,r0),e.append(P,n0),e.append(P,o0),e.append(o0,W),e.append(P,t0),e.append(P,s0),e.append(s0,g),e.append(P,I),e.append(P,w),e.append(w,P0),e.append(P,j0),e.append(P,C0),e.append(C0,Q0),e.append(P,Z0),e.append(P,b0),e.append(b0,L0),D0||(Y0=[e.listen(s,"click",i[20]),e.listen(l,"click",i[19])],D0=!0)},p(E,U){var W0;U[0]&32768&&n!==(n=E[15]("LuckyWheels")+"")&&e.set_data(a,n),k0===(k0=U0(E))&&a0?a0.p(E,U):(a0.d(1),a0=k0(E),a0&&(a0.c(),a0.m(p,null))),e.set_attributes(m,B0=e.get_spread_update(O0,[U[0]&16641&&X(G({},E[14]),{id:(W0=E[8].find(E[31]))==null?void 0:W0.program.id,bonuses:E[8]})])),U[0]&32768&&B!==(B=E[15]("wof.RulesDescription")+"")&&e.set_data(L,B),E[13]?i0?i0.p(E,U):(i0=_e(E),i0.c(),i0.m(C,O)):i0&&(i0.d(1),i0=null),U[0]&32768&&Q!==(Q=E[15]("wof.PrizeAgenda")+"")&&e.set_data(N,Q),U[0]&32768&&V!==(V=E[15]("wof.TournamentTicket")+"")&&e.set_data(M,V),U[0]&32768&&q!==(q=E[15]("wof.FreeSpins")+"")&&e.set_data(R,q),U[0]&32768&&_!==(_=E[15]("wof.BonusMoney")+"")&&e.set_data(r0,_),U[0]&32768&&k!==(k=E[15]("wof.LoyaltyPoints")+"")&&e.set_data(W,k),U[0]&32768&&b!==(b=E[15]("wof.LuckyWheel")+"")&&e.set_data(g,b),U[0]&32768&&J!==(J=E[15]("wof.MysteryChest")+"")&&e.set_data(P0,J),U[0]&32768&&y0!==(y0=E[15]("wof.CoinRoyale")+"")&&e.set_data(Q0,y0),U[0]&32768&&v0!==(v0=E[15]("wof.CustomRewards")+"")&&e.set_data(L0,v0),e.set_attributes(d,x0=e.get_spread_update(z0,[U[0]&16384&&E[14],U[0]&8&&{isshowhistory:E[3]}]))},d(E){E&&(e.detach(t),e.detach(f),e.detach(d)),a0.d(),i0&&i0.d(),D0=!1,e.run_all(Y0)}}}function g3(i){let t,s,o,r,n=(i[10].program.name["*"]||i[10].program.name[p0.en])+"",a,c,l,f,d,h,p,A=[X(G({},i[14]),{id:i[10].program.id,currentinfo:i[1],giftimagesrc:i[2],contentdirection:i[4],bonus:i[10]})],u={};for(let m=0;m<A.length;m+=1)u=e.assign(u,A[m]);return{c(){t=e.element("div"),s=e.element("button"),s.innerHTML="",o=e.space(),r=e.element("div"),a=e.text(n),c=e.space(),l=e.element("button"),f=e.space(),d=e.element("lottery-program-wof-private-item"),e.attr(s,"class","IconButton back"),e.attr(r,"class","HeaderTitle"),e.attr(l,"class","IconButton close"),e.attr(t,"class","Header"),e.set_attributes(d,u)},m(m,v){e.insert(m,t,v),e.append(t,s),e.append(t,o),e.append(t,r),e.append(r,a),e.append(t,c),e.append(t,l),e.insert(m,f,v),e.insert(m,d,v),h||(p=[e.listen(s,"click",i[18]),e.listen(l,"click",i[19])],h=!0)},p(m,v){v[0]&1024&&n!==(n=(m[10].program.name["*"]||m[10].program.name[p0.en])+"")&&e.set_data(a,n),e.set_attributes(d,u=e.get_spread_update(A,[v[0]&17430&&X(G({},m[14]),{id:m[10].program.id,currentinfo:m[1],giftimagesrc:m[2],contentdirection:m[4],bonus:m[10]})]))},d(m){m&&(e.detach(t),e.detach(f),e.detach(d)),h=!1,e.run_all(p)}}}function p3(i){let t,s,o=i[15]("wof.NoContent")+"",r;return{c(){t=e.element("div"),s=e.element("p"),r=e.text(o),e.attr(t,"class","NoContent")},m(n,a){e.insert(n,t,a),e.append(t,s),e.append(s,r)},p(n,a){a[0]&32768&&o!==(o=n[15]("wof.NoContent")+"")&&e.set_data(r,o)},d(n){n&&e.detach(t)}}}function A3(i){let t,s=e.ensure_array_like(i[8]),o=[];for(let r=0;r<s.length;r+=1)o[r]=qe(Xe(i,s,r));return{c(){t=e.element("ul");for(let r=0;r<o.length;r+=1)o[r].c();e.attr(t,"class","LuckyWheelList")},m(r,n){e.insert(r,t,n);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,n){if(n[0]&131328){s=e.ensure_array_like(r[8]);let a;for(a=0;a<s.length;a+=1){const c=Xe(r,s,a);o[a]?o[a].p(c,n):(o[a]=qe(c),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=s.length}},d(r){r&&e.detach(t),e.destroy_each(o,r)}}}function u3(i){let t;return{c(){t=e.element("wof-loader"),e.set_custom_element_data(t,"class","Loader")},m(s,o){e.insert(s,t,o)},p:e.noop,d(s){s&&e.detach(t)}}}function qe(i){var y,C;let t,s,o=i[40].program.name["*"]+"",r,n,a,c,l,f,d,h=((C=(y=i[40])==null?void 0:y.current)==null?void 0:C.remainingTimes)+"",p,A,u,m;function v(){return i[30](i[40])}return{c(){t=e.element("li"),s=e.element("button"),r=e.text(o),n=e.space(),a=e.element("div"),c=e.element("img"),f=e.space(),d=e.element("span"),p=e.text(h),A=e.space(),e.src_url_equal(c.src,l=c3)||e.attr(c,"src",l),e.attr(c,"alt","Key"),e.attr(a,"class","ItemKeys"),e.attr(s,"class","ItemButton"),e.attr(t,"class","LuckyWheelListItem")},m(S,B){e.insert(S,t,B),e.append(t,s),e.append(s,r),e.append(s,n),e.append(s,a),e.append(a,c),e.append(a,f),e.append(a,d),e.append(d,p),e.append(t,A),u||(m=e.listen(s,"click",v),u=!0)},p(S,B){var L,F;i=S,B[0]&256&&o!==(o=i[40].program.name["*"]+"")&&e.set_data(r,o),B[0]&256&&h!==(h=((F=(L=i[40])==null?void 0:L.current)==null?void 0:F.remainingTimes)+"")&&e.set_data(p,h)},d(S){S&&e.detach(t),u=!1,m()}}}function _e(i){let t,s,o=i[15]("wof.Terms")+"",r,n,a;return{c(){t=e.element("a"),s=e.element("span"),r=e.text(o),n=e.space(),a=e.element("span"),e.attr(a,"class","arrow-icon"),e.attr(t,"class","LuckyWheelRules__terms"),e.attr(t,"href",i[5]),e.attr(t,"target","_blank")},m(c,l){e.insert(c,t,l),e.append(t,s),e.append(s,r),e.append(t,n),e.append(t,a)},p(c,l){l[0]&32768&&o!==(o=c[15]("wof.Terms")+"")&&e.set_data(r,o),l[0]&32&&e.attr(t,"href",c[5])},d(c){c&&e.detach(t)}}}function h3(i){let t,s=(i[12]||i[6])&&Ke(i);return{c(){s&&s.c(),t=e.empty()},m(o,r){s&&s.m(o,r),e.insert(o,t,r)},p(o,r){o[12]||o[6]?s?s.p(o,r):(s=Ke(o),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},i:e.noop,o:e.noop,d(o){o&&e.detach(t),s&&s.d(o)}}}function m3(i,t,s){let o,r,n;e.component_subscribe(i,e.$format,k=>s(15,n=k));let{lang:a=p0.en}=t,{endpoint:c=""}=t,{session:l=""}=t,{clientstyling:f=""}=t,{clientstylingurl:d=""}=t,{translationurl:h=""}=t,{programid:p=""}=t,{loginevent:A=""}=t,{loginurl:u=""}=t,{currentinfo:m=g0.RemainingTimes}=t,{giftimagesrc:v=""}=t,{isshowhistory:y="true"}=t,{contentdirection:C="anticlockwise"}=t,{terms:S=""}=t,{gameoverlay:B="false"}=t,L,F=!1;g2();let O=[],z=!0,x,Q=window.navigator.userAgent,N=e.isMobile(Q),D=!1,P=!1,T=!1;const V=k=>/(https?:\/\/[^\s]+)/g.test(k),M=()=>Z(this,null,function*(){if(s(9,z=!0),!o){H(A,u);return}!F||!a||!l||!c||(yield j())}),j=()=>Z(this,null,function*(){const k=yield E0.lotteries(c,l);$({type:"wof-private-bonuses-outcomes",bonuses:k}),s(8,O=k.map(W=>{if(!m0(W))return W})),s(9,z=!1),$({type:"WofStatus",avaliable:O.length>0}),$({type:"wof-private-bonuses",bonuses:O})}),H=(k,W)=>{k&&window.postMessage({type:k,transition:"Login"},window.location.href),W&&(window.location=W)},q=()=>{f2(a),M()},R=k=>{s(10,x=k),$({type:"wof-private-bonus",bonus:k})},Y=()=>{s(10,x=null)},e0=()=>{s(12,P=!1)},_=()=>{s(11,D=!D)};w0({"wof-private-checking":k=>{s(8,O=O.map(t0=>t0.program.id===k.id?X(G({},k.bonus),{hidden:m0(k.bonus)}):t0));let W=!0;O.map(t0=>{t0.hidden!==!0&&(W=!1)}),W&&s(8,O=[])},OpenLuckyWheelDrawer:()=>{s(12,P=!0),$({type:"wof-private-bonuses-outcomes",bonuses:O})},CloseLuckyWheelDrawer:()=>{s(12,P=!1)}}),e.onMount(()=>(s(29,F=!0),s(13,T=V(S)),()=>s(29,F=!1)));const r0=k=>R(k),n0=k=>k.program.id===p;function o0(k){e.binding_callbacks[k?"unshift":"push"](()=>{L=k,s(7,L)})}return i.$$set=k=>{"lang"in k&&s(22,a=k.lang),"endpoint"in k&&s(23,c=k.endpoint),"session"in k&&s(24,l=k.session),"clientstyling"in k&&s(21,f=k.clientstyling),"clientstylingurl"in k&&s(25,d=k.clientstylingurl),"translationurl"in k&&s(26,h=k.translationurl),"programid"in k&&s(0,p=k.programid),"loginevent"in k&&s(27,A=k.loginevent),"loginurl"in k&&s(28,u=k.loginurl),"currentinfo"in k&&s(1,m=k.currentinfo),"giftimagesrc"in k&&s(2,v=k.giftimagesrc),"isshowhistory"in k&&s(3,y=k.isshowhistory),"contentdirection"in k&&s(4,C=k.contentdirection),"terms"in k&&s(5,S=k.terms),"gameoverlay"in k&&s(6,B=k.gameoverlay)},i.$$.update=()=>{i.$$.dirty[0]&16777216&&(o=l&&l!=="false"),i.$$.dirty[0]&536870912&&F&&M(),i.$$.dirty[0]&25165824&&l&&c&&M(),i.$$.dirty[0]&4194304&&a&&q(),i.$$.dirty[0]&33554560&&d&&L&&w2(d,k=>s(21,f=k)),i.$$.dirty[0]&2097280&&f&&L&&h0(L,f),i.$$.dirty[0]&67108864&&h&&m2(h),i.$$.dirty[0]&31457280&&s(14,r={endpoint:c,lang:a,session:l,clientstyling:f})},[p,m,v,y,C,S,B,L,O,z,x,D,P,T,r,n,N,R,Y,e0,_,f,a,c,l,d,h,A,u,F,r0,n0,o0]}class i2 extends e.SvelteComponent{constructor(t){super(),e.init(this,t,m3,h3,e.safe_not_equal,{lang:22,endpoint:23,session:24,clientstyling:21,clientstylingurl:25,translationurl:26,programid:0,loginevent:27,loginurl:28,currentinfo:1,giftimagesrc:2,isshowhistory:3,contentdirection:4,terms:5,gameoverlay:6},d3,[-1,-1])}get lang(){return this.$$.ctx[22]}set lang(t){this.$$set({lang:t}),e.flush()}get endpoint(){return this.$$.ctx[23]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[24]}set session(t){this.$$set({session:t}),e.flush()}get clientstyling(){return this.$$.ctx[21]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[25]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[26]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get programid(){return this.$$.ctx[0]}set programid(t){this.$$set({programid:t}),e.flush()}get loginevent(){return this.$$.ctx[27]}set loginevent(t){this.$$set({loginevent:t}),e.flush()}get loginurl(){return this.$$.ctx[28]}set loginurl(t){this.$$set({loginurl:t}),e.flush()}get currentinfo(){return this.$$.ctx[1]}set currentinfo(t){this.$$set({currentinfo:t}),e.flush()}get giftimagesrc(){return this.$$.ctx[2]}set giftimagesrc(t){this.$$set({giftimagesrc:t}),e.flush()}get isshowhistory(){return this.$$.ctx[3]}set isshowhistory(t){this.$$set({isshowhistory:t}),e.flush()}get contentdirection(){return this.$$.ctx[4]}set contentdirection(t){this.$$set({contentdirection:t}),e.flush()}get terms(){return this.$$.ctx[5]}set terms(t){this.$$set({terms:t}),e.flush()}get gameoverlay(){return this.$$.ctx[6]}set gameoverlay(t){this.$$set({gameoverlay:t}),e.flush()}}e.create_custom_element(i2,{lang:{},endpoint:{},session:{},clientstyling:{},clientstylingurl:{},translationurl:{},programid:{},loginevent:{},loginurl:{},currentinfo:{},giftimagesrc:{},isshowhistory:{},contentdirection:{},terms:{},gameoverlay:{}},[],[],!0);exports.default=i2;
|
|
31
|
+
`].join(" ");function t3(i){e.append_styles(i,"svelte-19t82yv",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.LotteryProgramWof{background:var(--emw--color-contrast, #07072A);display:flex;align-items:center;flex-direction:column;padding:20px 0}main{max-width:600px;width:100%;display:flex;justify-content:space-around;min-height:200px}svg{transition:opacity 0.3s}.FortuneContainer{width:100%;display:flex;align-items:center;flex-direction:column}.Center{cursor:pointer;transition:filter;transition-duration:1s}.Center.disabled{filter:grayscale(80%)}.Center .CenterCircle{fill:#3CE4BB;stroke:rgb(150, 54, 88);stroke-width:2px;cursor:pointer;transition:fill;transition-duration:1s}.Center .CenterText{fill:#FFFFFF}.PointerPartition{opacity:0.3;fill:lightgoldenrodyellow;stroke:red;stroke-width:6px;stroke-dasharray:12}.Current{color:#FFFFFF}.PartitionText{color:#FFFFFF;font-style:normal;font-weight:700;text-anchor:end;text-shadow:0px 3px #000;dominant-baseline:central}.PartitionsShadow{background-blend-mode:multiply;mix-blend-mode:multiply}.PartitionTextEntityContainer{height:100%;display:flex;align-items:center}.PartitionTextEntity{width:100%}.PartitionTextEntity.Anticlockwise{text-align:end}.theme1 foreignObject.Bottom div,.theme4 foreignObject.Bottom div,.theme5 foreignObject.Bottom div{background-image:var(--img-theme1-bg3), var(--img-theme-BgBlackRing), var(--img-theme-BgHalo);background-position:center, center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 7px), calc(var(--radius) * 2px + var(--ratio) * 37px), calc(var(--radius) * 2px + var(--ratio) * 130px)}.theme2 foreignObject.Bottom div,.theme6 foreignObject.Bottom div{background-image:var(--img-theme2-bg3), var(--img-theme-BgHalo), var(--img-theme-BgBlackRing);background-position:center, center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 8px), calc(var(--radius) * 2px + var(--ratio) * 123px), calc(var(--radius) * 2px + var(--ratio) * 37px)}.theme3 foreignObject.Bottom div{background-image:var(--img-theme3-bg2), var(--img-theme3-bg1);background-position:center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 57px), calc(var(--radius) * 2px + var(--ratio) * 125px)}.theme7 foreignObject.Bottom div{background-image:var(--img-theme7-bg3), var(--img-theme7-bg2), var(--img-theme7-bg1);background-position:center, center calc(var(--size) * 1px - var(--ratio) * 95px), calc(var(--ratio) * 42px) calc(var(--ratio) * -5px);background-size:calc(var(--radius) * 2px + 35px), calc(var(--radius) * 2px * 0.6), calc(var(--radius) * 2.7px)}.theme8 foreignObject.Bottom div{background-image:var(--img-theme8-bg1);background-position:center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 20px), calc(var(--radius) * 2px + var(--ratio) * 125px)}.theme1 foreignObject.Middle div,.theme4 foreignObject.Middle div{background-image:var(--img-theme-center1);background-position:center}.theme2 foreignObject.Middle div{background-image:var(--img-theme2-center), var(--img-theme2-arrow);background-position:center, center 60px}.theme3 foreignObject.Middle div{background-image:var(--img-theme3-center), var(--img-theme3-arrow);background-position:center, center 39px}.theme8 foreignObject.Middle div{background-image:var(--img-theme8-center), var(--img-theme8-arrow);background-position:center, center 55px}.theme5 foreignObject.Middle div,.theme6 foreignObject.Middle div{background-image:var(--img-theme-center2);background-position:center}.theme7 foreignObject.Middle div{background-image:var(--img-theme7-center), var(--img-theme7-arrow);background-position:center, center 36px}.theme7 foreignObject.Top div{background-image:var(--img-theme7-light);background-position:294px 135px}.theme1 foreignObject.Top,.theme2 foreignObject.Top,.theme3 foreignObject.Top,.theme4 foreignObject.Top,.theme5 foreignObject.Top,.theme6 foreignObject.Top{mix-blend-mode:multiply}.theme1 foreignObject.Top div,.theme2 foreignObject.Top div,.theme3 foreignObject.Top div,.theme4 foreignObject.Top div,.theme5 foreignObject.Top div,.theme6 foreignObject.Top div{background-image:var(--img-theme-shadow);background-position:center;background-size:calc(var(--radius) * 2px)}.theme2 foreignObject.Partition1 div{background-image:var(--img-theme-partition-light);background-position:center calc((var(--size) / 2 - var(--radius)) * 1px - var(--ratio) * 22px);transform:rotate(calc(var(--index) * 360deg / var(--length)))}.theme2 foreignObject.Partition2 div{background-image:var(--img-theme-partition-light);background-position:center calc((var(--size) / 2 - var(--radius)) * 1px - var(--ratio) * 22px);transform:rotate(calc((var(--index) + 0.5) * 360deg / var(--length)))}foreignObject.PointerArea{mix-blend-mode:screen}foreignObject.PointerArea div{background-image:var(--img-theme-pointer-area);background-position:center -3px;background-size:51%}foreignObject.Partition1 div,foreignObject.Partition2 div{transform-origin:center}.PartitionsCustomable1 div,.PartitionsCustomable2 div{visibility:hidden}.PartitionsCustomable1 div.active,.PartitionsCustomable2 div.active{visibility:visible}foreignObject.Customable{overflow:visible}foreignObject.Customable div{background-repeat:no-repeat}.PartitionBackground div{background-size:calc(var(--radius) * 2 / var(--size) * 100%) calc(var(--radius) * 2 / var(--size) * 100%);background-position:center}.theme1 .PartitionBackground:nth-child(4n+1) div,.theme2 .PartitionBackground:nth-child(4n+1) div{background-image:radial-gradient(#009C9C 0%, #002634 100%)}.theme1 .PartitionBackground:nth-child(4n+2) div,.theme2 .PartitionBackground:nth-child(4n+2) div{background-image:radial-gradient(#AA00BF 0%, #3B0031 100%)}.theme1 .PartitionBackground:nth-child(4n+3) div,.theme2 .PartitionBackground:nth-child(4n+3) div{background-image:radial-gradient(#0068CD 0%, #150D42 100%)}.theme1 .PartitionBackground:nth-child(4n+4) div,.theme2 .PartitionBackground:nth-child(4n+4) div{background-image:radial-gradient(#DA005B 0%, #400021 100%)}.theme3 .PartitionBackground:nth-child(4n+1) div{background-image:radial-gradient(#066 0%, #007F76 13%, #00B59B 42%, #00DDB5 67.01%, #00F6C6 88.01%, #0FC 100.01%)}.theme3 .PartitionBackground:nth-child(4n+2) div{background-image:radial-gradient(#580065 22.67%, #D453FF 91.3%)}.theme3 .PartitionBackground:nth-child(4n+3) div{background-image:radial-gradient(#FFE767 -0.01%, #F28F00 100%)}.theme3 .PartitionBackground:nth-child(4n+4) div{background-image:radial-gradient(#900A42 22.59%, #960A44 23.94%, #B60B53 31.36%, #D00C5E 39.45%, #E40D67 48.22%, #F30D6E 57.66%, #FB0D71 69.8%, #FE0E73 90.03%)}.theme4 .PartitionBackground:nth-child(4n+1) div,.theme5 .PartitionBackground:nth-child(4n+1) div,.theme6 .PartitionBackground:nth-child(4n+1) div{background:radial-gradient(#3B0031 0%, #7E008E 100.01%)}.theme4 .PartitionBackground:nth-child(4n+2) div,.theme5 .PartitionBackground:nth-child(4n+2) div,.theme6 .PartitionBackground:nth-child(4n+2) div{background:radial-gradient(#5A005F 22.67%, #EA53FF 91.3%)}.theme4 .PartitionBackground:nth-child(4n+3) div,.theme5 .PartitionBackground:nth-child(4n+3) div,.theme6 .PartitionBackground:nth-child(4n+3) div{background:radial-gradient(#B300C3 -0.01%, #4D003B 100%)}.theme4 .PartitionBackground:nth-child(4n+4) div,.theme5 .PartitionBackground:nth-child(4n+4) div,.theme6 .PartitionBackground:nth-child(4n+4) div{background:radial-gradient(#59007B 22.59%, #B753FF 90.03%)}.theme7 .PartitionBackground:nth-child(2n+1) div{background:linear-gradient(90.23deg, #F6AD3F 16.59%, #AF8531 99.8%)}.theme7 .PartitionBackground:nth-child(2n+2) div{background:linear-gradient(90deg, #323234 -0.01%, #272425 54.99%, #231F1F 99.99%)}.theme8 .PartitionBackground div{background:#333}.theme8 .PartitionBackground:nth-child(2n+1) .PartitionSmallBackground{background:#3F2E75}.theme8 .PartitionBackground:nth-child(2n+2) .PartitionSmallBackground{background:#9482CE}.theme8 .PartitionBackgrounds{position:relative}.theme8 .PartitionSmallBackground{position:absolute;top:0;width:100%;height:100%}.PartitionBackground div{transform-origin:center}.PartitionBackgroundStroke{fill:transparent;stroke-width:0.5px;stroke-dasharray:var(--radius) calc(6.2831853072 / var(--length) * var(--radius))}.theme1 .PartitionBackgroundStroke,.theme2 .PartitionBackgroundStroke{stroke:#FCD755}.PointerPartitionFrame{stroke:#FFDD64;fill:transparent;stroke-dasharray:var(--radius) calc(6.2831853072 / var(--length) * var(--radius));stroke-width:0px}.PointerPartitionFrame.active{stroke-width:3px}g.Center.spinning{cursor:not-allowed}')}function Se(i,t,s){const o=i.slice();return o[44]=t[s],o[46]=s,o}function Ee(i,t,s){const o=i.slice();return o[44]=t[s],o[46]=s,o}function Pe(i,t,s){const o=i.slice();return o[44]=t[s],o[46]=s,o}function Qe(i,t,s){const o=i.slice();return o[49]=t[s],o[46]=s,o}function Le(i,t,s){const o=i.slice();return o[44]=t[s],o[46]=s,o}function De(i,t,s){const o=i.slice();return o[44]=t[s],o[46]=s,o}function Oe(i){let t,s,o,r,n,a,c,l,f,d,h,p,A,u,m,v,y,C,S,B,L=[i[13]],F={};for(let g=0;g<L.length;g+=1)F=e.assign(F,L[g]);let O=[i[4],{class:"Bottom Customable"}],z={};for(let g=0;g<O.length;g+=1)z=e.assign(z,O[g]);let x=e.ensure_array_like(i[3]),Q=[];for(let g=0;g<x.length;g+=1)Q[g]=ze(De(i,x,g));let N=e.ensure_array_like(i[3]),D=[];for(let g=0;g<N.length;g+=1)D[g]=Te(Le(i,N,g));let P=e.ensure_array_like(i[3]),T=[];for(let g=0;g<P.length;g+=1)T[g]=Je(Qe(i,P,g));let V=[{class:"PartitionsContainer"},i[6].getSpinnerProps()],M={};for(let g=0;g<V.length;g+=1)M=e.assign(M,V[g]);let j=e.ensure_array_like(i[3]),H=[];for(let g=0;g<j.length;g+=1)H[g]=Ge(Pe(i,j,g));let q=e.ensure_array_like(i[3]),R=[];for(let g=0;g<q.length;g+=1)R[g]=je(Ee(i,q,g));let Y=i[5].pointerMode===K.Partition&&Ze(i),e0=[i[13]],_={};for(let g=0;g<e0.length;g+=1)_=e.assign(_,e0[g]);let r0=[{class:"Middle Customable"},i[4]],n0={};for(let g=0;g<r0.length;g+=1)n0=e.assign(n0,r0[g]);let o0=[i[13]],k={};for(let g=0;g<o0.length;g+=1)k=e.assign(k,o0[g]);let W=[{class:"Top Customable"},i[4]],t0={};for(let g=0;g<W.length;g+=1)t0=e.assign(t0,W[g]);let s0=e.ensure_array_like(i[3]),b=[];for(let g=0;g<s0.length;g+=1)b[g]=Ye(Se(i,s0,g));return{c(){t=e.svg_element("svg"),s=e.svg_element("foreignObject"),o=e.element("div"),r=e.svg_element("g"),n=e.svg_element("g");for(let g=0;g<Q.length;g+=1)Q[g].c();a=e.svg_element("g");for(let g=0;g<D.length;g+=1)D[g].c();c=e.svg_element("g");for(let g=0;g<T.length;g+=1)T[g].c();l=e.svg_element("g");for(let g=0;g<H.length;g+=1)H[g].c();f=e.svg_element("g");for(let g=0;g<R.length;g+=1)R[g].c();Y&&Y.c(),d=e.svg_element("foreignObject"),h=e.element("div"),p=e.svg_element("foreignObject"),A=e.element("div"),u=e.svg_element("g"),m=e.svg_element("foreignObject"),C=e.svg_element("g");for(let g=0;g<b.length;g+=1)b[g].c();e.set_attributes(o,F),e.set_svg_attributes(s,z),e.attr(n,"class","PartitionsBackgrounds"),e.attr(a,"class","PartitionsBackgroundStrokes"),e.attr(c,"class","Partitions"),e.set_style(c,"filter",i[14]),e.set_svg_attributes(r,M),e.attr(l,"class","PartitionsCustomable1"),e.toggle_class(l,"active",i[8]),e.attr(f,"class","PartitionsCustomable2"),e.toggle_class(f,"active",i[8]),e.set_attributes(h,_),e.set_svg_attributes(d,n0),e.set_attributes(A,k),e.set_svg_attributes(p,t0),e.attr(m,"x",v=Number(i[0])/2-100/2),e.attr(m,"y",y=Number(i[0])/2-100/2),e.attr(m,"width",100),e.attr(m,"height",100),e.attr(u,"class","Center"),e.toggle_class(u,"spinning",i[10]),e.attr(t,"width",i[0]),e.attr(t,"height",i[0]),e.set_style(t,"opacity",i[12]?".3":"")},m(g,I){e.insert(g,t,I),e.append(t,s),e.append(s,o),e.append(t,r),e.append(r,n);for(let w=0;w<Q.length;w+=1)Q[w]&&Q[w].m(n,null);e.append(r,a);for(let w=0;w<D.length;w+=1)D[w]&&D[w].m(a,null);e.append(r,c);for(let w=0;w<T.length;w+=1)T[w]&&T[w].m(c,null);e.append(t,l);for(let w=0;w<H.length;w+=1)H[w]&&H[w].m(l,null);e.append(t,f);for(let w=0;w<R.length;w+=1)R[w]&&R[w].m(f,null);Y&&Y.m(t,null),e.append(t,d),e.append(d,h),e.append(t,p),e.append(p,A),e.append(t,u),e.append(u,m),e.append(t,C);for(let w=0;w<b.length;w+=1)b[w]&&b[w].m(C,null);i[28](t),S||(B=[e.listen(u,"click",i[27]),e.listen(t,"click",i[29])],S=!0)},p(g,I){if(e.set_attributes(o,F=e.get_spread_update(L,[I[0]&8192&&g[13]])),e.set_svg_attributes(s,z=e.get_spread_update(O,[I[0]&16&&g[4],{class:"Bottom Customable"}])),I[0]&8201){x=e.ensure_array_like(g[3]);let w;for(w=0;w<x.length;w+=1){const J=De(g,x,w);Q[w]?Q[w].p(J,I):(Q[w]=ze(J),Q[w].c(),Q[w].m(n,null))}for(;w<Q.length;w+=1)Q[w].d(1);Q.length=x.length}if(I[0]&73){N=e.ensure_array_like(g[3]);let w;for(w=0;w<N.length;w+=1){const J=Le(g,N,w);D[w]?D[w].p(J,I):(D[w]=Te(J),D[w].c(),D[w].m(a,null))}for(;w<D.length;w+=1)D[w].d(1);D.length=N.length}if(I[0]&72){P=e.ensure_array_like(g[3]);let w;for(w=0;w<P.length;w+=1){const J=Qe(g,P,w);T[w]?T[w].p(J,I):(T[w]=Je(J),T[w].c(),T[w].m(c,null))}for(;w<T.length;w+=1)T[w].d(1);T.length=P.length}if(I[0]&16384&&e.set_style(c,"filter",g[14]),e.set_svg_attributes(r,M=e.get_spread_update(V,[{class:"PartitionsContainer"},I[0]&64&&g[6].getSpinnerProps()])),I[0]&8216){j=e.ensure_array_like(g[3]);let w;for(w=0;w<j.length;w+=1){const J=Pe(g,j,w);H[w]?H[w].p(J,I):(H[w]=Ge(J),H[w].c(),H[w].m(l,null))}for(;w<H.length;w+=1)H[w].d(1);H.length=j.length}if(I[0]&256&&e.toggle_class(l,"active",g[8]),I[0]&8216){q=e.ensure_array_like(g[3]);let w;for(w=0;w<q.length;w+=1){const J=Ee(g,q,w);R[w]?R[w].p(J,I):(R[w]=je(J),R[w].c(),R[w].m(f,null))}for(;w<R.length;w+=1)R[w].d(1);R.length=q.length}if(I[0]&256&&e.toggle_class(f,"active",g[8]),g[5].pointerMode===K.Partition?Y?Y.p(g,I):(Y=Ze(g),Y.c(),Y.m(t,d)):Y&&(Y.d(1),Y=null),e.set_attributes(h,_=e.get_spread_update(e0,[I[0]&8192&&g[13]])),e.set_svg_attributes(d,n0=e.get_spread_update(r0,[{class:"Middle Customable"},I[0]&16&&g[4]])),e.set_attributes(A,k=e.get_spread_update(o0,[I[0]&8192&&g[13]])),e.set_svg_attributes(p,t0=e.get_spread_update(W,[{class:"Top Customable"},I[0]&16&&g[4]])),I[0]&1&&v!==(v=Number(g[0])/2-100/2)&&e.attr(m,"x",v),I[0]&1&&y!==(y=Number(g[0])/2-100/2)&&e.attr(m,"y",y),I[0]&1024&&e.toggle_class(u,"spinning",g[10]),I[0]&72){s0=e.ensure_array_like(g[3]);let w;for(w=0;w<s0.length;w+=1){const J=Se(g,s0,w);b[w]?b[w].p(J,I):(b[w]=Ye(J),b[w].c(),b[w].m(C,null))}for(;w<b.length;w+=1)b[w].d(1);b.length=s0.length}I[0]&1&&e.attr(t,"width",g[0]),I[0]&1&&e.attr(t,"height",g[0]),I[0]&4096&&e.set_style(t,"opacity",g[12]?".3":"")},d(g){g&&e.detach(t),e.destroy_each(Q,g),e.destroy_each(D,g),e.destroy_each(T,g),e.destroy_each(H,g),e.destroy_each(R,g),Y&&Y.d(),e.destroy_each(b,g),i[28](null),S=!1,e.run_all(B)}}}function ze(i){let t,s,o=[i[13]],r={};for(let n=0;n<o.length;n+=1)r=e.assign(r,o[n]);return{c(){t=e.svg_element("foreignObject"),s=e.element("div"),e.set_attributes(s,r),e.attr(t,"clip-path",`url(#clip${i[46]})`),e.attr(t,"class","PartitionBackground Customable"),e.attr(t,"style",`--index: ${i[46]}`),e.attr(t,"width",i[0]),e.attr(t,"height",i[0])},m(n,a){e.insert(n,t,a),e.append(t,s)},p(n,a){e.set_attributes(s,r=e.get_spread_update(o,[a[0]&8192&&n[13]])),a[0]&1&&e.attr(t,"width",n[0]),a[0]&1&&e.attr(t,"height",n[0])},d(n){n&&e.detach(t)}}}function Te(i){let t,s=[{class:"PartitionBackgroundStroke"},i[6].getPartitionDraw(i[46]),{width:i[0]},{height:i[0]}],o={};for(let r=0;r<s.length;r+=1)o=e.assign(o,s[r]);return{c(){t=e.svg_element("path"),e.set_svg_attributes(t,o)},m(r,n){e.insert(r,t,n)},p(r,n){e.set_svg_attributes(t,o=e.get_spread_update(s,[{class:"PartitionBackgroundStroke"},n[0]&64&&r[6].getPartitionDraw(r[46]),n[0]&1&&{width:r[0]},n[0]&1&&{height:r[0]}]))},d(r){r&&e.detach(t)}}}function He(i){let t,s,o;return{c(){t=e.svg_element("g"),e.attr(t,"class",`PartitionImage PartitionImage${i[46]}`)},m(r,n){e.insert(r,t,n),s||(o=e.action_destroyer(i[16].call(null,t,i[46])),s=!0)},p(r,n){i=r},d(r){r&&e.detach(t),s=!1,o()}}}function Re(i){let t,s,o,r=i[49].name+"",n,a,c=[{class:"PartitionText"},i[6].getSvgTextPropsAdjustedByImage(i[46])],l={};for(let f=0;f<c.length;f+=1)l=e.assign(l,c[f]);return{c(){t=e.svg_element("foreignObject"),s=e.element("div"),o=e.element("p"),a=e.space(),e.attr(o,"class",n=`PartitionTextEntity${i[6].contentdirection==="clockwise"?"":" Anticlockwise"}`),e.attr(s,"class","PartitionTextEntityContainer"),e.set_svg_attributes(t,l)},m(f,d){e.insert(f,t,d),e.append(t,s),e.append(s,o),o.innerHTML=r,e.append(s,a)},p(f,d){d[0]&8&&r!==(r=f[49].name+"")&&(o.innerHTML=r),d[0]&64&&n!==(n=`PartitionTextEntity${f[6].contentdirection==="clockwise"?"":" Anticlockwise"}`)&&e.attr(o,"class",n),e.set_svg_attributes(t,l=e.get_spread_update(c,[{class:"PartitionText"},d[0]&64&&f[6].getSvgTextPropsAdjustedByImage(f[46])]))},d(f){f&&e.detach(t)}}}function Je(i){let t,s,o=i[49].image&&He(i),r=i[49].name&&Re(i);return{c(){o&&o.c(),t=e.empty(),r&&r.c(),s=e.empty()},m(n,a){o&&o.m(n,a),e.insert(n,t,a),r&&r.m(n,a),e.insert(n,s,a)},p(n,a){n[49].image?o||(o=He(n),o.c(),o.m(t.parentNode,t)):o&&(o.d(1),o=null),n[49].name?r?r.p(n,a):(r=Re(n),r.c(),r.m(s.parentNode,s)):r&&(r.d(1),r=null)},d(n){n&&(e.detach(t),e.detach(s)),o&&o.d(n),r&&r.d(n)}}}function Ge(i){let t,s,o,r=[i[13]],n={};for(let l=0;l<r.length;l+=1)n=e.assign(n,r[l]);let a=[{class:"Partition1 Customable"},{style:o=`--index: ${i[46]}`},i[4]],c={};for(let l=0;l<a.length;l+=1)c=e.assign(c,a[l]);return{c(){t=e.svg_element("foreignObject"),s=e.element("div"),e.set_attributes(s,n),e.set_svg_attributes(t,c)},m(l,f){e.insert(l,t,f),e.append(t,s)},p(l,f){e.set_attributes(s,n=e.get_spread_update(r,[f[0]&8192&&l[13]])),e.set_svg_attributes(t,c=e.get_spread_update(a,[{class:"Partition1 Customable"},{style:o},f[0]&16&&l[4]]))},d(l){l&&e.detach(t)}}}function je(i){let t,s,o,r=[i[13]],n={};for(let l=0;l<r.length;l+=1)n=e.assign(n,r[l]);let a=[{class:"Partition2 Customable"},{style:o=`--index: ${i[46]}`},i[4]],c={};for(let l=0;l<a.length;l+=1)c=e.assign(c,a[l]);return{c(){t=e.svg_element("foreignObject"),s=e.element("div"),e.set_attributes(s,n),e.set_svg_attributes(t,c)},m(l,f){e.insert(l,t,f),e.append(t,s)},p(l,f){e.set_attributes(s,n=e.get_spread_update(r,[f[0]&8192&&l[13]])),e.set_svg_attributes(t,c=e.get_spread_update(a,[{class:"Partition2 Customable"},{style:o},f[0]&16&&l[4]]))},d(l){l&&e.detach(t)}}}function Ze(i){let t,s,o,r,n=[i[13]],a={};for(let A=0;A<n.length;A+=1)a=e.assign(a,n[A]);let c=[{class:"PointerArea Customable"},i[4]],l={};for(let A=0;A<c.length;A+=1)l=e.assign(l,c[A]);let f=[{class:"PointerPartitionFrame"},i[6].getPartitionDraw(0)],d={};for(let A=0;A<f.length;A+=1)d=e.assign(d,f[A]);let h=[{class:"PointerContainer"},i[6].getSpinnerProps()],p={};for(let A=0;A<h.length;A+=1)p=e.assign(p,h[A]);return{c(){t=e.svg_element("g"),s=e.svg_element("foreignObject"),o=e.element("div"),r=e.svg_element("path"),e.set_attributes(o,a),e.set_svg_attributes(s,l),e.set_svg_attributes(r,d),e.toggle_class(r,"active",i[11]),e.set_svg_attributes(t,p)},m(A,u){e.insert(A,t,u),e.append(t,s),e.append(s,o),e.append(t,r)},p(A,u){e.set_attributes(o,a=e.get_spread_update(n,[u[0]&8192&&A[13]])),e.set_svg_attributes(s,l=e.get_spread_update(c,[{class:"PointerArea Customable"},u[0]&16&&A[4]])),e.set_svg_attributes(r,d=e.get_spread_update(f,[{class:"PointerPartitionFrame"},u[0]&64&&A[6].getPartitionDraw(0)])),e.toggle_class(r,"active",A[11]),e.set_svg_attributes(t,p=e.get_spread_update(h,[{class:"PointerContainer"},u[0]&64&&A[6].getSpinnerProps()]))},d(A){A&&e.detach(t)}}}function Ye(i){let t,s,o=[i[6].getPartitionDraw(i[46])],r={};for(let c=0;c<o.length;c+=1)r=e.assign(r,o[c]);let n=[{id:`clip${i[46]}`}],a={};for(let c=0;c<n.length;c+=1)a=e.assign(a,n[c]);return{c(){t=e.svg_element("clipPath"),s=e.svg_element("path"),e.set_svg_attributes(s,r),e.set_svg_attributes(t,a)},m(c,l){e.insert(c,t,l),e.append(t,s)},p(c,l){e.set_svg_attributes(s,r=e.get_spread_update(o,[l[0]&64&&c[6].getPartitionDraw(c[46])]))},d(c){c&&e.detach(t)}}}function i3(i){let t,s=Number(i[0])&&i[3].length,o,r,n=s&&Oe(i);return{c(){t=e.element("div"),n&&n.c(),e.attr(t,"class",o=`WheelContainer theme${Number(i[7])+1}`),e.attr(t,"style",r=`${Fe()} --length: ${i[3].length}; --radius: ${i[1]}; --ratio: ${Number(i[0])/480}; --size: ${i[0]}`)},m(a,c){e.insert(a,t,c),n&&n.m(t,null),i[30](t)},p(a,c){c[0]&9&&(s=Number(a[0])&&a[3].length),s?n?n.p(a,c):(n=Oe(a),n.c(),n.m(t,null)):n&&(n.d(1),n=null),c[0]&128&&o!==(o=`WheelContainer theme${Number(a[7])+1}`)&&e.attr(t,"class",o),c[0]&11&&r!==(r=`${Fe()} --length: ${a[3].length}; --radius: ${a[1]}; --ratio: ${Number(a[0])/480}; --size: ${a[0]}`)&&e.attr(t,"style",r)},i:e.noop,o:e.noop,d(a){a&&e.detach(t),n&&n.d(),i[30](null)}}}function s3(i,t,s){let o,r,n,a,c,l,f,{lang:d=p0.en}=t,{endpoint:h=""}=t,{session:p=""}=t,{clientstyling:A=""}=t,{contentdirection:u="anticlockwise"}=t,{partitiondivisor:m=""}=t,v,{id:y=void 0}=t,{size:C=""}=t,{radius:S=""}=t,B=!1;const L=b=>{b(-1),setTimeout(()=>{b(1),s(8,B=!0)},100)};let F;const O=()=>Z(this,null,function*(){s(3,z=yield q2(F,d)),$({type:"wof-private-options-ready",id:y}),L(g=>s(0,C=String(Number(C)+g)))});let z=[],x,Q,N=new vt({tick:(b,g)=>{I0(Q,{style:[`transform: rotate(${b}deg)`,`height: ${C}px`,`width: ${C}px`].join(";")}),s(26,j=g*.5)}}),D=!0,P=!1,T=!1,V=!1,M=!1,j=0;const H=()=>{s(6,n.options=z,n)},q=()=>{s(6,n.contentdirection=u||"anticlockwise",n),R()},R=()=>{if(v)for(let b=0;b<=z.length;b++){const g=v.querySelector(`.PartitionImage.PartitionImage${b} image`);g&&I0(g,n.getSvgImageProps(b,m))}},Y=()=>{e0(),q(),s(25,M=!0)},e0=()=>{!!F.current&&F.current.remainingTimes>0?D=!0:(D=!1,F.next?a.setMessage({mode:"show-next",modeValue:F.next}):a.setMessage({mode:"NoNext"}))},_=()=>Z(this,null,function*(){if(e0(),!D||P)return;s(10,P=!0),s(11,T=!1),Q=x.querySelector($2(r.pointerMode)),N.launch();const b=r0();a.drawer(b)}),r0=()=>typeof crypto!="undefined"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():n0(),n0=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(b){var g=Math.random()*16|0,I=b=="x"?g:g&3|8;return I.toString(16)});w0({"wof-private-bonuses":b=>{s(24,F=b.bonuses.find(g=>g.program.id===y))},"wof-private-bonus":b=>{b.bonus.program.id===y&&s(24,F=b.bonus)},"wof-private-message-close":b=>{b.id===y&&(s(10,P=!1),setTimeout(()=>e0(),1),I0(Q,{style:[`transform: rotate(${N.deg}deg)`,`height: ${C}px`,`width: ${C}px`].join(";")}),s(12,V=!1))},"wof-private-message-retry":b=>{b.id===y&&(s(12,V=!1),a.drawer())}});const o0=(b,g)=>{const I=z[g].image;I0(I,n.getSvgImageProps(g)),b.innerHTML=null,b.appendChild(I)},k=()=>R0()||_();function W(b){e.binding_callbacks[b?"unshift":"push"](()=>{x=b,s(9,x)})}const t0=()=>R0()&&_();function s0(b){e.binding_callbacks[b?"unshift":"push"](()=>{v=b,s(2,v)})}return i.$$set=b=>{"lang"in b&&s(17,d=b.lang),"endpoint"in b&&s(18,h=b.endpoint),"session"in b&&s(19,p=b.session),"clientstyling"in b&&s(20,A=b.clientstyling),"contentdirection"in b&&s(21,u=b.contentdirection),"partitiondivisor"in b&&s(22,m=b.partitiondivisor),"id"in b&&s(23,y=b.id),"size"in b&&s(0,C=b.size),"radius"in b&&s(1,S=b.radius)},i.$$.update=()=>{var b,g;i.$$.dirty[0]&1048580&&A&&v&&h0(v,A),i.$$.dirty[0]&16908288&&F&&d&&O(),i.$$.dirty[0]&16777216&&s(7,o=((g=(b=F==null?void 0:F.program)==null?void 0:b.metadata)==null?void 0:g.template)||0),i.$$.dirty[0]&128&&s(5,r=G0[o]||G0[0]),i.$$.dirty[0]&2097291&&s(6,n=new Mt({size:C,radius:S,options:z,themeIndex:o,contentdirection:u})),i.$$.dirty[0]&8&&z&&H(),i.$$.dirty[0]&2097152&&(u||!u)&&q(),i.$$.dirty[0]&50331648&&F&&!M&&Y(),i.$$.dirty[0]&25952328&&(a=new It({id:y,afterSetMessage:()=>s(12,V=!0),halter:(I,w)=>{const J=I>=0?I:z.length-1;N.halt(n.getDeg(J),w)},afterSuccess:()=>s(11,T=!0),fetcher:I=>Z(this,null,function*(){return yield E0.draw(h,p,y,I,z,F)})})),i.$$.dirty[0]&67108896&&s(14,c=r.pointerMode===K.Arrow&&j>.3?`blur(${j}px)`:null),i.$$.dirty[0]&1&&s(4,l={height:C,width:C}),i.$$.dirty[0]&16&&s(13,f={style:Object.keys(l).map(I=>`${I}: ${l[I]}px`).join(";")})},[C,S,v,z,l,r,n,o,B,x,P,T,V,f,c,_,o0,d,h,p,A,u,m,y,F,M,j,k,W,t0,s0]}class o3 extends e.SvelteComponent{constructor(t){super(),e.init(this,t,s3,i3,e.safe_not_equal,{lang:17,endpoint:18,session:19,clientstyling:20,contentdirection:21,partitiondivisor:22,id:23,size:0,radius:1},t3,[-1,-1])}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get endpoint(){return this.$$.ctx[18]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[19]}set session(t){this.$$set({session:t}),e.flush()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get contentdirection(){return this.$$.ctx[21]}set contentdirection(t){this.$$set({contentdirection:t}),e.flush()}get partitiondivisor(){return this.$$.ctx[22]}set partitiondivisor(t){this.$$set({partitiondivisor:t}),e.flush()}get id(){return this.$$.ctx[23]}set id(t){this.$$set({id:t}),e.flush()}get size(){return this.$$.ctx[0]}set size(t){this.$$set({size:t}),e.flush()}get radius(){return this.$$.ctx[1]}set radius(t){this.$$set({radius:t}),e.flush()}}customElements.define("lottery-program-wof-private-item-svg",e.create_custom_element(o3,{lang:{},endpoint:{},session:{},clientstyling:{},contentdirection:{},partitiondivisor:{},id:{},size:{},radius:{}},[],[],!0));function r3(i){e.append_styles(i,"svelte-5mi6dy","lottery-program-wof-private-message-panel{position:absolute;top:0}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.LotteryItem{width:100%;display:flex;align-items:center;flex-direction:column;margin:20px 0}.LotteryItem.Invalid{display:none}.Current{color:#FFFFFF}")}function Ue(i,t,s){const o=i.slice();return o[22]=t[s],o}function Ne(i){let t,s=e.ensure_array_like(i[6]),o=[];for(let r=0;r<s.length;r+=1)o[r]=We(Ue(i,s,r));return{c(){t=e.element("div");for(let r=0;r<o.length;r+=1)o[r].c();e.attr(t,"class","Current")},m(r,n){e.insert(r,t,n);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,n){if(n&2113){s=e.ensure_array_like(r[6]);let a;for(a=0;a<s.length;a+=1){const c=Ue(r,s,a);o[a]?o[a].p(c,n):(o[a]=We(c),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=s.length}},d(r){r&&e.detach(t),e.destroy_each(o,r)}}}function We(i){let t,s=i[11](`wof.${i[22]}`)+"",o,r,n=me(i[0],i[22])+"",a,c,l;return{c(){t=e.element("p"),o=e.text(s),r=e.text(": "),a=e.text(n),c=e.space(),e.attr(t,"class",l=i[22])},m(f,d){e.insert(f,t,d),e.append(t,o),e.append(t,r),e.append(t,a),e.append(t,c)},p(f,d){d&2112&&s!==(s=f[11](`wof.${f[22]}`)+"")&&e.set_data(o,s),d&65&&n!==(n=me(f[0],f[22])+"")&&e.set_data(a,n),d&64&&l!==(l=f[22])&&e.attr(t,"class",l)},d(f){f&&e.detach(t)}}}function n3(i){var h,p,A;let t,s,o,r,n,a=[X(G({},i[10]),{id:i[3],size:i[5],radius:i[9],contentdirection:i[2]})],c={};for(let u=0;u<a.length;u+=1)c=e.assign(c,a[u]);let l=[X(G({},i[10]),{id:i[3],size:i[5],r:i[9],giftimagesrc:i[1],name:(p=(h=i[0])==null?void 0:h.program)==null?void 0:p.name["*"]})],f={};for(let u=0;u<l.length;u+=1)f=e.assign(f,l[u]);let d=((A=i[0])==null?void 0:A.current)&&i[7]&&Ne(i);return{c(){t=e.element("div"),s=e.element("lottery-program-wof-private-item-svg"),o=e.space(),r=e.element("lottery-program-wof-private-message-panel"),n=e.space(),d&&d.c(),e.set_attributes(s,c),e.set_attributes(r,f),e.attr(t,"class","LotteryItem"),e.toggle_class(t,"Invalid",m0(i[0])&&i[8])},m(u,m){e.insert(u,t,m),e.append(t,s),e.append(t,o),e.append(t,r),e.append(t,n),d&&d.m(t,null),i[18](t)},p(u,[m]){var v,y,C;e.set_attributes(s,c=e.get_spread_update(a,[m&1580&&X(G({},u[10]),{id:u[3],size:u[5],radius:u[9],contentdirection:u[2]})])),e.set_attributes(r,f=e.get_spread_update(l,[m&1579&&X(G({},u[10]),{id:u[3],size:u[5],r:u[9],giftimagesrc:u[1],name:(y=(v=u[0])==null?void 0:v.program)==null?void 0:y.name["*"]})])),(C=u[0])!=null&&C.current&&u[7]?d?d.p(u,m):(d=Ne(u),d.c(),d.m(t,null)):d&&(d.d(1),d=null),m&257&&e.toggle_class(t,"Invalid",m0(u[0])&&u[8])},i:e.noop,o:e.noop,d(u){u&&e.detach(t),d&&d.d(),i[18](null)}}}function a3(i,t,s){let o,r,n,a;e.component_subscribe(i,e.$format,x=>s(11,a=x));let{lang:c=p0.en}=t,{endpoint:l=""}=t,{session:f=""}=t,{clientstyling:d=""}=t,{currentinfo:h=g0.RemainingTimes}=t,{giftimagesrc:p=""}=t,{contentdirection:A="anticlockwise"}=t,{size:u="480"}=t,{id:m=""}=t,{bonus:v}=t,y,C,S=[],B,L=!1,F=!0;const O=()=>Z(this,null,function*(){const x=yield E0.lotteries(l,f);return S=x.map(Q=>{if(!m0(Q))return Q}),x.filter(Q=>Q.program.id===m)[0]});w0({"wof-private-options-ready":x=>{x.id===m&&s(7,L=!0)},"wof-private-bonuses":x=>{const Q=x.bonuses.find(N=>N.program.id===m);Q&&s(0,v=Q)},"wof-private-message-spin-after":x=>{x.id===m&&C&&(s(0,v=C),$({type:"wof-private-bonus",bonus:C,id:m}),S&&$({type:"wof-private-bonuses",bonuses:S}))},"wof-private-message-spin-before":x=>Z(this,null,function*(){x.id===m&&(s(8,F=!1),C=yield O())}),"wof-private-message-close":x=>{x.id===m&&($({type:"wof-private-checking",bonus:v,id:m}),setTimeout(()=>{s(8,F=!0)},1e3))}});function z(x){e.binding_callbacks[x?"unshift":"push"](()=>{y=x,s(4,y)})}return i.$$set=x=>{"lang"in x&&s(12,c=x.lang),"endpoint"in x&&s(13,l=x.endpoint),"session"in x&&s(14,f=x.session),"clientstyling"in x&&s(15,d=x.clientstyling),"currentinfo"in x&&s(16,h=x.currentinfo),"giftimagesrc"in x&&s(1,p=x.giftimagesrc),"contentdirection"in x&&s(2,A=x.contentdirection),"size"in x&&s(17,u=x.size),"id"in x&&s(3,m=x.id),"bonus"in x&&s(0,v=x.bonus)},i.$$.update=()=>{i.$$.dirty&32784&&d&&y&&h0(y,d),i.$$.dirty&61440&&s(10,o={endpoint:l,lang:c,session:f,clientstyling:d}),i.$$.dirty&131072&&s(5,r=Number(u)||480),i.$$.dirty&32&&s(9,n=.62*r/2),i.$$.dirty&65536&&s(6,B=h?h.split(","):[g0.RemainingTimes])},[v,p,A,m,y,r,B,L,F,n,o,a,c,l,f,d,h,u,z]}class l3 extends e.SvelteComponent{constructor(t){super(),e.init(this,t,a3,n3,e.safe_not_equal,{lang:12,endpoint:13,session:14,clientstyling:15,currentinfo:16,giftimagesrc:1,contentdirection:2,size:17,id:3,bonus:0},r3)}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),e.flush()}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[14]}set session(t){this.$$set({session:t}),e.flush()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get currentinfo(){return this.$$.ctx[16]}set currentinfo(t){this.$$set({currentinfo:t}),e.flush()}get giftimagesrc(){return this.$$.ctx[1]}set giftimagesrc(t){this.$$set({giftimagesrc:t}),e.flush()}get contentdirection(){return this.$$.ctx[2]}set contentdirection(t){this.$$set({contentdirection:t}),e.flush()}get size(){return this.$$.ctx[17]}set size(t){this.$$set({size:t}),e.flush()}get id(){return this.$$.ctx[3]}set id(t){this.$$set({id:t}),e.flush()}get bonus(){return this.$$.ctx[0]}set bonus(t){this.$$set({bonus:t}),e.flush()}}customElements.define("lottery-program-wof-private-item",e.create_custom_element(l3,{lang:{},endpoint:{},session:{},clientstyling:{},currentinfo:{},giftimagesrc:{},contentdirection:{},size:{},id:{},bonus:{}},[],[],!0));const c3="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.5384%203.18261L14.3222%200.9673C13.3202%20-0.0332963%2011.7009%20-0.26734%209.75715%200.310586C7.83938%200.880634%205.79092%202.18711%203.98901%203.98902C2.18711%205.79092%200.88063%207.83939%200.310582%209.75716C-0.26688%2011.7%20-0.0337635%2013.3211%200.965442%2014.3194C0.980736%2014.3361%200.99742%2014.3491%201.01967%2014.362L3.1826%2016.5384C3.83422%2017.1891%204.73749%2017.4996%205.78675%2017.4996C8.0382%2017.4996%2010.9621%2016.0703%2013.5167%2013.5167C17.2605%209.77199%2018.5878%205.23292%2016.5384%203.18261ZM13.2979%205.31681C12.764%206.90692%2011.6378%208.61521%2010.127%2010.1261C8.6152%2011.6369%206.90738%2012.764%205.31681%2013.2979C3.8991%2013.7744%202.71173%2013.7188%202.14169%2013.1469C1.57118%2012.5768%201.5151%2011.3904%201.99153%209.9722C2.52589%208.38209%203.65254%206.67426%205.1634%205.16341C6.67426%203.65209%208.38255%202.52589%209.97312%201.99153C10.6118%201.77649%2011.2031%201.67036%2011.7129%201.67036C12.3349%201.67036%2012.8345%201.8284%2013.1478%202.14169C13.7178%202.7122%2013.7744%203.89911%2013.2979%205.31681ZM12.3423%2012.3414C9.09859%2015.5846%205.53231%2016.5375%204.35699%2015.3622L4.23696%2015.2426C6.4481%2014.9914%209.06753%2013.5343%2011.3014%2011.3014C13.5343%209.06754%2014.9914%206.4481%2015.2426%204.23696L15.3622%204.357C16.5365%205.53093%2015.5846%209.09859%2012.3423%2012.3414Z'%20fill='url(%23paint0_linear_875_137)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_875_137'%20x1='0'%20y1='8.7498'%20x2='17.5'%20y2='8.7498'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function d3(i){e.append_styles(i,"svelte-19z60n4",`.mobile.drawer{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile .tooltip-backdrop{padding:60px 20px 0;border-top-left-radius:28px;border-top-right-radius:28px}.mobile .tooltip-backdrop .tooltip{padding:20px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .IconButton{width:24px;height:24px}.mobile .Header__title{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500);line-height:14px}.mobile .LuckyWheelList{gap:16px}.mobile .LuckyWheelList .LuckyWheelListKeys{gap:5px;font-size:var(--emw--font-size-medium, 16px)}.mobile .ItemButton{font-weight:var(--emw--font-weight-normal, 400);padding:20px;font-size:var(--emw--font-size-x-small, 12px);line-height:15px;border-radius:16px;height:56px}.mobile .LuckyWheelRules{gap:24px}.mobile .LuckyWheelRules .LuckyWheelRulesDesc{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .LuckyWheelRules .LuckyWheelRulesTerms{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px)}.mobile .LuckyWheelRules .LuckyWheelRulesPrizeTitle{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .LuckyWheelRules .LuckyWheelRulesList{padding-inline-start:15px;margin:5px 0 0}.mobile .LuckyWheelRules .LuckyWheelRulesList .LuckyWheelRulesListItem{margin-bottom:5px;font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .LuckyWheelEmpty{margin-top:50px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .LuckyWheelHistory .LuckyWheelHistoryTitle{font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .LuckyWheelHistory .LuckyWheelHistoryList{margin-bottom:32px}.mobile .LuckyWheelHistory .LuckyWheelHistoryList__item{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .LuckyWheelHistory .LuckyWheelHistoryList__item .name img{width:14px;height:14px}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Loader{display:flex;justify-self:center;width:100%}.NoContent{color:rgb(255, 255, 255);min-height:300px;display:flex;justify-content:center;align-items:center;font-size:16px}.CommonContainer{display:flex;flex-wrap:wrap;flex-direction:column;align-items:center;height:100%}.LuckyWheelList{max-height:85%;overflow:auto;gap:24px;display:flex;flex-wrap:wrap}.LuckyWheelListItem{width:100%}.ItemButton{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-large, 22px);line-height:25px;padding:35px 48px;border-radius:28px;height:110px;color:var(--emw--color-primary, #d3ffed);width:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);cursor:pointer}.IconButton{width:30px;height:30px;border:0px;cursor:pointer}.IconButton.back{background:center/100% url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M10.3579 5.26604C10.0032 4.91132 9.42806 4.91132 9.07334 5.26604L5.26604 9.07334C4.91132 9.42806 4.91132 10.0032 5.26604 10.3579L9.07334 14.1652C9.42806 14.5199 10.0032 14.5199 10.3579 14.1652C10.7126 13.8105 10.7126 13.2354 10.3579 12.8806L8.10118 10.6239H10.7817C12.0761 10.6239 12.9922 10.6246 13.7085 10.6832C14.4142 10.7408 14.8455 10.85 15.1847 11.0229C15.8735 11.3738 16.4335 11.9338 16.7844 12.6226C16.9573 12.9618 17.0665 13.3931 17.1241 14.0989C17.1827 14.8151 17.1834 15.7312 17.1834 17.0256V18.0917C17.1834 18.5933 17.59 19 18.0917 19C18.5933 19 19 18.5933 19 18.0917V16.9854C19 15.74 19 14.7498 18.9347 13.9509C18.8679 13.1329 18.7281 12.4359 18.403 11.7978C17.8779 10.7673 17.04 9.92938 16.0095 9.40427C15.3714 9.07918 14.6744 8.9394 13.8564 8.87257C13.0575 8.80729 12.0673 8.8073 10.8219 8.8073H8.10118L10.3579 6.55059C10.7126 6.19587 10.7126 5.62076 10.3579 5.26604Z" fill="%23729787"/></svg>') no-repeat}.IconButton.close{background:center/100% url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat}.IconButton.help{background:center/100% url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.708 4.583a7.125 7.125 0 1 0 0 14.25 7.125 7.125 0 0 0 0-14.25ZM3 11.708a8.708 8.708 0 1 1 17.417 0 8.708 8.708 0 0 1-17.417 0Zm8.913-3.147a1.583 1.583 0 0 0-1.762 1.035.792.792 0 0 1-1.493-.525 3.167 3.167 0 0 1 6.154 1.055c0 1.211-.899 2.011-1.54 2.439a6.37 6.37 0 0 1-1.335.672l-.028.01-.008.002-.003.001h-.002l-.251-.75.25.751a.792.792 0 0 1-.5-1.502l.011-.004.06-.022a4.778 4.778 0 0 0 .928-.476c.545-.363.834-.75.834-1.122v-.001a1.583 1.583 0 0 0-1.315-1.563Zm-.996 7.106c0-.438.354-.792.791-.792h.008a.792.792 0 1 1 0 1.583h-.008a.792.792 0 0 1-.791-.791Z" fill="%23729787"/></svg>') no-repeat}.Header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.HeaderTitle{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:var(--emw--font-weight-bold, 700);line-height:25px}.drawer{position:fixed;left:50%;transform:translateX(-50%);background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%);box-sizing:border-box;z-index:100;bottom:0;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px}.TabItem{height:100%;overflow-y:auto}.overlay{border:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5019607843));z-index:0;bottom:0;opacity:1;transition:opacity 0.5s ease-in-out}.tooltip-backdrop{box-sizing:border-box;z-index:200;position:absolute;width:100%;height:100%;inset:0;background-color:rgba(0, 0, 0, 0.5);padding:90px 30px 0;border-top-left-radius:72px;border-top-right-radius:72px}.tooltip-backdrop .tooltip{border:1px solid var(--emw--button-border-color, #75ffe9);background:var(--emw--color-background, #213841);border-radius:var(--emw--border-radius-large, 8px);line-height:24px;color:var(--emw--color-secondary, #bbb9c3);position:relative;padding:32px;font-size:var(--emw--font-size-medium, 16px)}.tooltip-backdrop .tooltip .IconButton{top:12px;right:12px;position:absolute}.LuckyWheelRules{display:flex;flex-flow:column;gap:40px;color:var(--emw--color-primary-variant, #a9ccbe)}.LuckyWheelRules__description{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:32px}.LuckyWheelRules__terms{display:flex;gap:5px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);border:none;padding:0;cursor:pointer;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.LuckyWheelRules__terms .arrow-icon{width:14px;height:14px;background:center/100% url('data:image/svg+xml,<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.41 7.744a.833.833 0 0 0 0 1.179l5 5a.833.833 0 0 0 1.18 0l5-5a.833.833 0 1 0-1.18-1.179L10 12.154l-4.41-4.41a.833.833 0 0 0-1.18 0Z" fill="url(%23a)"/><defs><linearGradient id="a" x1="10" y1="7.5" x2="10" y2="14.167" gradientUnits="userSpaceOnUse"><stop stop-color="%2375FFE9"/><stop offset="1" stop-color="%23B2FF6D"/></linearGradient></defs></svg>') no-repeat}.LuckyWheelRules__prize-title{color:#ffffff;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.LuckyWheelRules__list{padding-inline-start:25px;margin:15px 0 0}.LuckyWheelRules__list__item{font-weight:var(--emw--font-weight-normal, 400);margin-bottom:12px;font-size:var(--emw--font-size-medium, 16px);line-height:32px;list-style:initial}`)}function Xe(i,t,s){const o=i.slice();return o[40]=t[s],o}function Ke(i){let t,s,o,r,n,a=i[11]&&Ve(i);function c(d,h){return d[10]?g3:f3}let l=c(i),f=l(i);return{c(){t=e.element("div"),s=e.element("button"),o=e.space(),r=e.element("div"),a&&a.c(),n=e.space(),f.c(),e.attr(s,"class","overlay"),e.attr(r,"class","drawer "+(i[16]?"mobile":"")),e.attr(t,"class","WofContainer")},m(d,h){e.insert(d,t,h),e.append(t,s),e.append(t,o),e.append(t,r),a&&a.m(r,null),e.append(r,n),f.m(r,null),i[32](t)},p(d,h){d[11]?a?a.p(d,h):(a=Ve(d),a.c(),a.m(r,n)):a&&(a.d(1),a=null),l===(l=c(d))&&f?f.p(d,h):(f.d(1),f=l(d),f&&(f.c(),f.m(r,null)))},d(d){d&&e.detach(t),a&&a.d(),f.d(),i[32](null)}}}function Ve(i){let t,s,o,r,n,a=i[15]("wof.InfoTooltip")+"",c,l,f;return{c(){t=e.element("div"),s=e.element("div"),o=e.element("button"),r=e.space(),n=e.element("span"),c=e.text(a),e.attr(o,"class","IconButton close"),e.attr(s,"class","tooltip"),e.attr(t,"class","tooltip-backdrop")},m(d,h){e.insert(d,t,h),e.append(t,s),e.append(s,o),e.append(s,r),e.append(s,n),e.append(n,c),l||(f=e.listen(o,"click",i[20]),l=!0)},p(d,h){h[0]&32768&&a!==(a=d[15]("wof.InfoTooltip")+"")&&e.set_data(c,a)},d(d){d&&e.detach(t),l=!1,f()}}}function f3(i){var N0;let t,s,o,r,n=i[15]("LuckyWheels")+"",a,c,l,f,d,h,p,A,u,m,v,y,C,S,B=i[15]("wof.RulesDescription")+"",L,F,O,z,x,Q=i[15]("wof.PrizeAgenda")+"",N,D,P,T,V=i[15]("wof.TournamentTicket")+"",M,j,H,q=i[15]("wof.FreeSpins")+"",R,Y,e0,_=i[15]("wof.BonusMoney")+"",r0,n0,o0,k=i[15]("wof.LoyaltyPoints")+"",W,t0,s0,b=i[15]("wof.LuckyWheel")+"",g,I,w,J=i[15]("wof.MysteryChest")+"",P0,j0,C0,y0=i[15]("wof.CoinRoyale")+"",Q0,Z0,b0,v0=i[15]("wof.CustomRewards")+"",L0,D0,Y0;function U0(E,U){return E[9]?u3:E[8].length?A3:p3}let k0=U0(i),a0=k0(i),O0=[X(G({},i[14]),{id:(N0=i[8].find(i[31]))==null?void 0:N0.program.id,bonuses:i[8]})],B0={};for(let E=0;E<O0.length;E+=1)B0=e.assign(B0,O0[E]);let i0=i[13]&&_e(i),z0=[i[14],{isshowhistory:i[3]}],x0={};for(let E=0;E<z0.length;E+=1)x0=e.assign(x0,z0[E]);return{c(){t=e.element("div"),s=e.element("button"),s.innerHTML="",o=e.space(),r=e.element("div"),a=e.text(n),c=e.space(),l=e.element("button"),f=e.space(),d=e.element("lottery-program-wof-private-tabs"),h=e.element("div"),p=e.element("div"),a0.c(),A=e.space(),u=e.element("div"),m=e.element("lottery-program-wof-private-outcomes"),v=e.space(),y=e.element("div"),C=e.element("div"),S=e.element("span"),L=e.text(B),F=e.space(),i0&&i0.c(),O=e.space(),z=e.element("section"),x=e.element("span"),N=e.text(Q),D=e.space(),P=e.element("ul"),T=e.element("li"),M=e.text(V),j=e.space(),H=e.element("li"),R=e.text(q),Y=e.space(),e0=e.element("li"),r0=e.text(_),n0=e.space(),o0=e.element("li"),W=e.text(k),t0=e.space(),s0=e.element("li"),g=e.text(b),I=e.space(),w=e.element("li"),P0=e.text(J),j0=e.space(),C0=e.element("li"),Q0=e.text(y0),Z0=e.space(),b0=e.element("li"),L0=e.text(v0),e.attr(s,"class","IconButton help"),e.attr(r,"class","HeaderTitle"),e.attr(l,"class","IconButton close"),e.attr(t,"class","Header"),e.attr(p,"class","CommonContainer"),e.attr(h,"class","TabItem"),e.attr(h,"slot","tab-Play"),e.set_attributes(m,B0),e.attr(u,"class","TabItem"),e.attr(u,"slot","tab-History"),e.attr(S,"class","LuckyWheelRules__description"),e.attr(x,"class","LuckyWheelRules__prize-title"),e.attr(T,"class","LuckyWheelRules__list__item"),e.attr(H,"class","LuckyWheelRules__list__item"),e.attr(e0,"class","LuckyWheelRules__list__item"),e.attr(o0,"class","LuckyWheelRules__list__item"),e.attr(s0,"class","LuckyWheelRules__list__item"),e.attr(w,"class","LuckyWheelRules__list__item"),e.attr(C0,"class","LuckyWheelRules__list__item"),e.attr(b0,"class","LuckyWheelRules__list__item"),e.attr(P,"class","LuckyWheelRules__list"),e.attr(C,"class","LuckyWheelRules"),e.attr(y,"class","TabItem"),e.attr(y,"slot","tab-Rules"),e.set_attributes(d,x0)},m(E,U){e.insert(E,t,U),e.append(t,s),e.append(t,o),e.append(t,r),e.append(r,a),e.append(t,c),e.append(t,l),e.insert(E,f,U),e.insert(E,d,U),e.append(d,h),e.append(h,p),a0.m(p,null),e.append(d,A),e.append(d,u),e.append(u,m),e.append(d,v),e.append(d,y),e.append(y,C),e.append(C,S),e.append(S,L),e.append(C,F),i0&&i0.m(C,null),e.append(C,O),e.append(C,z),e.append(z,x),e.append(x,N),e.append(z,D),e.append(z,P),e.append(P,T),e.append(T,M),e.append(P,j),e.append(P,H),e.append(H,R),e.append(P,Y),e.append(P,e0),e.append(e0,r0),e.append(P,n0),e.append(P,o0),e.append(o0,W),e.append(P,t0),e.append(P,s0),e.append(s0,g),e.append(P,I),e.append(P,w),e.append(w,P0),e.append(P,j0),e.append(P,C0),e.append(C0,Q0),e.append(P,Z0),e.append(P,b0),e.append(b0,L0),D0||(Y0=[e.listen(s,"click",i[20]),e.listen(l,"click",i[19])],D0=!0)},p(E,U){var W0;U[0]&32768&&n!==(n=E[15]("LuckyWheels")+"")&&e.set_data(a,n),k0===(k0=U0(E))&&a0?a0.p(E,U):(a0.d(1),a0=k0(E),a0&&(a0.c(),a0.m(p,null))),e.set_attributes(m,B0=e.get_spread_update(O0,[U[0]&16641&&X(G({},E[14]),{id:(W0=E[8].find(E[31]))==null?void 0:W0.program.id,bonuses:E[8]})])),U[0]&32768&&B!==(B=E[15]("wof.RulesDescription")+"")&&e.set_data(L,B),E[13]?i0?i0.p(E,U):(i0=_e(E),i0.c(),i0.m(C,O)):i0&&(i0.d(1),i0=null),U[0]&32768&&Q!==(Q=E[15]("wof.PrizeAgenda")+"")&&e.set_data(N,Q),U[0]&32768&&V!==(V=E[15]("wof.TournamentTicket")+"")&&e.set_data(M,V),U[0]&32768&&q!==(q=E[15]("wof.FreeSpins")+"")&&e.set_data(R,q),U[0]&32768&&_!==(_=E[15]("wof.BonusMoney")+"")&&e.set_data(r0,_),U[0]&32768&&k!==(k=E[15]("wof.LoyaltyPoints")+"")&&e.set_data(W,k),U[0]&32768&&b!==(b=E[15]("wof.LuckyWheel")+"")&&e.set_data(g,b),U[0]&32768&&J!==(J=E[15]("wof.MysteryChest")+"")&&e.set_data(P0,J),U[0]&32768&&y0!==(y0=E[15]("wof.CoinRoyale")+"")&&e.set_data(Q0,y0),U[0]&32768&&v0!==(v0=E[15]("wof.CustomRewards")+"")&&e.set_data(L0,v0),e.set_attributes(d,x0=e.get_spread_update(z0,[U[0]&16384&&E[14],U[0]&8&&{isshowhistory:E[3]}]))},d(E){E&&(e.detach(t),e.detach(f),e.detach(d)),a0.d(),i0&&i0.d(),D0=!1,e.run_all(Y0)}}}function g3(i){let t,s,o,r,n=(i[10].program.name["*"]||i[10].program.name[p0.en])+"",a,c,l,f,d,h,p,A=[X(G({},i[14]),{id:i[10].program.id,currentinfo:i[1],giftimagesrc:i[2],contentdirection:i[4],bonus:i[10]})],u={};for(let m=0;m<A.length;m+=1)u=e.assign(u,A[m]);return{c(){t=e.element("div"),s=e.element("button"),s.innerHTML="",o=e.space(),r=e.element("div"),a=e.text(n),c=e.space(),l=e.element("button"),f=e.space(),d=e.element("lottery-program-wof-private-item"),e.attr(s,"class","IconButton back"),e.attr(r,"class","HeaderTitle"),e.attr(l,"class","IconButton close"),e.attr(t,"class","Header"),e.set_attributes(d,u)},m(m,v){e.insert(m,t,v),e.append(t,s),e.append(t,o),e.append(t,r),e.append(r,a),e.append(t,c),e.append(t,l),e.insert(m,f,v),e.insert(m,d,v),h||(p=[e.listen(s,"click",i[18]),e.listen(l,"click",i[19])],h=!0)},p(m,v){v[0]&1024&&n!==(n=(m[10].program.name["*"]||m[10].program.name[p0.en])+"")&&e.set_data(a,n),e.set_attributes(d,u=e.get_spread_update(A,[v[0]&17430&&X(G({},m[14]),{id:m[10].program.id,currentinfo:m[1],giftimagesrc:m[2],contentdirection:m[4],bonus:m[10]})]))},d(m){m&&(e.detach(t),e.detach(f),e.detach(d)),h=!1,e.run_all(p)}}}function p3(i){let t,s,o=i[15]("wof.NoContent")+"",r;return{c(){t=e.element("div"),s=e.element("p"),r=e.text(o),e.attr(t,"class","NoContent")},m(n,a){e.insert(n,t,a),e.append(t,s),e.append(s,r)},p(n,a){a[0]&32768&&o!==(o=n[15]("wof.NoContent")+"")&&e.set_data(r,o)},d(n){n&&e.detach(t)}}}function A3(i){let t,s=e.ensure_array_like(i[8]),o=[];for(let r=0;r<s.length;r+=1)o[r]=qe(Xe(i,s,r));return{c(){t=e.element("ul");for(let r=0;r<o.length;r+=1)o[r].c();e.attr(t,"class","LuckyWheelList")},m(r,n){e.insert(r,t,n);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,n){if(n[0]&131328){s=e.ensure_array_like(r[8]);let a;for(a=0;a<s.length;a+=1){const c=Xe(r,s,a);o[a]?o[a].p(c,n):(o[a]=qe(c),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=s.length}},d(r){r&&e.detach(t),e.destroy_each(o,r)}}}function u3(i){let t;return{c(){t=e.element("wof-loader"),e.set_custom_element_data(t,"class","Loader")},m(s,o){e.insert(s,t,o)},p:e.noop,d(s){s&&e.detach(t)}}}function qe(i){var y,C;let t,s,o=i[40].program.name["*"]+"",r,n,a,c,l,f,d,h=((C=(y=i[40])==null?void 0:y.current)==null?void 0:C.remainingTimes)+"",p,A,u,m;function v(){return i[30](i[40])}return{c(){t=e.element("li"),s=e.element("button"),r=e.text(o),n=e.space(),a=e.element("div"),c=e.element("img"),f=e.space(),d=e.element("span"),p=e.text(h),A=e.space(),e.src_url_equal(c.src,l=c3)||e.attr(c,"src",l),e.attr(c,"alt","Key"),e.attr(a,"class","ItemKeys"),e.attr(s,"class","ItemButton"),e.attr(t,"class","LuckyWheelListItem")},m(S,B){e.insert(S,t,B),e.append(t,s),e.append(s,r),e.append(s,n),e.append(s,a),e.append(a,c),e.append(a,f),e.append(a,d),e.append(d,p),e.append(t,A),u||(m=e.listen(s,"click",v),u=!0)},p(S,B){var L,F;i=S,B[0]&256&&o!==(o=i[40].program.name["*"]+"")&&e.set_data(r,o),B[0]&256&&h!==(h=((F=(L=i[40])==null?void 0:L.current)==null?void 0:F.remainingTimes)+"")&&e.set_data(p,h)},d(S){S&&e.detach(t),u=!1,m()}}}function _e(i){let t,s,o=i[15]("wof.Terms")+"",r,n,a;return{c(){t=e.element("a"),s=e.element("span"),r=e.text(o),n=e.space(),a=e.element("span"),e.attr(a,"class","arrow-icon"),e.attr(t,"class","LuckyWheelRules__terms"),e.attr(t,"href",i[5]),e.attr(t,"target","_blank")},m(c,l){e.insert(c,t,l),e.append(t,s),e.append(s,r),e.append(t,n),e.append(t,a)},p(c,l){l[0]&32768&&o!==(o=c[15]("wof.Terms")+"")&&e.set_data(r,o),l[0]&32&&e.attr(t,"href",c[5])},d(c){c&&e.detach(t)}}}function h3(i){let t,s=(i[12]||i[6]===!0)&&Ke(i);return{c(){s&&s.c(),t=e.empty()},m(o,r){s&&s.m(o,r),e.insert(o,t,r)},p(o,r){o[12]||o[6]===!0?s?s.p(o,r):(s=Ke(o),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},i:e.noop,o:e.noop,d(o){o&&e.detach(t),s&&s.d(o)}}}function m3(i,t,s){let o,r,n;e.component_subscribe(i,e.$format,k=>s(15,n=k));let{lang:a=p0.en}=t,{endpoint:c=""}=t,{session:l=""}=t,{clientstyling:f=""}=t,{clientstylingurl:d=""}=t,{translationurl:h=""}=t,{programid:p=""}=t,{loginevent:A=""}=t,{loginurl:u=""}=t,{currentinfo:m=g0.RemainingTimes}=t,{giftimagesrc:v=""}=t,{isshowhistory:y="true"}=t,{contentdirection:C="anticlockwise"}=t,{terms:S=""}=t,{gameoverlay:B=!1}=t,L,F=!1;g2();let O=[],z=!0,x,Q=window.navigator.userAgent,N=e.isMobile(Q),D=!1,P=!1,T=!1;const V=k=>/(https?:\/\/[^\s]+)/g.test(k),M=()=>Z(this,null,function*(){if(s(9,z=!0),!o){H(A,u);return}!F||!a||!l||!c||(yield j())}),j=()=>Z(this,null,function*(){const k=yield E0.lotteries(c,l);$({type:"wof-private-bonuses-outcomes",bonuses:k}),s(8,O=k.map(W=>{if(!m0(W))return W})),s(9,z=!1),$({type:"WofStatus",avaliable:O.length>0}),$({type:"wof-private-bonuses",bonuses:O})}),H=(k,W)=>{k&&window.postMessage({type:k,transition:"Login"},window.location.href),W&&(window.location=W)},q=()=>{f2(a),M()},R=k=>{s(10,x=k),$({type:"wof-private-bonus",bonus:k})},Y=()=>{s(10,x=null)},e0=()=>{s(12,P=!1)},_=()=>{s(11,D=!D)};w0({"wof-private-checking":k=>{s(8,O=O.map(t0=>t0.program.id===k.id?X(G({},k.bonus),{hidden:m0(k.bonus)}):t0));let W=!0;O.map(t0=>{t0.hidden!==!0&&(W=!1)}),W&&s(8,O=[])},OpenLuckyWheelDrawer:()=>{s(12,P=!0),$({type:"wof-private-bonuses-outcomes",bonuses:O})},CloseLuckyWheelDrawer:()=>{s(12,P=!1)}}),e.onMount(()=>(s(29,F=!0),s(13,T=V(S)),()=>s(29,F=!1)));const r0=k=>R(k),n0=k=>k.program.id===p;function o0(k){e.binding_callbacks[k?"unshift":"push"](()=>{L=k,s(7,L)})}return i.$$set=k=>{"lang"in k&&s(22,a=k.lang),"endpoint"in k&&s(23,c=k.endpoint),"session"in k&&s(24,l=k.session),"clientstyling"in k&&s(21,f=k.clientstyling),"clientstylingurl"in k&&s(25,d=k.clientstylingurl),"translationurl"in k&&s(26,h=k.translationurl),"programid"in k&&s(0,p=k.programid),"loginevent"in k&&s(27,A=k.loginevent),"loginurl"in k&&s(28,u=k.loginurl),"currentinfo"in k&&s(1,m=k.currentinfo),"giftimagesrc"in k&&s(2,v=k.giftimagesrc),"isshowhistory"in k&&s(3,y=k.isshowhistory),"contentdirection"in k&&s(4,C=k.contentdirection),"terms"in k&&s(5,S=k.terms),"gameoverlay"in k&&s(6,B=k.gameoverlay)},i.$$.update=()=>{i.$$.dirty[0]&16777216&&(o=l&&l!=="false"),i.$$.dirty[0]&536870912&&F&&M(),i.$$.dirty[0]&25165824&&l&&c&&M(),i.$$.dirty[0]&4194304&&a&&q(),i.$$.dirty[0]&33554560&&d&&L&&w2(d,k=>s(21,f=k)),i.$$.dirty[0]&2097280&&f&&L&&h0(L,f),i.$$.dirty[0]&67108864&&h&&m2(h),i.$$.dirty[0]&31457280&&s(14,r={endpoint:c,lang:a,session:l,clientstyling:f})},[p,m,v,y,C,S,B,L,O,z,x,D,P,T,r,n,N,R,Y,e0,_,f,a,c,l,d,h,A,u,F,r0,n0,o0]}class i2 extends e.SvelteComponent{constructor(t){super(),e.init(this,t,m3,h3,e.safe_not_equal,{lang:22,endpoint:23,session:24,clientstyling:21,clientstylingurl:25,translationurl:26,programid:0,loginevent:27,loginurl:28,currentinfo:1,giftimagesrc:2,isshowhistory:3,contentdirection:4,terms:5,gameoverlay:6},d3,[-1,-1])}get lang(){return this.$$.ctx[22]}set lang(t){this.$$set({lang:t}),e.flush()}get endpoint(){return this.$$.ctx[23]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[24]}set session(t){this.$$set({session:t}),e.flush()}get clientstyling(){return this.$$.ctx[21]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[25]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[26]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get programid(){return this.$$.ctx[0]}set programid(t){this.$$set({programid:t}),e.flush()}get loginevent(){return this.$$.ctx[27]}set loginevent(t){this.$$set({loginevent:t}),e.flush()}get loginurl(){return this.$$.ctx[28]}set loginurl(t){this.$$set({loginurl:t}),e.flush()}get currentinfo(){return this.$$.ctx[1]}set currentinfo(t){this.$$set({currentinfo:t}),e.flush()}get giftimagesrc(){return this.$$.ctx[2]}set giftimagesrc(t){this.$$set({giftimagesrc:t}),e.flush()}get isshowhistory(){return this.$$.ctx[3]}set isshowhistory(t){this.$$set({isshowhistory:t}),e.flush()}get contentdirection(){return this.$$.ctx[4]}set contentdirection(t){this.$$set({contentdirection:t}),e.flush()}get terms(){return this.$$.ctx[5]}set terms(t){this.$$set({terms:t}),e.flush()}get gameoverlay(){return this.$$.ctx[6]}set gameoverlay(t){this.$$set({gameoverlay:t}),e.flush()}}e.create_custom_element(i2,{lang:{},endpoint:{},session:{},clientstyling:{},clientstylingurl:{},translationurl:{},programid:{},loginevent:{},loginurl:{},currentinfo:{},giftimagesrc:{},isshowhistory:{},contentdirection:{},terms:{},gameoverlay:{type:"Boolean"}},[],[],!0);exports.default=i2;
|
|
@@ -4370,7 +4370,7 @@ function W3(t) {
|
|
|
4370
4370
|
let e, i = (
|
|
4371
4371
|
/*showLuckyWheelList*/
|
|
4372
4372
|
(t[12] || /*gameoverlay*/
|
|
4373
|
-
t[6]) && Be(t)
|
|
4373
|
+
t[6] === !0) && Be(t)
|
|
4374
4374
|
);
|
|
4375
4375
|
return {
|
|
4376
4376
|
c() {
|
|
@@ -4382,7 +4382,7 @@ function W3(t) {
|
|
|
4382
4382
|
p(o, s) {
|
|
4383
4383
|
/*showLuckyWheelList*/
|
|
4384
4384
|
o[12] || /*gameoverlay*/
|
|
4385
|
-
o[6] ? i ? i.p(o, s) : (i = Be(o), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null);
|
|
4385
|
+
o[6] === !0 ? i ? i.p(o, s) : (i = Be(o), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null);
|
|
4386
4386
|
},
|
|
4387
4387
|
i: c0,
|
|
4388
4388
|
o: c0,
|
|
@@ -4394,7 +4394,7 @@ function W3(t) {
|
|
|
4394
4394
|
function X3(t, e, i) {
|
|
4395
4395
|
let o, s, r;
|
|
4396
4396
|
Z0(t, Y0, (M) => i(15, r = M));
|
|
4397
|
-
let { lang: n = Q0.en } = e, { endpoint: a = "" } = e, { session: l = "" } = e, { clientstyling: f = "" } = e, { clientstylingurl: c = "" } = e, { translationurl: A = "" } = e, { programid: u = "" } = e, { loginevent: p = "" } = e, { loginurl: y = "" } = e, { currentinfo: w = E0.RemainingTimes } = e, { giftimagesrc: x = "" } = e, { isshowhistory: B = "true" } = e, { contentdirection: F = "anticlockwise" } = e, { terms: W = "" } = e, { gameoverlay: S =
|
|
4397
|
+
let { lang: n = Q0.en } = e, { endpoint: a = "" } = e, { session: l = "" } = e, { clientstyling: f = "" } = e, { clientstylingurl: c = "" } = e, { translationurl: A = "" } = e, { programid: u = "" } = e, { loginevent: p = "" } = e, { loginurl: y = "" } = e, { currentinfo: w = E0.RemainingTimes } = e, { giftimagesrc: x = "" } = e, { isshowhistory: B = "true" } = e, { contentdirection: F = "anticlockwise" } = e, { terms: W = "" } = e, { gameoverlay: S = !1 } = e, U, O = !1;
|
|
4398
4398
|
Ze();
|
|
4399
4399
|
let J = [], G = !0, I, T = window.navigator.userAgent, s0 = o2(T), H = !1, z = !1, Z = !1;
|
|
4400
4400
|
const l0 = (M) => /(https?:\/\/[^\s]+)/g.test(M), Q = async () => {
|
|
@@ -4623,7 +4623,7 @@ class K3 extends O0 {
|
|
|
4623
4623
|
this.$$set({ gameoverlay: e }), E();
|
|
4624
4624
|
}
|
|
4625
4625
|
}
|
|
4626
|
-
D0(K3, { lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, programid: {}, loginevent: {}, loginurl: {}, currentinfo: {}, giftimagesrc: {}, isshowhistory: {}, contentdirection: {}, terms: {}, gameoverlay: {} }, [], [], !0);
|
|
4626
|
+
D0(K3, { lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, programid: {}, loginevent: {}, loginurl: {}, currentinfo: {}, giftimagesrc: {}, isshowhistory: {}, contentdirection: {}, terms: {}, gameoverlay: { type: "Boolean" } }, [], [], !0);
|
|
4627
4627
|
export {
|
|
4628
4628
|
K3 as default
|
|
4629
4629
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoGameOverlay-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoGameOverlay-Iv7bUu7N.cjs")).then(({default:t})=>{!customElements.get("casino-game-overlay")&&customElements.define("casino-game-overlay",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoGameOverlay-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoGameOverlay-BMsFTxKC.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("casino-game-overlay") && customElements.define("casino-game-overlay", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|