@everymatrix/prize-engine-suite 0.4.112 → 0.4.114

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/components/{PrizeEngineChest-CGJl7oh3.js → PrizeEngineChest-BEgXymIJ.js} +1 -1
  2. package/components/{PrizeEngineChest-DBo0tLNC.cjs → PrizeEngineChest-DgIjkvXD.cjs} +1 -1
  3. package/components/{PrizeEngineChest-BE1Pa5zS.js → PrizeEngineChest-K5EaD-Vc.js} +1 -1
  4. package/components/{PrizeEngineCoin-aVwTza41.js → PrizeEngineCoin-C2frGp-g.js} +1 -1
  5. package/components/{PrizeEngineCoin-Dwxhyymk.js → PrizeEngineCoin-DUX8PUIp.js} +1 -1
  6. package/components/{PrizeEngineCoin-BntV2nC7.cjs → PrizeEngineCoin-DuLELcZx.cjs} +1 -1
  7. package/components/{PrizeEngineDetails-yY32AMKo.js → PrizeEngineDetails-Bw13IueX.js} +5 -5
  8. package/components/{PrizeEngineDetails-CVmnEFmc.cjs → PrizeEngineDetails-ChnY26BL.cjs} +1 -1
  9. package/components/{PrizeEngineDetails-kkQ2qgf6.js → PrizeEngineDetails-HQKtVZMJ.js} +5 -5
  10. package/components/{PrizeEngineHistory-BaymNuBf.js → PrizeEngineHistory-6_sv8ymT.js} +2 -2
  11. package/components/{PrizeEngineHistory-DIaDQ3Ad.js → PrizeEngineHistory-JTXl4wBM.js} +2 -2
  12. package/components/{PrizeEngineHistory-BLTSU2nN.cjs → PrizeEngineHistory-MjugQXWY.cjs} +1 -1
  13. package/components/{PrizeEngineList-BINLNljs.cjs → PrizeEngineList-87cb95wJ.cjs} +1 -1
  14. package/components/{PrizeEngineList-BbPLzvqf.js → PrizeEngineList-D3ns2ITR.js} +2 -2
  15. package/components/{PrizeEngineList-Bz6mOvpl.js → PrizeEngineList-ZZ0ojzOf.js} +2 -2
  16. package/components/{PrizeEngineLuckywheel-8W3Ozl59.js → PrizeEngineLuckywheel-CyNhk3nk.js} +2 -2
  17. package/components/{PrizeEngineLuckywheel-CknWpkuO.cjs → PrizeEngineLuckywheel-DLIFEYCD.cjs} +1 -1
  18. package/components/{PrizeEngineLuckywheel-Dt106xKR.js → PrizeEngineLuckywheel-efXTLWhj.js} +2 -2
  19. package/components/{PrizeEngineSuite-CXW8m3Yx.js → PrizeEngineSuite-4p-Y5pBv.js} +3 -3
  20. package/components/{PrizeEngineSuite-BC4MKeMR.js → PrizeEngineSuite-B_NsOV8B.js} +3 -3
  21. package/components/{PrizeEngineSuite-CB3at6bs.cjs → PrizeEngineSuite-Bo4ochEx.cjs} +1 -1
  22. package/components/{WheelSVG-DQfD_TgA.js → WheelSVG-C2tVeH4P.js} +1 -1
  23. package/components/{WheelSVG-Br68VLJ3.cjs → WheelSVG-DxZHiQvp.cjs} +1 -1
  24. package/components/{WheelSVG-5iUwcU3G.js → WheelSVG-FO0V-tjE.js} +1 -1
  25. package/es2015/prize-engine-suite.cjs +1 -1
  26. package/es2015/prize-engine-suite.js +1 -1
  27. package/esnext/prize-engine-suite.js +1 -1
  28. package/package.json +1 -1
  29. package/stencil/index-b2193545-BK1eKuNv.js +493 -0
  30. package/stencil/index-b2193545-BzLH-hhx.js +509 -0
  31. package/stencil/index-b2193545-CIfou2cI.cjs +1 -0
  32. package/stencil/{ui-skeleton-W50o8tfg.js → ui-skeleton-B9VBo72p.js} +2 -2
  33. package/stencil/{ui-skeleton-xXZA3rYO.js → ui-skeleton-C7JH5ymf.js} +2 -2
  34. package/stencil/{ui-skeleton-BreIU6e5.cjs → ui-skeleton-aZT0Suei.cjs} +1 -1
  35. package/stencil/{ui-skeleton-ed169f8f-D3TjbVKy.js → ui-skeleton-ed169f8f-8UVsv6jT.js} +1 -1
  36. package/stencil/{ui-skeleton-ed169f8f-CVY4B-CP.js → ui-skeleton-ed169f8f-BQ-1TtKf.js} +1 -1
  37. package/stencil/{ui-skeleton-ed169f8f-CpiCXJrP.cjs → ui-skeleton-ed169f8f-CQoA7I2l.cjs} +1 -1
  38. package/stencil/index-b2193545-9K-aI7zC.cjs +0 -1
  39. package/stencil/index-b2193545-DsMHU6jb.js +0 -519
  40. package/stencil/index-b2193545-R7ZoV-kY.js +0 -503
@@ -1 +1 @@
1
- "use strict";var he=Object.defineProperty;var A=Object.getOwnPropertySymbols;var me=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable;var V=(a,e,t)=>e in a?he(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,z=(a,e)=>{for(var t in e||(e={}))me.call(e,t)&&V(a,t,e[t]);if(A)for(var t of A(e))ve.call(e,t)&&V(a,t,e[t]);return a};var L=(a,e,t)=>new Promise((r,n)=>{var o=c=>{try{l(t.next(c))}catch(f){n(f)}},s=c=>{try{l(t.throw(c))}catch(f){n(f)}},l=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);l((t=t.apply(a,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./PrizeEngineSuite-CB3at6bs.cjs");require("../stencil/ui-skeleton-BreIU6e5.cjs");const J={en:{History:"History",NoHistories:"No histories"}};function ge({withLocale:a,translations:e}){i.$locale.subscribe(t=>{t==null&&(i.$dictionary.set(e),i.$locale.set(a))})}function le(a,e){i.addMessages(a,e)}function ye(a){i.$locale.set(a)}const we=()=>{ge({withLocale:"en",translations:{}}),Object.keys(J).forEach(a=>{le(a,J[a])})};function j(a){"@babel/helpers - typeof";return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(a)}function U(a){if(a===null||a===!0||a===!1)return NaN;var e=Number(a);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function k(a,e){if(e.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+e.length+" present")}function M(a){k(1,arguments);var e=Object.prototype.toString.call(a);return a instanceof Date||j(a)==="object"&&e==="[object Date]"?new Date(a.getTime()):typeof a=="number"||e==="[object Number]"?new Date(a):((typeof a=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function pe(a,e){k(2,arguments);var t=M(a).getTime(),r=U(e);return new Date(t+r)}var be={};function B(){return be}function _e(a){var e=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return e.setUTCFullYear(a.getFullYear()),a.getTime()-e.getTime()}function xe(a){return k(1,arguments),a instanceof Date||j(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}function Te(a){if(k(1,arguments),!xe(a)&&typeof a!="number")return!1;var e=M(a);return!isNaN(Number(e))}function ke(a,e){k(2,arguments);var t=U(e);return pe(a,-t)}var Oe=864e5;function Ce(a){k(1,arguments);var e=M(a),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),n=t-r;return Math.floor(n/Oe)+1}function R(a){k(1,arguments);var e=1,t=M(a),r=t.getUTCDay(),n=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-n),t.setUTCHours(0,0,0,0),t}function ue(a){k(1,arguments);var e=M(a),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var n=R(r),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var s=R(o);return e.getTime()>=n.getTime()?t+1:e.getTime()>=s.getTime()?t:t-1}function Me(a){k(1,arguments);var e=ue(a),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=R(t);return r}var Pe=6048e5;function Se(a){k(1,arguments);var e=M(a),t=R(e).getTime()-Me(e).getTime();return Math.round(t/Pe)+1}function G(a,e){var t,r,n,o,s,l,c,f;k(1,arguments);var h=B(),d=U((t=(r=(n=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&n!==void 0?n:h.weekStartsOn)!==null&&r!==void 0?r:(c=h.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&t!==void 0?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=M(a),u=m.getUTCDay(),g=(u<d?7:0)+u-d;return m.setUTCDate(m.getUTCDate()-g),m.setUTCHours(0,0,0,0),m}function ce(a,e){var t,r,n,o,s,l,c,f;k(1,arguments);var h=M(a),d=h.getUTCFullYear(),m=B(),u=U((t=(r=(n=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&n!==void 0?n:m.firstWeekContainsDate)!==null&&r!==void 0?r:(c=m.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(d+1,0,u),g.setUTCHours(0,0,0,0);var w=G(g,e),x=new Date(0);x.setUTCFullYear(d,0,u),x.setUTCHours(0,0,0,0);var p=G(x,e);return h.getTime()>=w.getTime()?d+1:h.getTime()>=p.getTime()?d:d-1}function De(a,e){var t,r,n,o,s,l,c,f;k(1,arguments);var h=B(),d=U((t=(r=(n=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&n!==void 0?n:h.firstWeekContainsDate)!==null&&r!==void 0?r:(c=h.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&t!==void 0?t:1),m=ce(a,e),u=new Date(0);u.setUTCFullYear(m,0,d),u.setUTCHours(0,0,0,0);var g=G(u,e);return g}var Le=6048e5;function We(a,e){k(1,arguments);var t=M(a),r=G(t,e).getTime()-De(t,e).getTime();return Math.round(r/Le)+1}function y(a,e){for(var t=a<0?"-":"",r=Math.abs(a).toString();r.length<e;)r="0"+r;return t+r}var S={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return y(t==="yy"?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):y(r+1,2)},d:function(e,t){return y(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return y(e.getUTCHours()%12||12,t.length)},H:function(e,t){return y(e.getUTCHours(),t.length)},m:function(e,t){return y(e.getUTCMinutes(),t.length)},s:function(e,t){return y(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,n=e.getUTCMilliseconds(),o=Math.floor(n*Math.pow(10,r-3));return y(o,t.length)}},E={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ue={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var n=e.getUTCFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return S.y(e,t)},Y:function(e,t,r,n){var o=ce(e,n),s=o>0?o:1-o;if(t==="YY"){var l=s%100;return y(l,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):y(s,t.length)},R:function(e,t){var r=ue(e);return y(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return y(r,t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return y(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return y(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return S.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return y(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var o=We(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):y(o,t.length)},I:function(e,t,r){var n=Se(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):y(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):S.d(e,t)},D:function(e,t,r){var n=Ce(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):y(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var o=e.getUTCDay(),s=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return y(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var o=e.getUTCDay(),s=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return y(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return y(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours(),o=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n=e.getUTCHours(),o;switch(n===12?o=E.noon:n===0?o=E.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n=e.getUTCHours(),o;switch(n>=17?o=E.evening:n>=12?o=E.afternoon:n>=4?o=E.morning:o=E.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var n=e.getUTCHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return S.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):S.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):y(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):y(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):S.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):S.s(e,t)},S:function(e,t){return S.S(e,t)},X:function(e,t,r,n){var o=n._originalDate||e,s=o.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return Z(s);case"XXXX":case"XX":return W(s);case"XXXXX":case"XXX":default:return W(s,":")}},x:function(e,t,r,n){var o=n._originalDate||e,s=o.getTimezoneOffset();switch(t){case"x":return Z(s);case"xxxx":case"xx":return W(s);case"xxxxx":case"xxx":default:return W(s,":")}},O:function(e,t,r,n){var o=n._originalDate||e,s=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+K(s,":");case"OOOO":default:return"GMT"+W(s,":")}},z:function(e,t,r,n){var o=n._originalDate||e,s=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+K(s,":");case"zzzz":default:return"GMT"+W(s,":")}},t:function(e,t,r,n){var o=n._originalDate||e,s=Math.floor(o.getTime()/1e3);return y(s,t.length)},T:function(e,t,r,n){var o=n._originalDate||e,s=o.getTime();return y(s,t.length)}};function K(a,e){var t=a>0?"-":"+",r=Math.abs(a),n=Math.floor(r/60),o=r%60;if(o===0)return t+String(n);var s=e;return t+String(n)+s+y(o,2)}function Z(a,e){if(a%60===0){var t=a>0?"-":"+";return t+y(Math.abs(a)/60,2)}return W(a,e)}function W(a,e){var t=e||"",r=a>0?"-":"+",n=Math.abs(a),o=y(Math.floor(n/60),2),s=y(n%60,2);return r+o+t+s}var $=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},de=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Ee=function(e,t){var r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return $(e,t);var s;switch(n){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",$(n,t)).replace("{{time}}",de(o,t))},Ye={p:de,P:Ee},Ne=["D","DD"],He=["YY","YYYY"];function Ie(a){return Ne.indexOf(a)!==-1}function Fe(a){return He.indexOf(a)!==-1}function ee(a,e,t){if(a==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var qe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ze=function(e,t,r){var n,o=qe[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Q(a){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):a.defaultWidth,r=a.formats[t]||a.formats[a.defaultWidth];return r}}var je={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Re={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ge={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Be={date:Q({formats:je,defaultWidth:"full"}),time:Q({formats:Re,defaultWidth:"full"}),dateTime:Q({formats:Ge,defaultWidth:"full"})},Qe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Xe=function(e,t,r,n){return Qe[e]};function Y(a){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",n;if(r==="formatting"&&a.formattingValues){var o=a.defaultFormattingWidth||a.defaultWidth,s=t!=null&&t.width?String(t.width):o;n=a.formattingValues[s]||a.formattingValues[o]}else{var l=a.defaultWidth,c=t!=null&&t.width?String(t.width):a.defaultWidth;n=a.values[c]||a.values[l]}var f=a.argumentCallback?a.argumentCallback(e):e;return n[f]}}var Ae={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ve={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Je={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ke={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ze={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},$e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},et=function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},tt={ordinalNumber:et,era:Y({values:Ae,defaultWidth:"wide"}),quarter:Y({values:Ve,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Y({values:Je,defaultWidth:"wide"}),day:Y({values:Ke,defaultWidth:"wide"}),dayPeriod:Y({values:Ze,defaultWidth:"wide",formattingValues:$e,defaultFormattingWidth:"wide"})};function N(a){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,n=r&&a.matchPatterns[r]||a.matchPatterns[a.defaultMatchWidth],o=e.match(n);if(!o)return null;var s=o[0],l=r&&a.parsePatterns[r]||a.parsePatterns[a.defaultParseWidth],c=Array.isArray(l)?at(l,function(d){return d.test(s)}):rt(l,function(d){return d.test(s)}),f;f=a.valueCallback?a.valueCallback(c):c,f=t.valueCallback?t.valueCallback(f):f;var h=e.slice(s.length);return{value:f,rest:h}}}function rt(a,e){for(var t in a)if(a.hasOwnProperty(t)&&e(a[t]))return t}function at(a,e){for(var t=0;t<a.length;t++)if(e(a[t]))return t}function nt(a){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(a.matchPattern);if(!r)return null;var n=r[0],o=e.match(a.parsePattern);if(!o)return null;var s=a.valueCallback?a.valueCallback(o[0]):o[0];s=t.valueCallback?t.valueCallback(s):s;var l=e.slice(n.length);return{value:s,rest:l}}}var it=/^(\d+)(th|st|nd|rd)?/i,ot=/\d+/i,st={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},lt={any:[/^b/i,/^(a|c)/i]},ut={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ct={any:[/1/i,/2/i,/3/i,/4/i]},dt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ft={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ht={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},mt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},vt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},gt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},yt={ordinalNumber:nt({matchPattern:it,parsePattern:ot,valueCallback:function(e){return parseInt(e,10)}}),era:N({matchPatterns:st,defaultMatchWidth:"wide",parsePatterns:lt,defaultParseWidth:"any"}),quarter:N({matchPatterns:ut,defaultMatchWidth:"wide",parsePatterns:ct,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:N({matchPatterns:dt,defaultMatchWidth:"wide",parsePatterns:ft,defaultParseWidth:"any"}),day:N({matchPatterns:ht,defaultMatchWidth:"wide",parsePatterns:mt,defaultParseWidth:"any"}),dayPeriod:N({matchPatterns:vt,defaultMatchWidth:"any",parsePatterns:gt,defaultParseWidth:"any"})},wt={code:"en-US",formatDistance:ze,formatLong:Be,formatRelative:Xe,localize:tt,match:yt,options:{weekStartsOn:0,firstWeekContainsDate:1}},pt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_t=/^'([^]*?)'?$/,xt=/''/g,Tt=/[a-zA-Z]/;function kt(a,e,t){var r,n,o,s,l,c,f,h,d,m,u,g,w,x;k(2,arguments);var p=String(e),b=B(),v=(r=(n=void 0)!==null&&n!==void 0?n:b.locale)!==null&&r!==void 0?r:wt,O=U((o=(s=(l=(c=void 0)!==null&&c!==void 0?c:void 0)!==null&&l!==void 0?l:b.firstWeekContainsDate)!==null&&s!==void 0?s:(f=b.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=U((d=(m=(u=(g=void 0)!==null&&g!==void 0?g:void 0)!==null&&u!==void 0?u:b.weekStartsOn)!==null&&m!==void 0?m:(w=b.locale)===null||w===void 0||(x=w.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&d!==void 0?d:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!v.localize)throw new RangeError("locale must contain localize property");if(!v.formatLong)throw new RangeError("locale must contain formatLong property");var _=M(a);if(!Te(_))throw new RangeError("Invalid time value");var H=_e(_),I=ke(_,H),F={firstWeekContainsDate:O,weekStartsOn:P,locale:v,_originalDate:_},q=p.match(bt).map(function(T){var C=T[0];if(C==="p"||C==="P"){var D=Ye[C];return D(T,v.formatLong)}return T}).join("").match(pt).map(function(T){if(T==="''")return"'";var C=T[0];if(C==="'")return Ot(T);var D=Ue[C];if(D)return Fe(T)&&ee(T,e,String(a)),Ie(T)&&ee(T,e,String(a)),D(I,T,v.localize,F);if(C.match(Tt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return T}).join("");return q}function Ot(a){var e=a.match(_t);return e?e[1].replace(xt,"'"):a}const te=(n,o,s,...l)=>L(exports,[n,o,s,...l],function*(a,e,t,r={}){const c=new URL(a+"/v1"+e);r.params&&Object.keys(r.params).forEach(m=>c.searchParams.append(m,r.params[m]));const f={method:r.method||"GET",headers:z(z({"Content-Type":"application/json",Accept:"text/plain"},t?{"x-SessionId":t}:{}),r.headers),body:r.body},d=yield(yield fetch(c.toString(),f)).text();return JSON.parse(d)}),Ct={fetchLotteries:(a,e,t)=>L(exports,null,function*(){return yield te(a,"/wof/lotteries",e,{params:t!=null&&t.length?{filter:t.map(r=>`Types[]=${r}`).join(",")}:{filter:"Types[]=wheelOfFortune"}})}),fetchFullHistory:(a,e,t,r)=>L(exports,null,function*(){const n=u=>{const g=new URL(a+"/v1"+u);return r!=null&&r.length&&r.forEach(w=>g.searchParams.append("filter",`Types[]=${w}`)),g.toString()},o=u=>L(exports,null,function*(){return(yield fetch(n(u),{headers:z({"Content-Type":"application/json",Accept:"text/plain"},e?{"x-SessionId":e}:{})})).json()}),[s,l]=yield Promise.all([o("/wof/lotteryHistory"),o("/wof/lotteries")]),c=(l==null?void 0:l.items)||[],f=(s==null?void 0:s.items)||[],h=new Set(c.map(u=>u.program.id)),d=f.map(u=>u.programID).filter(u=>h.has(u));return d.length===0?[]:(yield Promise.all(d.map(u=>L(exports,null,function*(){var p,b,v;const g=yield te(a,`/wof/outcome/${u}`,e),w=c.find(O=>O.program.id===u);if(!((p=g==null?void 0:g.items)!=null&&p.length))return null;const x=g.items.map(O=>{var H,I,F,q,T,C,D,X;const P=O.draw.result.wheelOfFortunePartitionIndex,_=(I=(H=w==null?void 0:w.program)==null?void 0:H.wheelOfFortune)==null?void 0:I.partitions[P];return{prizeName:((F=_==null?void 0:_.name)==null?void 0:F[t])||((q=_==null?void 0:_.name)==null?void 0:q["*"]),prizeImage:((T=_==null?void 0:_.prizeImage)==null?void 0:T[t])||((C=_==null?void 0:_.prizeImage)==null?void 0:C["*"])||((D=_==null?void 0:_.image1)==null?void 0:D[t])||((X=_==null?void 0:_.image1)==null?void 0:X["*"]),state:O.draw.state==="fulfilled",date:kt(new Date(O.draw.time),"dd/MM/yyyy hh:mm:ss a")}});return{id:u,name:((b=w==null?void 0:w.program)==null?void 0:b.name[t])||((v=w==null?void 0:w.program)==null?void 0:v.name["*"])||"Unknown Game",outcomes:x}})))).filter(u=>u!==null)})},re="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%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.1724%204.72381C15.4708%205.02223%2015.4708%205.50607%2015.1724%205.80449L7.70071%2013.2762C7.40229%2013.5746%206.91846%2013.5746%206.62004%2013.2762L3.22381%209.87996C2.9254%209.58154%202.9254%209.09771%203.22381%208.79929C3.52223%208.50087%204.00607%208.50087%204.30449%208.79929L7.16038%2011.6552L14.0917%204.72381C14.3902%204.4254%2014.874%204.4254%2015.1724%204.72381Z'%20fill='%2358DB4A'/%3e%3c/svg%3e",ae="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%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.96967%203.96967C4.26256%203.67678%204.73744%203.67678%205.03033%203.96967L9%207.93934L12.9697%203.96967C13.2626%203.67678%2013.7374%203.67678%2014.0303%203.96967C14.3232%204.26256%2014.3232%204.73744%2014.0303%205.03033L10.0607%209L14.0303%2012.9697C14.3232%2013.2626%2014.3232%2013.7374%2014.0303%2014.0303C13.7374%2014.3232%2013.2626%2014.3232%2012.9697%2014.0303L9%2010.0607L5.03033%2014.0303C4.73744%2014.3232%204.26256%2014.3232%203.96967%2014.0303C3.67678%2013.7374%203.67678%2013.2626%203.96967%2012.9697L7.93934%209L3.96967%205.03033C3.67678%204.73744%203.67678%204.26256%203.96967%203.96967Z'%20fill='%23FF9B59'/%3e%3c/svg%3e";function Mt(a){i.append_styles(a,"svelte-1r6yeh4",':host{display:block;height:100%;flex-grow:1}.PrizeHistoryContent.svelte-1r6yeh4.svelte-1r6yeh4{width:100%;height:100%;display:flex;flex-direction:column;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif);margin:30px auto}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4{overflow-y:auto}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar{width:4px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-track,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-track{background:transparent}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb{background:var(--emw--color-gray-105, #1b2e31);border-radius:2px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb:hover,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb:hover{background:var(--emw--color-gray-290, #284044)}.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4{flex-grow:1;display:flex;flex-direction:column;gap:24px;padding-right:10px;padding-bottom:50px}.HistoryItem.svelte-1r6yeh4.svelte-1r6yeh4{margin-bottom:40px;flex-shrink:0}.GroupName.svelte-1r6yeh4.svelte-1r6yeh4{color:var(--emw--color-white, #ffffff);font-size:var(--emw--font-size-medium, 16px);font-weight:700;line-height:18px;margin-bottom:16px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4{max-height:215px;display:flex;flex-direction:column}.OutcomeItem.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--emw--color-gray-transparency-20, rgba(114, 151, 135, 0.2));color:var(--emw--color-primary-variant, #a9ccbe);min-height:40px}.OutcomeItem.svelte-1r6yeh4 .OutcomeLeft.svelte-1r6yeh4{display:flex;align-items:center;gap:16px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo.svelte-1r6yeh4{display:flex;align-items:center;gap:8px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo .PrizeImg.svelte-1r6yeh4{height:20px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo .StatusIcon.svelte-1r6yeh4{height:16px}.OutcomeItem.svelte-1r6yeh4 .Date.svelte-1r6yeh4{font-size:var(--emw--font-size-small, 14px)}.HistoryLoader.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}.HistoryLoader.svelte-1r6yeh4 .Skeleton{border-radius:var(--emw--border-radius-small, 12px);--emw-skeleton-primary-color:var(--emw--color-primary, #d9d9d9);--emw-skeleton-secondary-color:var(--emw--color-secondary, #999999);--emw-skeleton-text-width:255px}.HistoryLoader.svelte-1r6yeh4 .GroupLoader.svelte-1r6yeh4{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}.HistoryLoader.svelte-1r6yeh4 .LoaderBody.svelte-1r6yeh4{display:flex;justify-content:space-between}.HistoryLoader.svelte-1r6yeh4 .LoaderLeft.svelte-1r6yeh4{display:flex}.HistoryLoader.svelte-1r6yeh4 .Dot.svelte-1r6yeh4 .Skeleton{border-radius:50%;margin-right:10px}.HistoryLoader.svelte-1r6yeh4 .Text.svelte-1r6yeh4 .Skeleton{margin-right:20px}.HistoryLoader.Mobile.svelte-1r6yeh4 .Skeleton{--emw-skeleton-text-width:235px}.EmptyState.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;justify-content:center;align-items:center;height:200px;color:var(--emw--color-secondary-variant, #a9ccbe)}.Mobile.svelte-1r6yeh4 .GroupName.svelte-1r6yeh4{font-size:var(--emw--font-size-small, 14px)}.Mobile.svelte-1r6yeh4 .OutcomeItem.svelte-1r6yeh4{font-size:var(--emw--font-size-x-small, 12px);padding:0}.Mobile.svelte-1r6yeh4 .OutcomeItem .Date.svelte-1r6yeh4{font-size:11px}')}function ne(a,e,t){const r=a.slice();return r[21]=e[t],r}function ie(a,e,t){const r=a.slice();return r[24]=e[t],r[26]=t,r}function Pt(a,e,t){const r=a.slice();return r[16]=e[t],r}function St(a,e,t){const r=a.slice();return r[16]=e[t],r}function Dt(a){let e,t,r=a[3]("NoHistories")+"",n;return{c(){e=i.element("div"),t=i.element("p"),n=i.text(r),i.attr(e,"class","EmptyState svelte-1r6yeh4")},m(o,s){i.insert(o,e,s),i.append(e,t),i.append(t,n)},p(o,s){s&8&&r!==(r=o[3]("NoHistories")+"")&&i.set_data(n,r)},d(o){o&&i.detach(e)}}}function Lt(a){let e,t=i.ensure_array_like(a[2]),r=[];for(let n=0;n<t.length;n+=1)r[n]=se(ne(a,t,n));return{c(){for(let n=0;n<r.length;n+=1)r[n].c();e=i.empty()},m(n,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(n,o);i.insert(n,e,o)},p(n,o){if(o&4){t=i.ensure_array_like(n[2]);let s;for(s=0;s<t.length;s+=1){const l=ne(n,t,s);r[s]?r[s].p(l,o):(r[s]=se(l),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=t.length}},d(n){n&&i.detach(e),i.destroy_each(r,n)}}}function Wt(a){let e,t=i.ensure_array_like([1,2,3]),r=[];for(let n=0;n<3;n+=1)r[n]=Nt(Pt(a,t,n));return{c(){e=i.element("div");for(let n=0;n<3;n+=1)r[n].c();i.attr(e,"class","HistoryLoader svelte-1r6yeh4"),i.toggle_class(e,"Mobile",a[4])},m(n,o){i.insert(n,e,o);for(let s=0;s<3;s+=1)r[s]&&r[s].m(e,null)},p:i.noop,d(n){n&&i.detach(e),i.destroy_each(r,n)}}}function Ut(a){let e,t;return{c(){e=i.element("img"),i.src_url_equal(e.src,t=a[24].prizeImage)||i.attr(e,"src",t),i.attr(e,"alt","prize"),i.attr(e,"class","PrizeImg svelte-1r6yeh4")},m(r,n){i.insert(r,e,n)},p(r,n){n&4&&!i.src_url_equal(e.src,t=r[24].prizeImage)&&i.attr(e,"src",t)},d(r){r&&i.detach(e)}}}function Et(a){let e,t=a[24].prizeName+"",r;return{c(){e=i.element("span"),r=i.text(t)},m(n,o){i.insert(n,e,o),i.append(e,r)},p(n,o){o&4&&t!==(t=n[24].prizeName+"")&&i.set_data(r,t)},d(n){n&&i.detach(e)}}}function oe(a){let e,t,r,n,o,s,l,c,f,h,d,m=a[24].date+"",u,g;function w(b,v){if(b[24].prizeName)return Et;if(b[24].prizeImage)return Ut}let x=w(a),p=x&&x(a);return{c(){e=i.element("div"),t=i.element("div"),r=i.element("span"),r.textContent=`${a[26]+1}`,n=i.space(),o=i.element("div"),p&&p.c(),s=i.space(),l=i.element("img"),f=i.space(),h=i.element("div"),d=i.element("span"),u=i.text(m),g=i.space(),i.attr(r,"class","Index"),i.src_url_equal(l.src,c=a[24].state?re:ae)||i.attr(l,"src",c),i.attr(l,"alt","status"),i.attr(l,"class","StatusIcon svelte-1r6yeh4"),i.attr(o,"class","PrizeInfo svelte-1r6yeh4"),i.attr(t,"class","OutcomeLeft svelte-1r6yeh4"),i.attr(d,"class","Date svelte-1r6yeh4"),i.attr(h,"class","OutcomeRight"),i.attr(e,"class","OutcomeItem svelte-1r6yeh4")},m(b,v){i.insert(b,e,v),i.append(e,t),i.append(t,r),i.append(t,n),i.append(t,o),p&&p.m(o,null),i.append(o,s),i.append(o,l),i.append(e,f),i.append(e,h),i.append(h,d),i.append(d,u),i.append(e,g)},p(b,v){x===(x=w(b))&&p?p.p(b,v):(p&&p.d(1),p=x&&x(b),p&&(p.c(),p.m(o,s))),v&4&&!i.src_url_equal(l.src,c=b[24].state?re:ae)&&i.attr(l,"src",c),v&4&&m!==(m=b[24].date+"")&&i.set_data(u,m)},d(b){b&&i.detach(e),p&&p.d()}}}function se(a){let e,t,r=a[21].name+"",n,o,s,l,c,f=i.ensure_array_like(a[21].outcomes),h=[];for(let d=0;d<f.length;d+=1)h[d]=oe(ie(a,f,d));return{c(){e=i.element("div"),t=i.element("div"),n=i.text(r),o=i.space(),s=i.element("div");for(let d=0;d<h.length;d+=1)h[d].c();c=i.space(),i.attr(t,"class","GroupName svelte-1r6yeh4"),i.attr(s,"class","OutcomesList svelte-1r6yeh4"),i.attr(s,"style",l=a[21].outcomes.length<=5?"overflow: hidden;":""),i.attr(e,"class","HistoryItem svelte-1r6yeh4")},m(d,m){i.insert(d,e,m),i.append(e,t),i.append(t,n),i.append(e,o),i.append(e,s);for(let u=0;u<h.length;u+=1)h[u]&&h[u].m(s,null);i.append(e,c)},p(d,m){if(m&4&&r!==(r=d[21].name+"")&&i.set_data(n,r),m&4){f=i.ensure_array_like(d[21].outcomes);let u;for(u=0;u<f.length;u+=1){const g=ie(d,f,u);h[u]?h[u].p(g,m):(h[u]=oe(g),h[u].c(),h[u].m(s,null))}for(;u<h.length;u+=1)h[u].d(1);h.length=f.length}m&4&&l!==(l=d[21].outcomes.length<=5?"overflow: hidden;":"")&&i.attr(s,"style",l)},d(d){d&&i.detach(e),i.destroy_each(h,d)}}}function Yt(a){let e;return{c(){e=i.element("div"),e.innerHTML='<div class="LoaderLeft svelte-1r6yeh4"><ui-skeleton class="Dot svelte-1r6yeh4" structure="rectangle" width="16px" height="16px"></ui-skeleton> <ui-skeleton class="Text svelte-1r6yeh4" structure="text" height="16px"></ui-skeleton></div> <ui-skeleton class="Text svelte-1r6yeh4" structure="text" width="50px" height="16px"></ui-skeleton>',i.attr(e,"class","LoaderBody svelte-1r6yeh4")},m(t,r){i.insert(t,e,r)},p:i.noop,d(t){t&&i.detach(e)}}}function Nt(a){let e,t,r,n,o=i.ensure_array_like([1,2,3]),s=[];for(let l=0;l<3;l+=1)s[l]=Yt(St(a,o,l));return{c(){e=i.element("div"),t=i.element("ui-skeleton"),r=i.space();for(let l=0;l<3;l+=1)s[l].c();n=i.space(),i.set_custom_element_data(t,"structure","text"),i.set_custom_element_data(t,"height","16px"),i.attr(e,"class","GroupLoader svelte-1r6yeh4")},m(l,c){i.insert(l,e,c),i.append(e,t),i.append(e,r);for(let f=0;f<3;f+=1)s[f]&&s[f].m(e,null);i.append(e,n)},p:i.noop,d(l){l&&i.detach(e),i.destroy_each(s,l)}}}function Ht(a){let e,t,r;function n(l,c){return l[1]?Wt:l[2].length>0?Lt:Dt}let o=n(a),s=o(a);return{c(){e=i.element("div"),t=i.element("div"),s.c(),i.attr(t,"class","HistoryList svelte-1r6yeh4"),i.attr(e,"class","PrizeHistoryContent svelte-1r6yeh4"),i.toggle_class(e,"Mobile",a[4])},m(l,c){i.insert(l,e,c),i.append(e,t),s.m(t,null),a[13](e)},p(l,[c]){o===(o=n(l))&&s?s.p(l,c):(s.d(1),s=o(l),s&&(s.c(),s.m(t,null)))},i(l){l&&(r||i.add_render_callback(()=>{r=i.create_in_transition(e,i.fade,{duration:300}),r.start()}))},o:i.noop,d(l){l&&i.detach(e),s.d(),a[13](null)}}}let It=null;function Ft(a,e,t){let r;i.component_subscribe(a,i.$format,v=>t(3,r=v));let{endpoint:n=""}=e,{session:o=""}=e,{lang:s="en"}=e,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,{translationurl:f=""}=e,{mbsource:h=""}=e,{type:d="wheelOfFortune"}=e,m;const u=i.isMobile(window.navigator.userAgent);let g=!0,w=[];we();const x=()=>{fetch(f).then(O=>O.json()).then(O=>{Object.keys(O).forEach(P=>{le(P,O[P])})})},p=()=>L(this,null,function*(){if(!(!n||!o)){t(1,g=!0);try{t(2,w=yield Ct.fetchFullHistory(n,o,s,[d]))}catch(v){console.error("[PrizeEngineHistory] Fetch failed",v)}finally{t(1,g=!1)}}});i.onMount(()=>()=>{});function b(v){i.binding_callbacks[v?"unshift":"push"](()=>{m=v,t(0,m)})}return a.$$set=v=>{"endpoint"in v&&t(5,n=v.endpoint),"session"in v&&t(6,o=v.session),"lang"in v&&t(7,s=v.lang),"clientstyling"in v&&t(8,l=v.clientstyling),"clientstylingurl"in v&&t(9,c=v.clientstylingurl),"translationurl"in v&&t(10,f=v.translationurl),"mbsource"in v&&t(11,h=v.mbsource),"type"in v&&t(12,d=v.type)},a.$$.update=()=>{a.$$.dirty&128&&s&&ye(s),a.$$.dirty&1024&&f&&x(),a.$$.dirty&4192&&n&&o&&d&&p(),a.$$.dirty&257&&l&&m&&i.setClientStyling(m,l),a.$$.dirty&513&&c&&m&&i.setClientStylingURL(m,c),a.$$.dirty&2049&&h&&m&&i.setStreamStyling(m,`${h}.Style`,It)},[m,g,w,r,u,n,o,s,l,c,f,h,d,b]}class fe extends i.SvelteComponent{constructor(e){super(),i.init(this,e,Ft,Ht,i.safe_not_equal,{endpoint:5,session:6,lang:7,clientstyling:8,clientstylingurl:9,translationurl:10,mbsource:11,type:12},Mt)}get endpoint(){return this.$$.ctx[5]}set endpoint(e){this.$$set({endpoint:e}),i.flush()}get session(){return this.$$.ctx[6]}set session(e){this.$$set({session:e}),i.flush()}get lang(){return this.$$.ctx[7]}set lang(e){this.$$set({lang:e}),i.flush()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(e){this.$$set({clientstyling:e}),i.flush()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),i.flush()}get translationurl(){return this.$$.ctx[10]}set translationurl(e){this.$$set({translationurl:e}),i.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(e){this.$$set({mbsource:e}),i.flush()}get type(){return this.$$.ctx[12]}set type(e){this.$$set({type:e}),i.flush()}}customElements.define("prize-engine-history",i.create_custom_element(fe,{endpoint:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},type:{}},[],[],!0));exports.default=fe;
1
+ "use strict";var he=Object.defineProperty;var A=Object.getOwnPropertySymbols;var me=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable;var V=(a,e,t)=>e in a?he(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,z=(a,e)=>{for(var t in e||(e={}))me.call(e,t)&&V(a,t,e[t]);if(A)for(var t of A(e))ve.call(e,t)&&V(a,t,e[t]);return a};var L=(a,e,t)=>new Promise((r,n)=>{var o=c=>{try{l(t.next(c))}catch(f){n(f)}},s=c=>{try{l(t.throw(c))}catch(f){n(f)}},l=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);l((t=t.apply(a,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./PrizeEngineSuite-Bo4ochEx.cjs");require("../stencil/ui-skeleton-aZT0Suei.cjs");const J={en:{History:"History",NoHistories:"No histories"}};function ge({withLocale:a,translations:e}){i.$locale.subscribe(t=>{t==null&&(i.$dictionary.set(e),i.$locale.set(a))})}function le(a,e){i.addMessages(a,e)}function ye(a){i.$locale.set(a)}const we=()=>{ge({withLocale:"en",translations:{}}),Object.keys(J).forEach(a=>{le(a,J[a])})};function j(a){"@babel/helpers - typeof";return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(a)}function U(a){if(a===null||a===!0||a===!1)return NaN;var e=Number(a);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function k(a,e){if(e.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+e.length+" present")}function M(a){k(1,arguments);var e=Object.prototype.toString.call(a);return a instanceof Date||j(a)==="object"&&e==="[object Date]"?new Date(a.getTime()):typeof a=="number"||e==="[object Number]"?new Date(a):((typeof a=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function pe(a,e){k(2,arguments);var t=M(a).getTime(),r=U(e);return new Date(t+r)}var be={};function B(){return be}function _e(a){var e=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return e.setUTCFullYear(a.getFullYear()),a.getTime()-e.getTime()}function xe(a){return k(1,arguments),a instanceof Date||j(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}function Te(a){if(k(1,arguments),!xe(a)&&typeof a!="number")return!1;var e=M(a);return!isNaN(Number(e))}function ke(a,e){k(2,arguments);var t=U(e);return pe(a,-t)}var Oe=864e5;function Ce(a){k(1,arguments);var e=M(a),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),n=t-r;return Math.floor(n/Oe)+1}function R(a){k(1,arguments);var e=1,t=M(a),r=t.getUTCDay(),n=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-n),t.setUTCHours(0,0,0,0),t}function ue(a){k(1,arguments);var e=M(a),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var n=R(r),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var s=R(o);return e.getTime()>=n.getTime()?t+1:e.getTime()>=s.getTime()?t:t-1}function Me(a){k(1,arguments);var e=ue(a),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=R(t);return r}var Pe=6048e5;function Se(a){k(1,arguments);var e=M(a),t=R(e).getTime()-Me(e).getTime();return Math.round(t/Pe)+1}function G(a,e){var t,r,n,o,s,l,c,f;k(1,arguments);var h=B(),d=U((t=(r=(n=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&n!==void 0?n:h.weekStartsOn)!==null&&r!==void 0?r:(c=h.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&t!==void 0?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=M(a),u=m.getUTCDay(),g=(u<d?7:0)+u-d;return m.setUTCDate(m.getUTCDate()-g),m.setUTCHours(0,0,0,0),m}function ce(a,e){var t,r,n,o,s,l,c,f;k(1,arguments);var h=M(a),d=h.getUTCFullYear(),m=B(),u=U((t=(r=(n=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&n!==void 0?n:m.firstWeekContainsDate)!==null&&r!==void 0?r:(c=m.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(d+1,0,u),g.setUTCHours(0,0,0,0);var w=G(g,e),x=new Date(0);x.setUTCFullYear(d,0,u),x.setUTCHours(0,0,0,0);var p=G(x,e);return h.getTime()>=w.getTime()?d+1:h.getTime()>=p.getTime()?d:d-1}function De(a,e){var t,r,n,o,s,l,c,f;k(1,arguments);var h=B(),d=U((t=(r=(n=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&n!==void 0?n:h.firstWeekContainsDate)!==null&&r!==void 0?r:(c=h.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&t!==void 0?t:1),m=ce(a,e),u=new Date(0);u.setUTCFullYear(m,0,d),u.setUTCHours(0,0,0,0);var g=G(u,e);return g}var Le=6048e5;function We(a,e){k(1,arguments);var t=M(a),r=G(t,e).getTime()-De(t,e).getTime();return Math.round(r/Le)+1}function y(a,e){for(var t=a<0?"-":"",r=Math.abs(a).toString();r.length<e;)r="0"+r;return t+r}var S={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return y(t==="yy"?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):y(r+1,2)},d:function(e,t){return y(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return y(e.getUTCHours()%12||12,t.length)},H:function(e,t){return y(e.getUTCHours(),t.length)},m:function(e,t){return y(e.getUTCMinutes(),t.length)},s:function(e,t){return y(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,n=e.getUTCMilliseconds(),o=Math.floor(n*Math.pow(10,r-3));return y(o,t.length)}},E={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ue={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var n=e.getUTCFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return S.y(e,t)},Y:function(e,t,r,n){var o=ce(e,n),s=o>0?o:1-o;if(t==="YY"){var l=s%100;return y(l,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):y(s,t.length)},R:function(e,t){var r=ue(e);return y(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return y(r,t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return y(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return y(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return S.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return y(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var o=We(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):y(o,t.length)},I:function(e,t,r){var n=Se(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):y(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):S.d(e,t)},D:function(e,t,r){var n=Ce(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):y(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var o=e.getUTCDay(),s=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return y(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var o=e.getUTCDay(),s=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return y(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return y(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours(),o=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n=e.getUTCHours(),o;switch(n===12?o=E.noon:n===0?o=E.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n=e.getUTCHours(),o;switch(n>=17?o=E.evening:n>=12?o=E.afternoon:n>=4?o=E.morning:o=E.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var n=e.getUTCHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return S.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):S.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):y(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):y(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):S.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):S.s(e,t)},S:function(e,t){return S.S(e,t)},X:function(e,t,r,n){var o=n._originalDate||e,s=o.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return Z(s);case"XXXX":case"XX":return W(s);case"XXXXX":case"XXX":default:return W(s,":")}},x:function(e,t,r,n){var o=n._originalDate||e,s=o.getTimezoneOffset();switch(t){case"x":return Z(s);case"xxxx":case"xx":return W(s);case"xxxxx":case"xxx":default:return W(s,":")}},O:function(e,t,r,n){var o=n._originalDate||e,s=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+K(s,":");case"OOOO":default:return"GMT"+W(s,":")}},z:function(e,t,r,n){var o=n._originalDate||e,s=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+K(s,":");case"zzzz":default:return"GMT"+W(s,":")}},t:function(e,t,r,n){var o=n._originalDate||e,s=Math.floor(o.getTime()/1e3);return y(s,t.length)},T:function(e,t,r,n){var o=n._originalDate||e,s=o.getTime();return y(s,t.length)}};function K(a,e){var t=a>0?"-":"+",r=Math.abs(a),n=Math.floor(r/60),o=r%60;if(o===0)return t+String(n);var s=e;return t+String(n)+s+y(o,2)}function Z(a,e){if(a%60===0){var t=a>0?"-":"+";return t+y(Math.abs(a)/60,2)}return W(a,e)}function W(a,e){var t=e||"",r=a>0?"-":"+",n=Math.abs(a),o=y(Math.floor(n/60),2),s=y(n%60,2);return r+o+t+s}var $=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},de=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Ee=function(e,t){var r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return $(e,t);var s;switch(n){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",$(n,t)).replace("{{time}}",de(o,t))},Ye={p:de,P:Ee},Ne=["D","DD"],He=["YY","YYYY"];function Ie(a){return Ne.indexOf(a)!==-1}function Fe(a){return He.indexOf(a)!==-1}function ee(a,e,t){if(a==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var qe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ze=function(e,t,r){var n,o=qe[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Q(a){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):a.defaultWidth,r=a.formats[t]||a.formats[a.defaultWidth];return r}}var je={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Re={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ge={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Be={date:Q({formats:je,defaultWidth:"full"}),time:Q({formats:Re,defaultWidth:"full"}),dateTime:Q({formats:Ge,defaultWidth:"full"})},Qe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Xe=function(e,t,r,n){return Qe[e]};function Y(a){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",n;if(r==="formatting"&&a.formattingValues){var o=a.defaultFormattingWidth||a.defaultWidth,s=t!=null&&t.width?String(t.width):o;n=a.formattingValues[s]||a.formattingValues[o]}else{var l=a.defaultWidth,c=t!=null&&t.width?String(t.width):a.defaultWidth;n=a.values[c]||a.values[l]}var f=a.argumentCallback?a.argumentCallback(e):e;return n[f]}}var Ae={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ve={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Je={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ke={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ze={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},$e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},et=function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},tt={ordinalNumber:et,era:Y({values:Ae,defaultWidth:"wide"}),quarter:Y({values:Ve,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Y({values:Je,defaultWidth:"wide"}),day:Y({values:Ke,defaultWidth:"wide"}),dayPeriod:Y({values:Ze,defaultWidth:"wide",formattingValues:$e,defaultFormattingWidth:"wide"})};function N(a){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,n=r&&a.matchPatterns[r]||a.matchPatterns[a.defaultMatchWidth],o=e.match(n);if(!o)return null;var s=o[0],l=r&&a.parsePatterns[r]||a.parsePatterns[a.defaultParseWidth],c=Array.isArray(l)?at(l,function(d){return d.test(s)}):rt(l,function(d){return d.test(s)}),f;f=a.valueCallback?a.valueCallback(c):c,f=t.valueCallback?t.valueCallback(f):f;var h=e.slice(s.length);return{value:f,rest:h}}}function rt(a,e){for(var t in a)if(a.hasOwnProperty(t)&&e(a[t]))return t}function at(a,e){for(var t=0;t<a.length;t++)if(e(a[t]))return t}function nt(a){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(a.matchPattern);if(!r)return null;var n=r[0],o=e.match(a.parsePattern);if(!o)return null;var s=a.valueCallback?a.valueCallback(o[0]):o[0];s=t.valueCallback?t.valueCallback(s):s;var l=e.slice(n.length);return{value:s,rest:l}}}var it=/^(\d+)(th|st|nd|rd)?/i,ot=/\d+/i,st={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},lt={any:[/^b/i,/^(a|c)/i]},ut={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ct={any:[/1/i,/2/i,/3/i,/4/i]},dt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ft={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ht={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},mt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},vt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},gt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},yt={ordinalNumber:nt({matchPattern:it,parsePattern:ot,valueCallback:function(e){return parseInt(e,10)}}),era:N({matchPatterns:st,defaultMatchWidth:"wide",parsePatterns:lt,defaultParseWidth:"any"}),quarter:N({matchPatterns:ut,defaultMatchWidth:"wide",parsePatterns:ct,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:N({matchPatterns:dt,defaultMatchWidth:"wide",parsePatterns:ft,defaultParseWidth:"any"}),day:N({matchPatterns:ht,defaultMatchWidth:"wide",parsePatterns:mt,defaultParseWidth:"any"}),dayPeriod:N({matchPatterns:vt,defaultMatchWidth:"any",parsePatterns:gt,defaultParseWidth:"any"})},wt={code:"en-US",formatDistance:ze,formatLong:Be,formatRelative:Xe,localize:tt,match:yt,options:{weekStartsOn:0,firstWeekContainsDate:1}},pt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_t=/^'([^]*?)'?$/,xt=/''/g,Tt=/[a-zA-Z]/;function kt(a,e,t){var r,n,o,s,l,c,f,h,d,m,u,g,w,x;k(2,arguments);var p=String(e),b=B(),v=(r=(n=void 0)!==null&&n!==void 0?n:b.locale)!==null&&r!==void 0?r:wt,O=U((o=(s=(l=(c=void 0)!==null&&c!==void 0?c:void 0)!==null&&l!==void 0?l:b.firstWeekContainsDate)!==null&&s!==void 0?s:(f=b.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=U((d=(m=(u=(g=void 0)!==null&&g!==void 0?g:void 0)!==null&&u!==void 0?u:b.weekStartsOn)!==null&&m!==void 0?m:(w=b.locale)===null||w===void 0||(x=w.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&d!==void 0?d:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!v.localize)throw new RangeError("locale must contain localize property");if(!v.formatLong)throw new RangeError("locale must contain formatLong property");var _=M(a);if(!Te(_))throw new RangeError("Invalid time value");var H=_e(_),I=ke(_,H),F={firstWeekContainsDate:O,weekStartsOn:P,locale:v,_originalDate:_},q=p.match(bt).map(function(T){var C=T[0];if(C==="p"||C==="P"){var D=Ye[C];return D(T,v.formatLong)}return T}).join("").match(pt).map(function(T){if(T==="''")return"'";var C=T[0];if(C==="'")return Ot(T);var D=Ue[C];if(D)return Fe(T)&&ee(T,e,String(a)),Ie(T)&&ee(T,e,String(a)),D(I,T,v.localize,F);if(C.match(Tt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return T}).join("");return q}function Ot(a){var e=a.match(_t);return e?e[1].replace(xt,"'"):a}const te=(n,o,s,...l)=>L(exports,[n,o,s,...l],function*(a,e,t,r={}){const c=new URL(a+"/v1"+e);r.params&&Object.keys(r.params).forEach(m=>c.searchParams.append(m,r.params[m]));const f={method:r.method||"GET",headers:z(z({"Content-Type":"application/json",Accept:"text/plain"},t?{"x-SessionId":t}:{}),r.headers),body:r.body},d=yield(yield fetch(c.toString(),f)).text();return JSON.parse(d)}),Ct={fetchLotteries:(a,e,t)=>L(exports,null,function*(){return yield te(a,"/wof/lotteries",e,{params:t!=null&&t.length?{filter:t.map(r=>`Types[]=${r}`).join(",")}:{filter:"Types[]=wheelOfFortune"}})}),fetchFullHistory:(a,e,t,r)=>L(exports,null,function*(){const n=u=>{const g=new URL(a+"/v1"+u);return r!=null&&r.length&&r.forEach(w=>g.searchParams.append("filter",`Types[]=${w}`)),g.toString()},o=u=>L(exports,null,function*(){return(yield fetch(n(u),{headers:z({"Content-Type":"application/json",Accept:"text/plain"},e?{"x-SessionId":e}:{})})).json()}),[s,l]=yield Promise.all([o("/wof/lotteryHistory"),o("/wof/lotteries")]),c=(l==null?void 0:l.items)||[],f=(s==null?void 0:s.items)||[],h=new Set(c.map(u=>u.program.id)),d=f.map(u=>u.programID).filter(u=>h.has(u));return d.length===0?[]:(yield Promise.all(d.map(u=>L(exports,null,function*(){var p,b,v;const g=yield te(a,`/wof/outcome/${u}`,e),w=c.find(O=>O.program.id===u);if(!((p=g==null?void 0:g.items)!=null&&p.length))return null;const x=g.items.map(O=>{var H,I,F,q,T,C,D,X;const P=O.draw.result.wheelOfFortunePartitionIndex,_=(I=(H=w==null?void 0:w.program)==null?void 0:H.wheelOfFortune)==null?void 0:I.partitions[P];return{prizeName:((F=_==null?void 0:_.name)==null?void 0:F[t])||((q=_==null?void 0:_.name)==null?void 0:q["*"]),prizeImage:((T=_==null?void 0:_.prizeImage)==null?void 0:T[t])||((C=_==null?void 0:_.prizeImage)==null?void 0:C["*"])||((D=_==null?void 0:_.image1)==null?void 0:D[t])||((X=_==null?void 0:_.image1)==null?void 0:X["*"]),state:O.draw.state==="fulfilled",date:kt(new Date(O.draw.time),"dd/MM/yyyy hh:mm:ss a")}});return{id:u,name:((b=w==null?void 0:w.program)==null?void 0:b.name[t])||((v=w==null?void 0:w.program)==null?void 0:v.name["*"])||"Unknown Game",outcomes:x}})))).filter(u=>u!==null)})},re="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%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.1724%204.72381C15.4708%205.02223%2015.4708%205.50607%2015.1724%205.80449L7.70071%2013.2762C7.40229%2013.5746%206.91846%2013.5746%206.62004%2013.2762L3.22381%209.87996C2.9254%209.58154%202.9254%209.09771%203.22381%208.79929C3.52223%208.50087%204.00607%208.50087%204.30449%208.79929L7.16038%2011.6552L14.0917%204.72381C14.3902%204.4254%2014.874%204.4254%2015.1724%204.72381Z'%20fill='%2358DB4A'/%3e%3c/svg%3e",ae="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%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.96967%203.96967C4.26256%203.67678%204.73744%203.67678%205.03033%203.96967L9%207.93934L12.9697%203.96967C13.2626%203.67678%2013.7374%203.67678%2014.0303%203.96967C14.3232%204.26256%2014.3232%204.73744%2014.0303%205.03033L10.0607%209L14.0303%2012.9697C14.3232%2013.2626%2014.3232%2013.7374%2014.0303%2014.0303C13.7374%2014.3232%2013.2626%2014.3232%2012.9697%2014.0303L9%2010.0607L5.03033%2014.0303C4.73744%2014.3232%204.26256%2014.3232%203.96967%2014.0303C3.67678%2013.7374%203.67678%2013.2626%203.96967%2012.9697L7.93934%209L3.96967%205.03033C3.67678%204.73744%203.67678%204.26256%203.96967%203.96967Z'%20fill='%23FF9B59'/%3e%3c/svg%3e";function Mt(a){i.append_styles(a,"svelte-1r6yeh4",':host{display:block;height:100%;flex-grow:1}.PrizeHistoryContent.svelte-1r6yeh4.svelte-1r6yeh4{width:100%;height:100%;display:flex;flex-direction:column;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif);margin:30px auto}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4{overflow-y:auto}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar{width:4px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-track,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-track{background:transparent}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb{background:var(--emw--color-gray-105, #1b2e31);border-radius:2px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb:hover,.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4::-webkit-scrollbar-thumb:hover{background:var(--emw--color-gray-290, #284044)}.HistoryList.svelte-1r6yeh4.svelte-1r6yeh4{flex-grow:1;display:flex;flex-direction:column;gap:24px;padding-right:10px;padding-bottom:50px}.HistoryItem.svelte-1r6yeh4.svelte-1r6yeh4{margin-bottom:40px;flex-shrink:0}.GroupName.svelte-1r6yeh4.svelte-1r6yeh4{color:var(--emw--color-white, #ffffff);font-size:var(--emw--font-size-medium, 16px);font-weight:700;line-height:18px;margin-bottom:16px}.OutcomesList.svelte-1r6yeh4.svelte-1r6yeh4{max-height:215px;display:flex;flex-direction:column}.OutcomeItem.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--emw--color-gray-transparency-20, rgba(114, 151, 135, 0.2));color:var(--emw--color-primary-variant, #a9ccbe);min-height:40px}.OutcomeItem.svelte-1r6yeh4 .OutcomeLeft.svelte-1r6yeh4{display:flex;align-items:center;gap:16px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo.svelte-1r6yeh4{display:flex;align-items:center;gap:8px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo .PrizeImg.svelte-1r6yeh4{height:20px}.OutcomeItem.svelte-1r6yeh4 .PrizeInfo .StatusIcon.svelte-1r6yeh4{height:16px}.OutcomeItem.svelte-1r6yeh4 .Date.svelte-1r6yeh4{font-size:var(--emw--font-size-small, 14px)}.HistoryLoader.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}.HistoryLoader.svelte-1r6yeh4 .Skeleton{border-radius:var(--emw--border-radius-small, 12px);--emw-skeleton-primary-color:var(--emw--color-primary, #d9d9d9);--emw-skeleton-secondary-color:var(--emw--color-secondary, #999999);--emw-skeleton-text-width:255px}.HistoryLoader.svelte-1r6yeh4 .GroupLoader.svelte-1r6yeh4{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}.HistoryLoader.svelte-1r6yeh4 .LoaderBody.svelte-1r6yeh4{display:flex;justify-content:space-between}.HistoryLoader.svelte-1r6yeh4 .LoaderLeft.svelte-1r6yeh4{display:flex}.HistoryLoader.svelte-1r6yeh4 .Dot.svelte-1r6yeh4 .Skeleton{border-radius:50%;margin-right:10px}.HistoryLoader.svelte-1r6yeh4 .Text.svelte-1r6yeh4 .Skeleton{margin-right:20px}.HistoryLoader.Mobile.svelte-1r6yeh4 .Skeleton{--emw-skeleton-text-width:235px}.EmptyState.svelte-1r6yeh4.svelte-1r6yeh4{display:flex;justify-content:center;align-items:center;height:200px;color:var(--emw--color-secondary-variant, #a9ccbe)}.Mobile.svelte-1r6yeh4 .GroupName.svelte-1r6yeh4{font-size:var(--emw--font-size-small, 14px)}.Mobile.svelte-1r6yeh4 .OutcomeItem.svelte-1r6yeh4{font-size:var(--emw--font-size-x-small, 12px);padding:0}.Mobile.svelte-1r6yeh4 .OutcomeItem .Date.svelte-1r6yeh4{font-size:11px}')}function ne(a,e,t){const r=a.slice();return r[21]=e[t],r}function ie(a,e,t){const r=a.slice();return r[24]=e[t],r[26]=t,r}function Pt(a,e,t){const r=a.slice();return r[16]=e[t],r}function St(a,e,t){const r=a.slice();return r[16]=e[t],r}function Dt(a){let e,t,r=a[3]("NoHistories")+"",n;return{c(){e=i.element("div"),t=i.element("p"),n=i.text(r),i.attr(e,"class","EmptyState svelte-1r6yeh4")},m(o,s){i.insert(o,e,s),i.append(e,t),i.append(t,n)},p(o,s){s&8&&r!==(r=o[3]("NoHistories")+"")&&i.set_data(n,r)},d(o){o&&i.detach(e)}}}function Lt(a){let e,t=i.ensure_array_like(a[2]),r=[];for(let n=0;n<t.length;n+=1)r[n]=se(ne(a,t,n));return{c(){for(let n=0;n<r.length;n+=1)r[n].c();e=i.empty()},m(n,o){for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(n,o);i.insert(n,e,o)},p(n,o){if(o&4){t=i.ensure_array_like(n[2]);let s;for(s=0;s<t.length;s+=1){const l=ne(n,t,s);r[s]?r[s].p(l,o):(r[s]=se(l),r[s].c(),r[s].m(e.parentNode,e))}for(;s<r.length;s+=1)r[s].d(1);r.length=t.length}},d(n){n&&i.detach(e),i.destroy_each(r,n)}}}function Wt(a){let e,t=i.ensure_array_like([1,2,3]),r=[];for(let n=0;n<3;n+=1)r[n]=Nt(Pt(a,t,n));return{c(){e=i.element("div");for(let n=0;n<3;n+=1)r[n].c();i.attr(e,"class","HistoryLoader svelte-1r6yeh4"),i.toggle_class(e,"Mobile",a[4])},m(n,o){i.insert(n,e,o);for(let s=0;s<3;s+=1)r[s]&&r[s].m(e,null)},p:i.noop,d(n){n&&i.detach(e),i.destroy_each(r,n)}}}function Ut(a){let e,t;return{c(){e=i.element("img"),i.src_url_equal(e.src,t=a[24].prizeImage)||i.attr(e,"src",t),i.attr(e,"alt","prize"),i.attr(e,"class","PrizeImg svelte-1r6yeh4")},m(r,n){i.insert(r,e,n)},p(r,n){n&4&&!i.src_url_equal(e.src,t=r[24].prizeImage)&&i.attr(e,"src",t)},d(r){r&&i.detach(e)}}}function Et(a){let e,t=a[24].prizeName+"",r;return{c(){e=i.element("span"),r=i.text(t)},m(n,o){i.insert(n,e,o),i.append(e,r)},p(n,o){o&4&&t!==(t=n[24].prizeName+"")&&i.set_data(r,t)},d(n){n&&i.detach(e)}}}function oe(a){let e,t,r,n,o,s,l,c,f,h,d,m=a[24].date+"",u,g;function w(b,v){if(b[24].prizeName)return Et;if(b[24].prizeImage)return Ut}let x=w(a),p=x&&x(a);return{c(){e=i.element("div"),t=i.element("div"),r=i.element("span"),r.textContent=`${a[26]+1}`,n=i.space(),o=i.element("div"),p&&p.c(),s=i.space(),l=i.element("img"),f=i.space(),h=i.element("div"),d=i.element("span"),u=i.text(m),g=i.space(),i.attr(r,"class","Index"),i.src_url_equal(l.src,c=a[24].state?re:ae)||i.attr(l,"src",c),i.attr(l,"alt","status"),i.attr(l,"class","StatusIcon svelte-1r6yeh4"),i.attr(o,"class","PrizeInfo svelte-1r6yeh4"),i.attr(t,"class","OutcomeLeft svelte-1r6yeh4"),i.attr(d,"class","Date svelte-1r6yeh4"),i.attr(h,"class","OutcomeRight"),i.attr(e,"class","OutcomeItem svelte-1r6yeh4")},m(b,v){i.insert(b,e,v),i.append(e,t),i.append(t,r),i.append(t,n),i.append(t,o),p&&p.m(o,null),i.append(o,s),i.append(o,l),i.append(e,f),i.append(e,h),i.append(h,d),i.append(d,u),i.append(e,g)},p(b,v){x===(x=w(b))&&p?p.p(b,v):(p&&p.d(1),p=x&&x(b),p&&(p.c(),p.m(o,s))),v&4&&!i.src_url_equal(l.src,c=b[24].state?re:ae)&&i.attr(l,"src",c),v&4&&m!==(m=b[24].date+"")&&i.set_data(u,m)},d(b){b&&i.detach(e),p&&p.d()}}}function se(a){let e,t,r=a[21].name+"",n,o,s,l,c,f=i.ensure_array_like(a[21].outcomes),h=[];for(let d=0;d<f.length;d+=1)h[d]=oe(ie(a,f,d));return{c(){e=i.element("div"),t=i.element("div"),n=i.text(r),o=i.space(),s=i.element("div");for(let d=0;d<h.length;d+=1)h[d].c();c=i.space(),i.attr(t,"class","GroupName svelte-1r6yeh4"),i.attr(s,"class","OutcomesList svelte-1r6yeh4"),i.attr(s,"style",l=a[21].outcomes.length<=5?"overflow: hidden;":""),i.attr(e,"class","HistoryItem svelte-1r6yeh4")},m(d,m){i.insert(d,e,m),i.append(e,t),i.append(t,n),i.append(e,o),i.append(e,s);for(let u=0;u<h.length;u+=1)h[u]&&h[u].m(s,null);i.append(e,c)},p(d,m){if(m&4&&r!==(r=d[21].name+"")&&i.set_data(n,r),m&4){f=i.ensure_array_like(d[21].outcomes);let u;for(u=0;u<f.length;u+=1){const g=ie(d,f,u);h[u]?h[u].p(g,m):(h[u]=oe(g),h[u].c(),h[u].m(s,null))}for(;u<h.length;u+=1)h[u].d(1);h.length=f.length}m&4&&l!==(l=d[21].outcomes.length<=5?"overflow: hidden;":"")&&i.attr(s,"style",l)},d(d){d&&i.detach(e),i.destroy_each(h,d)}}}function Yt(a){let e;return{c(){e=i.element("div"),e.innerHTML='<div class="LoaderLeft svelte-1r6yeh4"><ui-skeleton class="Dot svelte-1r6yeh4" structure="rectangle" width="16px" height="16px"></ui-skeleton> <ui-skeleton class="Text svelte-1r6yeh4" structure="text" height="16px"></ui-skeleton></div> <ui-skeleton class="Text svelte-1r6yeh4" structure="text" width="50px" height="16px"></ui-skeleton>',i.attr(e,"class","LoaderBody svelte-1r6yeh4")},m(t,r){i.insert(t,e,r)},p:i.noop,d(t){t&&i.detach(e)}}}function Nt(a){let e,t,r,n,o=i.ensure_array_like([1,2,3]),s=[];for(let l=0;l<3;l+=1)s[l]=Yt(St(a,o,l));return{c(){e=i.element("div"),t=i.element("ui-skeleton"),r=i.space();for(let l=0;l<3;l+=1)s[l].c();n=i.space(),i.set_custom_element_data(t,"structure","text"),i.set_custom_element_data(t,"height","16px"),i.attr(e,"class","GroupLoader svelte-1r6yeh4")},m(l,c){i.insert(l,e,c),i.append(e,t),i.append(e,r);for(let f=0;f<3;f+=1)s[f]&&s[f].m(e,null);i.append(e,n)},p:i.noop,d(l){l&&i.detach(e),i.destroy_each(s,l)}}}function Ht(a){let e,t,r;function n(l,c){return l[1]?Wt:l[2].length>0?Lt:Dt}let o=n(a),s=o(a);return{c(){e=i.element("div"),t=i.element("div"),s.c(),i.attr(t,"class","HistoryList svelte-1r6yeh4"),i.attr(e,"class","PrizeHistoryContent svelte-1r6yeh4"),i.toggle_class(e,"Mobile",a[4])},m(l,c){i.insert(l,e,c),i.append(e,t),s.m(t,null),a[13](e)},p(l,[c]){o===(o=n(l))&&s?s.p(l,c):(s.d(1),s=o(l),s&&(s.c(),s.m(t,null)))},i(l){l&&(r||i.add_render_callback(()=>{r=i.create_in_transition(e,i.fade,{duration:300}),r.start()}))},o:i.noop,d(l){l&&i.detach(e),s.d(),a[13](null)}}}let It=null;function Ft(a,e,t){let r;i.component_subscribe(a,i.$format,v=>t(3,r=v));let{endpoint:n=""}=e,{session:o=""}=e,{lang:s="en"}=e,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,{translationurl:f=""}=e,{mbsource:h=""}=e,{type:d="wheelOfFortune"}=e,m;const u=i.isMobile(window.navigator.userAgent);let g=!0,w=[];we();const x=()=>{fetch(f).then(O=>O.json()).then(O=>{Object.keys(O).forEach(P=>{le(P,O[P])})})},p=()=>L(this,null,function*(){if(!(!n||!o)){t(1,g=!0);try{t(2,w=yield Ct.fetchFullHistory(n,o,s,[d]))}catch(v){console.error("[PrizeEngineHistory] Fetch failed",v)}finally{t(1,g=!1)}}});i.onMount(()=>()=>{});function b(v){i.binding_callbacks[v?"unshift":"push"](()=>{m=v,t(0,m)})}return a.$$set=v=>{"endpoint"in v&&t(5,n=v.endpoint),"session"in v&&t(6,o=v.session),"lang"in v&&t(7,s=v.lang),"clientstyling"in v&&t(8,l=v.clientstyling),"clientstylingurl"in v&&t(9,c=v.clientstylingurl),"translationurl"in v&&t(10,f=v.translationurl),"mbsource"in v&&t(11,h=v.mbsource),"type"in v&&t(12,d=v.type)},a.$$.update=()=>{a.$$.dirty&128&&s&&ye(s),a.$$.dirty&1024&&f&&x(),a.$$.dirty&4192&&n&&o&&d&&p(),a.$$.dirty&257&&l&&m&&i.setClientStyling(m,l),a.$$.dirty&513&&c&&m&&i.setClientStylingURL(m,c),a.$$.dirty&2049&&h&&m&&i.setStreamStyling(m,`${h}.Style`,It)},[m,g,w,r,u,n,o,s,l,c,f,h,d,b]}class fe extends i.SvelteComponent{constructor(e){super(),i.init(this,e,Ft,Ht,i.safe_not_equal,{endpoint:5,session:6,lang:7,clientstyling:8,clientstylingurl:9,translationurl:10,mbsource:11,type:12},Mt)}get endpoint(){return this.$$.ctx[5]}set endpoint(e){this.$$set({endpoint:e}),i.flush()}get session(){return this.$$.ctx[6]}set session(e){this.$$set({session:e}),i.flush()}get lang(){return this.$$.ctx[7]}set lang(e){this.$$set({lang:e}),i.flush()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(e){this.$$set({clientstyling:e}),i.flush()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),i.flush()}get translationurl(){return this.$$.ctx[10]}set translationurl(e){this.$$set({translationurl:e}),i.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(e){this.$$set({mbsource:e}),i.flush()}get type(){return this.$$.ctx[12]}set type(e){this.$$set({type:e}),i.flush()}}customElements.define("prize-engine-history",i.create_custom_element(fe,{endpoint:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},type:{}},[],[],!0));exports.default=fe;
@@ -1 +1 @@
1
- "use strict";var H=Object.defineProperty;var T=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var z=(r,t,l)=>t in r?H(r,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[t]=l,E=(r,t)=>{for(var l in t||(t={}))P.call(t,l)&&z(r,l,t[l]);if(T)for(var l of T(t))V.call(t,l)&&z(r,l,t[l]);return r};var B=(r,t,l)=>new Promise((n,i)=>{var o=d=>{try{c(l.next(d))}catch(h){i(h)}},s=d=>{try{c(l.throw(d))}catch(h){i(h)}},c=d=>d.done?n(d.value):Promise.resolve(d.value).then(o,s);c((l=l.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PrizeEngineSuite-CB3at6bs.cjs");require("../stencil/ui-skeleton-BreIU6e5.cjs");const W={en:{Title:"Prize Games",RemainingTimes:"Remaining Times",NoContent:"No games available at the moment",Loading:"Loading games...",Error:"Failed to load games",WheelOfFortune:"Lucky Wheel",MysteryChest:"Mystery Chest",FlipCoin:"Flip Coin",Dice:"Dices"}};function G({withLocale:r,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(r))})}function N(r,t){e.addMessages(r,t)}function Y(r){e.$locale.set(r)}const R=()=>{G({withLocale:"en",translations:{}}),Object.keys(W).forEach(r=>{N(r,W[r])})},Z=n=>B(exports,[n],function*({endpoint:r,session:t,types:l}){const i=new URL(`${r}/v1/wof/lotteries`);l&&l.length>0&&l.forEach(s=>i.searchParams.append("filter",`Types[]=${s}`));const o=yield fetch(i.toString(),{method:"GET",headers:E({"Content-Type":"application/json",Accept:"text/plain"},t?{"x-SessionId":t}:{})});if(!o.ok)throw new Error(`Failed to fetch lotteries: ${o.statusText}`);return o.json()}),Q={lotteries:(r,t,l)=>B(exports,null,function*(){const n=yield Z({endpoint:r,session:t,types:l});return(n==null?void 0:n.items)||[]})},K="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAABCcAAAQnAEmzTo0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMVSURBVHgBbVTNThNRGD3fnSmYYNLizhVl4ZriC9AhcUFcWDYmbsQuiCsT0aioJJRogrJhacJC0MSwMsALMIUHsDQxYSeDCVspiWA7befz3Jm2AnGSm7k/3+85517Bf75F9fMOoikXjTzHkIO6OAgrnFcdNLaK8mjzso+cX5S0kk2h9ZHGeUNnOtY4MlzDRVjjP801DBpBG83xorwMur6mO3ml33MCqSg0r4h2Beo9kduDCtDYHDyUKc5lPAI+03z4CvTbFy3lLgSa1f2sC9dngWk6HjbQLjyTW+VOyb2qp2W6LGg95rRGu0EX2F7X2WwvkEG/z0oyHCesJNuHlF9SP2PPNA6hcbBVXeWeTQh7FgiiwRS344Sv9ehOhMami+aag7MZ/n3iMGLQrKZw4hloxUFTB3B2k7j4BD5HvPZa+O0NoL1BEsYitMdNC1qQOLP5VJLRWgunHtdVZssp+ivEbYhVDocwv2hGTEzQguMVpVSL+WExKeh9kxxK7a3ciDEpicdgraLGTant3zoEBHm30+NQF7O78mbHQI6ZKC/P9UjdmN7mgYM/pDxU0svew7QgXHgqEwvW6YOuUhoh2w6HDMJD6+PEo06iQvp3ACXl5p+4RJN9rXaDGBjLKiuUAIh6NCQfhcGKWEkzvSjZa93t97pbYFYC2ThwUd/heYGZM8wcOEiNFqVY69p+1RfHBDww7K9saZzT/XxH3ZkIMt+xGya4U8yYkViYFrNTf1WXY2ms6xx9lNqTPWPgrHFCEJ15G4RZfbY2wsL3BIaB9CfPgz7oKH33OEZctBmsxKsjUzxjDnfLLMp1Iq87QDtPx4plMSI2Z6R4RiaCJAlg23HQ5zFwlUlyV5D6Qck8YNJgUpY2Y4BTkCI3KHvN8n8c4qpnZYCeqhPwE2xangWccA/y7JgBvN4VKclwYBKD+A7143R5SbfHOhxq94qs6Ar33A3ECVFjB+OT8i5ImD73LfIZiXgNqKMsWeo+HZlEJ3XOwzTX9nkpU3fFe+eekQuBLtFfsHeOziNO/DaRYkqB/zU+bOXLPn8BG6xnv5+RMCQAAAAASUVORK5CYII=",q="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",X="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.1978%2013.2348C12.1978%209.60751%2015.1383%206.66699%2018.7656%206.66699C22.3929%206.66699%2025.3334%209.60751%2025.3334%2013.2348C25.3334%2016.8621%2022.3929%2019.8026%2018.7656%2019.8026C18.467%2019.8026%2018.1725%2019.7826%2017.8835%2019.7438C17.6825%2019.7168%2017.557%2019.7001%2017.4658%2019.6909C17.4218%2019.7326%2017.3626%2019.7916%2017.2673%2019.8869L12.5565%2024.5977C12.5457%2024.6085%2012.5344%2024.6198%2012.5229%2024.6315C12.4009%2024.7542%2012.2356%2024.9205%2012.0329%2025.0448C11.8576%2025.1522%2011.6665%2025.2313%2011.4666%2025.2793C11.2354%2025.3348%2011.001%2025.3341%2010.8279%2025.3335C10.8115%2025.3335%2010.7956%2025.3334%2010.7803%2025.3334L9.14719%2025.3334C8.91663%2025.3335%208.68571%2025.3335%208.48899%2025.3174C8.27114%2025.2996%208.00565%2025.2571%207.7365%2025.1199C7.36793%2024.9321%207.06826%2024.6325%206.88046%2024.2639C6.74332%2023.9948%206.70076%2023.7293%206.68297%2023.5114C6.66689%2023.3147%206.66693%2023.0838%206.66696%2022.8532L6.66696%2021.2201C6.66696%2021.2049%206.66691%2021.189%206.66686%2021.1725C6.66631%2020.9994%206.66557%2020.765%206.72109%2020.5338C6.76907%2020.3339%206.84822%2020.1428%206.95562%2019.9676C7.07986%2019.7648%207.24617%2019.5995%207.36894%2019.4776C7.3806%2019.466%207.39188%2019.4548%207.40268%2019.4439L12.1135%2014.7331C12.2088%2014.6378%2012.2678%2014.5786%2012.3095%2014.5346C12.3003%2014.4434%2012.2836%2014.3179%2012.2566%2014.1169C12.2178%2013.8279%2012.1978%2013.5334%2012.1978%2013.2348ZM18.7656%208.74104C16.2837%208.74104%2014.2718%2010.753%2014.2718%2013.2348C14.2718%2013.4408%2014.2856%2013.6429%2014.3122%2013.8406L14.3146%2013.8585C14.3394%2014.0432%2014.3618%2014.2097%2014.3749%2014.3451C14.3874%2014.4747%2014.4011%2014.6598%2014.3736%2014.8525C14.3367%2015.1105%2014.2715%2015.3033%2014.1443%2015.5308C14.0078%2015.7751%2013.7931%2015.9881%2013.629%2016.151C13.6121%2016.1678%2013.5958%2016.184%2013.5801%2016.1997L8.86926%2020.9105C8.82845%2020.9513%208.79718%2020.9826%208.77036%2021.0099C8.75929%2021.0212%208.74992%2021.0308%208.74194%2021.0392C8.7417%2021.0507%208.74151%2021.0641%208.74137%2021.0799C8.74102%2021.1182%208.74101%2021.1624%208.74101%2021.2201V22.8215C8.74101%2023.0268%208.74146%2023.1591%208.74514%2023.2553C8.84132%2023.2589%208.97362%2023.2594%209.17887%2023.2594H10.7803C10.838%2023.2594%2010.8822%2023.2594%2010.9205%2023.259C10.9363%2023.2589%2010.9497%2023.2587%2010.9613%2023.2585C10.9696%2023.2505%2010.9792%2023.2411%2010.9905%2023.2301C11.0178%2023.2032%2011.0491%2023.172%2011.0899%2023.1312L15.8007%2018.4203C15.8164%2018.4046%2015.8327%2018.3883%2015.8494%2018.3714C16.0123%2018.2073%2016.2253%2017.9926%2016.4696%2017.8561C16.6971%2017.7289%2016.8899%2017.6638%2017.1479%2017.6268C17.3406%2017.5993%2017.5257%2017.613%2017.6553%2017.6255C17.7907%2017.6386%2017.9572%2017.661%2018.1419%2017.6858L18.1598%2017.6882C18.3575%2017.7148%2018.5597%2017.7286%2018.7656%2017.7286C21.2474%2017.7286%2023.2594%2015.7167%2023.2594%2013.2348C23.2594%2010.753%2021.2474%208.74104%2018.7656%208.74104ZM17.7286%2013.2348C17.7286%2012.6621%2018.1929%2012.1978%2018.7656%2012.1978H18.7748C19.3475%2012.1978%2019.8118%2012.6621%2019.8118%2013.2348C19.8118%2013.8076%2019.3475%2014.2718%2018.7748%2014.2718H18.7656C18.1929%2014.2718%2017.7286%2013.8076%2017.7286%2013.2348Z'%20fill='url(%23paint0_linear_714_605)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_714_605'%20x1='6.66675'%20y1='16.0003'%20x2='25.3334'%20y2='16.0003'%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 J(r){e.append_styles(r,"svelte-ljc7r7",`:host{display:block;height:100%;flex-grow:1}.PrizeListContent.svelte-ljc7r7.svelte-ljc7r7{width:100%;height:100%;display:flex;flex-direction:column;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7{flex-grow:1;overflow-y:auto}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7::-webkit-scrollbar{width:4px}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7::-webkit-scrollbar-thumb{background:var(--emw--color-gray-105, #1b2e31);border-radius:2px}.LuckyWheelList.svelte-ljc7r7.svelte-ljc7r7{display:flex;flex-direction:column;gap:24px;padding:0;margin:0;list-style:none}.LuckyWheelListItem.svelte-ljc7r7.svelte-ljc7r7{width:100%}.ItemButton.svelte-ljc7r7.svelte-ljc7r7{padding:16px;border-radius:16px;border:1px solid var(--emw--color-teal-10, rgba(117, 255, 233, 0.1019607843));color:var(--emw--color-primary, #d3ffed);width:100%;height:110px;display:flex;flex-direction:column;justify-content:center;gap:8px;box-sizing:border-box;cursor:pointer;text-align:left;transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);background:var(--emw--color-teal-05, rgba(117, 255, 233, 0.0509803922));position:relative}.ItemButton.svelte-ljc7r7.svelte-ljc7r7:hover,.ItemButton.svelte-ljc7r7.svelte-ljc7r7:active{background:var(--emw--color-teal-08, rgba(117, 255, 233, 0.0784313725));border:1px solid transparent;background-image:linear-gradient(var(--emw--color-background, #213841), var(--emw--color-background, #213841)), linear-gradient(90deg, var(--emw--color-teal, #75ffe9) 0%, var(--emw--color-green, #b2ff6d) 100%);background-origin:border-box;background-clip:padding-box, border-box}.ItemButton.svelte-ljc7r7:hover .IconButton.Chevron.svelte-ljc7r7,.ItemButton.svelte-ljc7r7:active .IconButton.Chevron.svelte-ljc7r7{background-color:var(--emw--color-green, #b2ff6d);background-image: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="M9 18L15 12L9 6" stroke="%230C1A1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');border-radius:50%}.ItemTitleRow.svelte-ljc7r7.svelte-ljc7r7{display:flex;justify-content:space-between;align-items:center;width:100%}.ItemTitle.svelte-ljc7r7.svelte-ljc7r7{font-weight:700;font-size:var(--emw--font-size-medium-plus, 18px);background:linear-gradient(90deg, var(--emw--color-teal, #75ffe9) 0%, var(--emw--color-green, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ItemDetails.svelte-ljc7r7.svelte-ljc7r7{display:flex;gap:12px;align-items:center}.ItemKeys.svelte-ljc7r7.svelte-ljc7r7,.ItemValidity.svelte-ljc7r7.svelte-ljc7r7{display:flex;gap:4px;align-items:center;font-size:14px;font-weight:400;color:var(--emw--color-secondary-variant, #729787)}.ItemKeys.svelte-ljc7r7 span.svelte-ljc7r7:last-child,.ItemValidity.svelte-ljc7r7 span.svelte-ljc7r7:last-child{color:var(--emw--color-primary, #d3ffed)}.SmallIcon.svelte-ljc7r7.svelte-ljc7r7{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:var(--emw--color-secondary-variant, #729787);flex-shrink:0}.IconButton.Chevron.svelte-ljc7r7.svelte-ljc7r7{width:30px;height:30px;border:0;cursor:pointer;background-color:transparent;background:center/18px 18px 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="M9 18L15 12L9 6" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat}.LoaderWrap.svelte-ljc7r7.svelte-ljc7r7{display:flex;flex-direction:column;width:100%}.LoaderWrap.svelte-ljc7r7 .Skeleton{border-radius:var(--emw--border-radius-small, 12px);--emw-skeleton-primary-color:var(--emw--color-primary, #d9d9d9);--emw-skeleton-secondary-color:var(--emw--color-secondary, #999999)}.LoaderWrap.svelte-ljc7r7 .WheelLoader.svelte-ljc7r7{border-radius:var(--emw--border-radius-large, 28px);display:flex;padding:45px 48px;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);justify-content:space-between;line-height:35px;overflow:hidden;margin-bottom:24px}.LoaderWrap.Mobile.svelte-ljc7r7 .WheelLoader.svelte-ljc7r7{border-radius:16px;padding:25px 20px;line-height:15px}.LoaderWrap.Mobile.svelte-ljc7r7 .Skeleton.SkeletonText{width:135px}.EmptyState.svelte-ljc7r7.svelte-ljc7r7{width:100%;display:flex;flex-direction:column;color:var(--emw--color-secondary-variant, #a9ccbe);font-size:var(--emw--font-size-medium, 16px);align-items:center;justify-content:center;height:200px}.Mobile.svelte-ljc7r7 .ItemButton.svelte-ljc7r7{height:72px;padding:16px 20px;border-radius:16px}.Mobile.svelte-ljc7r7 .ItemButton .ItemTitle.svelte-ljc7r7{font-size:var(--emw--font-size-medium, 16px)}.Mobile.svelte-ljc7r7 .ItemButton .ItemDetails.svelte-ljc7r7{font-size:var(--emw--font-size-x-small, 12px)}.Mobile.svelte-ljc7r7 .IconButton.Chevron.svelte-ljc7r7{width:24px;height:24px;background-size:14px 14px}`)}function D(r,t,l){const n=r.slice();return n[23]=t[l],n}function $(r,t,l){const n=r.slice();return n[20]=t[l],n}function ee(r){let t,l,n=r[5]("NoContent")+"",i;return{c(){t=e.element("div"),l=e.element("p"),i=e.text(n),e.attr(t,"class","EmptyState svelte-ljc7r7")},m(o,s){e.insert(o,t,s),e.append(t,l),e.append(l,i)},p(o,s){s&32&&n!==(n=o[5]("NoContent")+"")&&e.set_data(i,n)},d(o){o&&e.detach(t)}}}function te(r){let t,l=e.ensure_array_like(r[3]),n=[];for(let i=0;i<l.length;i+=1)n[i]=U(D(r,l,i));return{c(){t=e.element("ul");for(let i=0;i<n.length;i+=1)n[i].c();e.attr(t,"class","LuckyWheelList svelte-ljc7r7")},m(i,o){e.insert(i,t,o);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(t,null)},p(i,o){if(o&409){l=e.ensure_array_like(i[3]);let s;for(s=0;s<l.length;s+=1){const c=D(i,l,s);n[s]?n[s].p(c,o):(n[s]=U(c),n[s].c(),n[s].m(t,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=l.length}},d(i){i&&e.detach(t),e.destroy_each(n,i)}}}function le(r){let t,l=e.ensure_array_like([1,2,3,4,5]),n=[];for(let i=0;i<5;i+=1)n[i]=re($(r,l,i));return{c(){t=e.element("div");for(let i=0;i<5;i+=1)n[i].c();e.attr(t,"class","LoaderWrap svelte-ljc7r7"),e.toggle_class(t,"Mobile",r[6])},m(i,o){e.insert(i,t,o);for(let s=0;s<5;s+=1)n[s]&&n[s].m(t,null)},p:e.noop,d(i){i&&e.detach(t),e.destroy_each(n,i)}}}function F(r){let t,l,n,i,o=r[7](r[23].current.expiryTime)+"",s;return{c(){t=e.element("div"),l=e.element("span"),l.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="14" r="7" stroke="currentColor" stroke-width="1.5"></circle><path d="M12 11V14L14 16" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 4V7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9 4H15" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17 7L18 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7 7L6 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',n=e.space(),i=e.element("span"),s=e.text(o),e.attr(l,"class","SmallIcon Timer svelte-ljc7r7"),e.attr(i,"class","svelte-ljc7r7"),e.attr(t,"class","ItemValidity svelte-ljc7r7")},m(c,d){e.insert(c,t,d),e.append(t,l),e.append(t,n),e.append(t,i),e.append(i,s)},p(c,d){d&8&&o!==(o=c[7](c[23].current.expiryTime)+"")&&e.set_data(s,o)},d(c){c&&e.detach(t)}}}function U(r){var v,w;let t,l,n,i,o=(r[23].program.name[r[0]]||r[23].program.name["*"]||"Unknown Game")+"",s,c,d,h,g,f,p,m,_,b,k=(((v=r[23].current)==null?void 0:v.remainingTimes)||0)+"",x,L,A,j,I,u=((w=r[23].current)==null?void 0:w.expiryTime)&&F(r);function a(){return r[16](r[23])}return{c(){t=e.element("li"),l=e.element("button"),n=e.element("div"),i=e.element("span"),s=e.text(o),c=e.space(),d=e.element("span"),h=e.space(),g=e.element("div"),f=e.element("div"),p=e.element("img"),_=e.space(),b=e.element("span"),x=e.text(k),L=e.space(),u&&u.c(),A=e.space(),e.attr(i,"class","ItemTitle svelte-ljc7r7"),e.attr(d,"class","IconButton Chevron svelte-ljc7r7"),e.attr(n,"class","ItemTitleRow svelte-ljc7r7"),e.src_url_equal(p.src,m=r[4])||e.attr(p,"src",m),e.attr(p,"alt",""),e.attr(b,"class","svelte-ljc7r7"),e.attr(f,"class","ItemKeys svelte-ljc7r7"),e.attr(g,"class","ItemDetails svelte-ljc7r7"),e.attr(l,"type","button"),e.attr(l,"class","ItemButton svelte-ljc7r7"),e.attr(t,"class","LuckyWheelListItem svelte-ljc7r7")},m(C,y){e.insert(C,t,y),e.append(t,l),e.append(l,n),e.append(n,i),e.append(i,s),e.append(n,c),e.append(n,d),e.append(l,h),e.append(l,g),e.append(g,f),e.append(f,p),e.append(f,_),e.append(f,b),e.append(b,x),e.append(g,L),u&&u.m(g,null),e.append(t,A),j||(I=e.listen(l,"click",a),j=!0)},p(C,y){var M,S;r=C,y&9&&o!==(o=(r[23].program.name[r[0]]||r[23].program.name["*"]||"Unknown Game")+"")&&e.set_data(s,o),y&16&&!e.src_url_equal(p.src,m=r[4])&&e.attr(p,"src",m),y&8&&k!==(k=(((M=r[23].current)==null?void 0:M.remainingTimes)||0)+"")&&e.set_data(x,k),(S=r[23].current)!=null&&S.expiryTime?u?u.p(r,y):(u=F(r),u.c(),u.m(g,null)):u&&(u.d(1),u=null)},d(C){C&&e.detach(t),u&&u.d(),j=!1,I()}}}function re(r){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="text" height="16px"></ui-skeleton> <ui-skeleton structure="rectangle" width="50px" height="16px"></ui-skeleton> ',e.attr(t,"class","WheelLoader svelte-ljc7r7")},m(l,n){e.insert(l,t,n)},p:e.noop,d(l){l&&e.detach(t)}}}function ne(r){let t,l,n;function i(c,d){return c[2]?le:c[3].length>0?te:ee}let o=i(r),s=o(r);return{c(){t=e.element("div"),l=e.element("div"),s.c(),e.attr(l,"class","ListScrollArea svelte-ljc7r7"),e.attr(t,"class","PrizeListContent svelte-ljc7r7"),e.toggle_class(t,"Mobile",r[6])},m(c,d){e.insert(c,t,d),e.append(t,l),s.m(l,null),r[17](t)},p(c,[d]){o===(o=i(c))&&s?s.p(c,d):(s.d(1),s=o(c),s&&(s.c(),s.m(l,null)))},i(c){c&&(n||e.add_render_callback(()=>{n=e.create_in_transition(t,e.fade,{duration:300}),n.start()}))},o:e.noop,d(c){c&&e.detach(t),s.d(),r[17](null)}}}let ie=null;function se(r,t,l){let n,i;e.component_subscribe(r,e.$format,a=>l(5,i=a));let{endpoint:o=""}=t,{session:s=""}=t,{lang:c="en"}=t,{clientstyling:d=""}=t,{clientstylingurl:h=""}=t,{translationurl:g=""}=t,{mbsource:f=""}=t,{type:p="wheelOfFortune"}=t,m;const _=e.isMobile(window.navigator.userAgent);let b=!0,k=[];R();const x=()=>{fetch(g).then(v=>v.json()).then(v=>{Object.keys(v).forEach(w=>{N(w,v[w])})})},L=a=>{if(!a)return"";const v=new Date(a).getTime(),w=Date.now(),C=v-w;if(C<=0)return"";const y=Math.floor(C/(1e3*60*60*24)),M=Math.floor(C%(1e3*60*60*24)/(1e3*60*60)),S=Math.floor(C%(1e3*60*60)/(1e3*60));return`${y.toString().padStart(2,"0")}d:${M.toString().padStart(2,"0")}h:${S.toString().padStart(2,"0")}m`},A=()=>B(this,null,function*(){if(!(!o||!s)){l(2,b=!0);try{const a=yield Q.lotteries(o,s,[p]);window.postMessage({type:"PrizeProgramsLoaded",data:a},"*"),l(3,k=a.filter(v=>{var w;return(Number((w=v.current)==null?void 0:w.remainingTimes)||0)>0}))}catch(a){console.error("[PrizeEngineList] Fetch failed",a)}finally{l(2,b=!1)}}}),j=a=>{window.postMessage({type:"OpenPrizeGame",data:a},"*")};e.onMount(()=>()=>{});const I=a=>j(a);function u(a){e.binding_callbacks[a?"unshift":"push"](()=>{m=a,l(1,m)})}return r.$$set=a=>{"endpoint"in a&&l(9,o=a.endpoint),"session"in a&&l(10,s=a.session),"lang"in a&&l(0,c=a.lang),"clientstyling"in a&&l(11,d=a.clientstyling),"clientstylingurl"in a&&l(12,h=a.clientstylingurl),"translationurl"in a&&l(13,g=a.translationurl),"mbsource"in a&&l(14,f=a.mbsource),"type"in a&&l(15,p=a.type)},r.$$.update=()=>{r.$$.dirty&1&&c&&Y(c),r.$$.dirty&8192&&g&&x(),r.$$.dirty&32768&&l(4,n=p==="flipCoin"?q:p==="mysteryChest"?X:K),r.$$.dirty&34304&&o&&s&&p&&A(),r.$$.dirty&2050&&d&&m&&e.setClientStyling(m,d),r.$$.dirty&4098&&h&&m&&e.setClientStylingURL(m,h),r.$$.dirty&16386&&f&&m&&e.setStreamStyling(m,`${f}.Style`,ie)},[c,m,b,k,n,i,_,L,j,o,s,d,h,g,f,p,I,u]}class O extends e.SvelteComponent{constructor(t){super(),e.init(this,t,se,ne,e.safe_not_equal,{endpoint:9,session:10,lang:0,clientstyling:11,clientstylingurl:12,translationurl:13,mbsource:14,type:15},J)}get endpoint(){return this.$$.ctx[9]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[10]}set session(t){this.$$set({session:t}),e.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get type(){return this.$$.ctx[15]}set type(t){this.$$set({type:t}),e.flush()}}customElements.define("prize-engine-list",e.create_custom_element(O,{endpoint:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},type:{}},[],[],!0));exports.default=O;
1
+ "use strict";var H=Object.defineProperty;var T=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var z=(r,t,l)=>t in r?H(r,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[t]=l,E=(r,t)=>{for(var l in t||(t={}))P.call(t,l)&&z(r,l,t[l]);if(T)for(var l of T(t))V.call(t,l)&&z(r,l,t[l]);return r};var B=(r,t,l)=>new Promise((n,i)=>{var o=d=>{try{c(l.next(d))}catch(h){i(h)}},s=d=>{try{c(l.throw(d))}catch(h){i(h)}},c=d=>d.done?n(d.value):Promise.resolve(d.value).then(o,s);c((l=l.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PrizeEngineSuite-Bo4ochEx.cjs");require("../stencil/ui-skeleton-aZT0Suei.cjs");const W={en:{Title:"Prize Games",RemainingTimes:"Remaining Times",NoContent:"No games available at the moment",Loading:"Loading games...",Error:"Failed to load games",WheelOfFortune:"Lucky Wheel",MysteryChest:"Mystery Chest",FlipCoin:"Flip Coin",Dice:"Dices"}};function G({withLocale:r,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(r))})}function N(r,t){e.addMessages(r,t)}function Y(r){e.$locale.set(r)}const R=()=>{G({withLocale:"en",translations:{}}),Object.keys(W).forEach(r=>{N(r,W[r])})},Z=n=>B(exports,[n],function*({endpoint:r,session:t,types:l}){const i=new URL(`${r}/v1/wof/lotteries`);l&&l.length>0&&l.forEach(s=>i.searchParams.append("filter",`Types[]=${s}`));const o=yield fetch(i.toString(),{method:"GET",headers:E({"Content-Type":"application/json",Accept:"text/plain"},t?{"x-SessionId":t}:{})});if(!o.ok)throw new Error(`Failed to fetch lotteries: ${o.statusText}`);return o.json()}),Q={lotteries:(r,t,l)=>B(exports,null,function*(){const n=yield Z({endpoint:r,session:t,types:l});return(n==null?void 0:n.items)||[]})},K="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAABCcAAAQnAEmzTo0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMVSURBVHgBbVTNThNRGD3fnSmYYNLizhVl4ZriC9AhcUFcWDYmbsQuiCsT0aioJJRogrJhacJC0MSwMsALMIUHsDQxYSeDCVspiWA7befz3Jm2AnGSm7k/3+85517Bf75F9fMOoikXjTzHkIO6OAgrnFcdNLaK8mjzso+cX5S0kk2h9ZHGeUNnOtY4MlzDRVjjP801DBpBG83xorwMur6mO3ml33MCqSg0r4h2Beo9kduDCtDYHDyUKc5lPAI+03z4CvTbFy3lLgSa1f2sC9dngWk6HjbQLjyTW+VOyb2qp2W6LGg95rRGu0EX2F7X2WwvkEG/z0oyHCesJNuHlF9SP2PPNA6hcbBVXeWeTQh7FgiiwRS344Sv9ehOhMami+aag7MZ/n3iMGLQrKZw4hloxUFTB3B2k7j4BD5HvPZa+O0NoL1BEsYitMdNC1qQOLP5VJLRWgunHtdVZssp+ivEbYhVDocwv2hGTEzQguMVpVSL+WExKeh9kxxK7a3ciDEpicdgraLGTant3zoEBHm30+NQF7O78mbHQI6ZKC/P9UjdmN7mgYM/pDxU0svew7QgXHgqEwvW6YOuUhoh2w6HDMJD6+PEo06iQvp3ACXl5p+4RJN9rXaDGBjLKiuUAIh6NCQfhcGKWEkzvSjZa93t97pbYFYC2ThwUd/heYGZM8wcOEiNFqVY69p+1RfHBDww7K9saZzT/XxH3ZkIMt+xGya4U8yYkViYFrNTf1WXY2ms6xx9lNqTPWPgrHFCEJ15G4RZfbY2wsL3BIaB9CfPgz7oKH33OEZctBmsxKsjUzxjDnfLLMp1Iq87QDtPx4plMSI2Z6R4RiaCJAlg23HQ5zFwlUlyV5D6Qck8YNJgUpY2Y4BTkCI3KHvN8n8c4qpnZYCeqhPwE2xangWccA/y7JgBvN4VKclwYBKD+A7143R5SbfHOhxq94qs6Ar33A3ECVFjB+OT8i5ImD73LfIZiXgNqKMsWeo+HZlEJ3XOwzTX9nkpU3fFe+eekQuBLtFfsHeOziNO/DaRYkqB/zU+bOXLPn8BG6xnv5+RMCQAAAAASUVORK5CYII=",q="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",X="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.1978%2013.2348C12.1978%209.60751%2015.1383%206.66699%2018.7656%206.66699C22.3929%206.66699%2025.3334%209.60751%2025.3334%2013.2348C25.3334%2016.8621%2022.3929%2019.8026%2018.7656%2019.8026C18.467%2019.8026%2018.1725%2019.7826%2017.8835%2019.7438C17.6825%2019.7168%2017.557%2019.7001%2017.4658%2019.6909C17.4218%2019.7326%2017.3626%2019.7916%2017.2673%2019.8869L12.5565%2024.5977C12.5457%2024.6085%2012.5344%2024.6198%2012.5229%2024.6315C12.4009%2024.7542%2012.2356%2024.9205%2012.0329%2025.0448C11.8576%2025.1522%2011.6665%2025.2313%2011.4666%2025.2793C11.2354%2025.3348%2011.001%2025.3341%2010.8279%2025.3335C10.8115%2025.3335%2010.7956%2025.3334%2010.7803%2025.3334L9.14719%2025.3334C8.91663%2025.3335%208.68571%2025.3335%208.48899%2025.3174C8.27114%2025.2996%208.00565%2025.2571%207.7365%2025.1199C7.36793%2024.9321%207.06826%2024.6325%206.88046%2024.2639C6.74332%2023.9948%206.70076%2023.7293%206.68297%2023.5114C6.66689%2023.3147%206.66693%2023.0838%206.66696%2022.8532L6.66696%2021.2201C6.66696%2021.2049%206.66691%2021.189%206.66686%2021.1725C6.66631%2020.9994%206.66557%2020.765%206.72109%2020.5338C6.76907%2020.3339%206.84822%2020.1428%206.95562%2019.9676C7.07986%2019.7648%207.24617%2019.5995%207.36894%2019.4776C7.3806%2019.466%207.39188%2019.4548%207.40268%2019.4439L12.1135%2014.7331C12.2088%2014.6378%2012.2678%2014.5786%2012.3095%2014.5346C12.3003%2014.4434%2012.2836%2014.3179%2012.2566%2014.1169C12.2178%2013.8279%2012.1978%2013.5334%2012.1978%2013.2348ZM18.7656%208.74104C16.2837%208.74104%2014.2718%2010.753%2014.2718%2013.2348C14.2718%2013.4408%2014.2856%2013.6429%2014.3122%2013.8406L14.3146%2013.8585C14.3394%2014.0432%2014.3618%2014.2097%2014.3749%2014.3451C14.3874%2014.4747%2014.4011%2014.6598%2014.3736%2014.8525C14.3367%2015.1105%2014.2715%2015.3033%2014.1443%2015.5308C14.0078%2015.7751%2013.7931%2015.9881%2013.629%2016.151C13.6121%2016.1678%2013.5958%2016.184%2013.5801%2016.1997L8.86926%2020.9105C8.82845%2020.9513%208.79718%2020.9826%208.77036%2021.0099C8.75929%2021.0212%208.74992%2021.0308%208.74194%2021.0392C8.7417%2021.0507%208.74151%2021.0641%208.74137%2021.0799C8.74102%2021.1182%208.74101%2021.1624%208.74101%2021.2201V22.8215C8.74101%2023.0268%208.74146%2023.1591%208.74514%2023.2553C8.84132%2023.2589%208.97362%2023.2594%209.17887%2023.2594H10.7803C10.838%2023.2594%2010.8822%2023.2594%2010.9205%2023.259C10.9363%2023.2589%2010.9497%2023.2587%2010.9613%2023.2585C10.9696%2023.2505%2010.9792%2023.2411%2010.9905%2023.2301C11.0178%2023.2032%2011.0491%2023.172%2011.0899%2023.1312L15.8007%2018.4203C15.8164%2018.4046%2015.8327%2018.3883%2015.8494%2018.3714C16.0123%2018.2073%2016.2253%2017.9926%2016.4696%2017.8561C16.6971%2017.7289%2016.8899%2017.6638%2017.1479%2017.6268C17.3406%2017.5993%2017.5257%2017.613%2017.6553%2017.6255C17.7907%2017.6386%2017.9572%2017.661%2018.1419%2017.6858L18.1598%2017.6882C18.3575%2017.7148%2018.5597%2017.7286%2018.7656%2017.7286C21.2474%2017.7286%2023.2594%2015.7167%2023.2594%2013.2348C23.2594%2010.753%2021.2474%208.74104%2018.7656%208.74104ZM17.7286%2013.2348C17.7286%2012.6621%2018.1929%2012.1978%2018.7656%2012.1978H18.7748C19.3475%2012.1978%2019.8118%2012.6621%2019.8118%2013.2348C19.8118%2013.8076%2019.3475%2014.2718%2018.7748%2014.2718H18.7656C18.1929%2014.2718%2017.7286%2013.8076%2017.7286%2013.2348Z'%20fill='url(%23paint0_linear_714_605)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_714_605'%20x1='6.66675'%20y1='16.0003'%20x2='25.3334'%20y2='16.0003'%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 J(r){e.append_styles(r,"svelte-ljc7r7",`:host{display:block;height:100%;flex-grow:1}.PrizeListContent.svelte-ljc7r7.svelte-ljc7r7{width:100%;height:100%;display:flex;flex-direction:column;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7{flex-grow:1;overflow-y:auto}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7::-webkit-scrollbar{width:4px}.ListScrollArea.svelte-ljc7r7.svelte-ljc7r7::-webkit-scrollbar-thumb{background:var(--emw--color-gray-105, #1b2e31);border-radius:2px}.LuckyWheelList.svelte-ljc7r7.svelte-ljc7r7{display:flex;flex-direction:column;gap:24px;padding:0;margin:0;list-style:none}.LuckyWheelListItem.svelte-ljc7r7.svelte-ljc7r7{width:100%}.ItemButton.svelte-ljc7r7.svelte-ljc7r7{padding:16px;border-radius:16px;border:1px solid var(--emw--color-teal-10, rgba(117, 255, 233, 0.1019607843));color:var(--emw--color-primary, #d3ffed);width:100%;height:110px;display:flex;flex-direction:column;justify-content:center;gap:8px;box-sizing:border-box;cursor:pointer;text-align:left;transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);background:var(--emw--color-teal-05, rgba(117, 255, 233, 0.0509803922));position:relative}.ItemButton.svelte-ljc7r7.svelte-ljc7r7:hover,.ItemButton.svelte-ljc7r7.svelte-ljc7r7:active{background:var(--emw--color-teal-08, rgba(117, 255, 233, 0.0784313725));border:1px solid transparent;background-image:linear-gradient(var(--emw--color-background, #213841), var(--emw--color-background, #213841)), linear-gradient(90deg, var(--emw--color-teal, #75ffe9) 0%, var(--emw--color-green, #b2ff6d) 100%);background-origin:border-box;background-clip:padding-box, border-box}.ItemButton.svelte-ljc7r7:hover .IconButton.Chevron.svelte-ljc7r7,.ItemButton.svelte-ljc7r7:active .IconButton.Chevron.svelte-ljc7r7{background-color:var(--emw--color-green, #b2ff6d);background-image: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="M9 18L15 12L9 6" stroke="%230C1A1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');border-radius:50%}.ItemTitleRow.svelte-ljc7r7.svelte-ljc7r7{display:flex;justify-content:space-between;align-items:center;width:100%}.ItemTitle.svelte-ljc7r7.svelte-ljc7r7{font-weight:700;font-size:var(--emw--font-size-medium-plus, 18px);background:linear-gradient(90deg, var(--emw--color-teal, #75ffe9) 0%, var(--emw--color-green, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ItemDetails.svelte-ljc7r7.svelte-ljc7r7{display:flex;gap:12px;align-items:center}.ItemKeys.svelte-ljc7r7.svelte-ljc7r7,.ItemValidity.svelte-ljc7r7.svelte-ljc7r7{display:flex;gap:4px;align-items:center;font-size:14px;font-weight:400;color:var(--emw--color-secondary-variant, #729787)}.ItemKeys.svelte-ljc7r7 span.svelte-ljc7r7:last-child,.ItemValidity.svelte-ljc7r7 span.svelte-ljc7r7:last-child{color:var(--emw--color-primary, #d3ffed)}.SmallIcon.svelte-ljc7r7.svelte-ljc7r7{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:var(--emw--color-secondary-variant, #729787);flex-shrink:0}.IconButton.Chevron.svelte-ljc7r7.svelte-ljc7r7{width:30px;height:30px;border:0;cursor:pointer;background-color:transparent;background:center/18px 18px 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="M9 18L15 12L9 6" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat}.LoaderWrap.svelte-ljc7r7.svelte-ljc7r7{display:flex;flex-direction:column;width:100%}.LoaderWrap.svelte-ljc7r7 .Skeleton{border-radius:var(--emw--border-radius-small, 12px);--emw-skeleton-primary-color:var(--emw--color-primary, #d9d9d9);--emw-skeleton-secondary-color:var(--emw--color-secondary, #999999)}.LoaderWrap.svelte-ljc7r7 .WheelLoader.svelte-ljc7r7{border-radius:var(--emw--border-radius-large, 28px);display:flex;padding:45px 48px;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);justify-content:space-between;line-height:35px;overflow:hidden;margin-bottom:24px}.LoaderWrap.Mobile.svelte-ljc7r7 .WheelLoader.svelte-ljc7r7{border-radius:16px;padding:25px 20px;line-height:15px}.LoaderWrap.Mobile.svelte-ljc7r7 .Skeleton.SkeletonText{width:135px}.EmptyState.svelte-ljc7r7.svelte-ljc7r7{width:100%;display:flex;flex-direction:column;color:var(--emw--color-secondary-variant, #a9ccbe);font-size:var(--emw--font-size-medium, 16px);align-items:center;justify-content:center;height:200px}.Mobile.svelte-ljc7r7 .ItemButton.svelte-ljc7r7{height:72px;padding:16px 20px;border-radius:16px}.Mobile.svelte-ljc7r7 .ItemButton .ItemTitle.svelte-ljc7r7{font-size:var(--emw--font-size-medium, 16px)}.Mobile.svelte-ljc7r7 .ItemButton .ItemDetails.svelte-ljc7r7{font-size:var(--emw--font-size-x-small, 12px)}.Mobile.svelte-ljc7r7 .IconButton.Chevron.svelte-ljc7r7{width:24px;height:24px;background-size:14px 14px}`)}function D(r,t,l){const n=r.slice();return n[23]=t[l],n}function $(r,t,l){const n=r.slice();return n[20]=t[l],n}function ee(r){let t,l,n=r[5]("NoContent")+"",i;return{c(){t=e.element("div"),l=e.element("p"),i=e.text(n),e.attr(t,"class","EmptyState svelte-ljc7r7")},m(o,s){e.insert(o,t,s),e.append(t,l),e.append(l,i)},p(o,s){s&32&&n!==(n=o[5]("NoContent")+"")&&e.set_data(i,n)},d(o){o&&e.detach(t)}}}function te(r){let t,l=e.ensure_array_like(r[3]),n=[];for(let i=0;i<l.length;i+=1)n[i]=U(D(r,l,i));return{c(){t=e.element("ul");for(let i=0;i<n.length;i+=1)n[i].c();e.attr(t,"class","LuckyWheelList svelte-ljc7r7")},m(i,o){e.insert(i,t,o);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(t,null)},p(i,o){if(o&409){l=e.ensure_array_like(i[3]);let s;for(s=0;s<l.length;s+=1){const c=D(i,l,s);n[s]?n[s].p(c,o):(n[s]=U(c),n[s].c(),n[s].m(t,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=l.length}},d(i){i&&e.detach(t),e.destroy_each(n,i)}}}function le(r){let t,l=e.ensure_array_like([1,2,3,4,5]),n=[];for(let i=0;i<5;i+=1)n[i]=re($(r,l,i));return{c(){t=e.element("div");for(let i=0;i<5;i+=1)n[i].c();e.attr(t,"class","LoaderWrap svelte-ljc7r7"),e.toggle_class(t,"Mobile",r[6])},m(i,o){e.insert(i,t,o);for(let s=0;s<5;s+=1)n[s]&&n[s].m(t,null)},p:e.noop,d(i){i&&e.detach(t),e.destroy_each(n,i)}}}function F(r){let t,l,n,i,o=r[7](r[23].current.expiryTime)+"",s;return{c(){t=e.element("div"),l=e.element("span"),l.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="14" r="7" stroke="currentColor" stroke-width="1.5"></circle><path d="M12 11V14L14 16" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 4V7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9 4H15" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17 7L18 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7 7L6 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',n=e.space(),i=e.element("span"),s=e.text(o),e.attr(l,"class","SmallIcon Timer svelte-ljc7r7"),e.attr(i,"class","svelte-ljc7r7"),e.attr(t,"class","ItemValidity svelte-ljc7r7")},m(c,d){e.insert(c,t,d),e.append(t,l),e.append(t,n),e.append(t,i),e.append(i,s)},p(c,d){d&8&&o!==(o=c[7](c[23].current.expiryTime)+"")&&e.set_data(s,o)},d(c){c&&e.detach(t)}}}function U(r){var v,w;let t,l,n,i,o=(r[23].program.name[r[0]]||r[23].program.name["*"]||"Unknown Game")+"",s,c,d,h,g,f,p,m,_,b,k=(((v=r[23].current)==null?void 0:v.remainingTimes)||0)+"",x,L,A,j,I,u=((w=r[23].current)==null?void 0:w.expiryTime)&&F(r);function a(){return r[16](r[23])}return{c(){t=e.element("li"),l=e.element("button"),n=e.element("div"),i=e.element("span"),s=e.text(o),c=e.space(),d=e.element("span"),h=e.space(),g=e.element("div"),f=e.element("div"),p=e.element("img"),_=e.space(),b=e.element("span"),x=e.text(k),L=e.space(),u&&u.c(),A=e.space(),e.attr(i,"class","ItemTitle svelte-ljc7r7"),e.attr(d,"class","IconButton Chevron svelte-ljc7r7"),e.attr(n,"class","ItemTitleRow svelte-ljc7r7"),e.src_url_equal(p.src,m=r[4])||e.attr(p,"src",m),e.attr(p,"alt",""),e.attr(b,"class","svelte-ljc7r7"),e.attr(f,"class","ItemKeys svelte-ljc7r7"),e.attr(g,"class","ItemDetails svelte-ljc7r7"),e.attr(l,"type","button"),e.attr(l,"class","ItemButton svelte-ljc7r7"),e.attr(t,"class","LuckyWheelListItem svelte-ljc7r7")},m(C,y){e.insert(C,t,y),e.append(t,l),e.append(l,n),e.append(n,i),e.append(i,s),e.append(n,c),e.append(n,d),e.append(l,h),e.append(l,g),e.append(g,f),e.append(f,p),e.append(f,_),e.append(f,b),e.append(b,x),e.append(g,L),u&&u.m(g,null),e.append(t,A),j||(I=e.listen(l,"click",a),j=!0)},p(C,y){var M,S;r=C,y&9&&o!==(o=(r[23].program.name[r[0]]||r[23].program.name["*"]||"Unknown Game")+"")&&e.set_data(s,o),y&16&&!e.src_url_equal(p.src,m=r[4])&&e.attr(p,"src",m),y&8&&k!==(k=(((M=r[23].current)==null?void 0:M.remainingTimes)||0)+"")&&e.set_data(x,k),(S=r[23].current)!=null&&S.expiryTime?u?u.p(r,y):(u=F(r),u.c(),u.m(g,null)):u&&(u.d(1),u=null)},d(C){C&&e.detach(t),u&&u.d(),j=!1,I()}}}function re(r){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="text" height="16px"></ui-skeleton> <ui-skeleton structure="rectangle" width="50px" height="16px"></ui-skeleton> ',e.attr(t,"class","WheelLoader svelte-ljc7r7")},m(l,n){e.insert(l,t,n)},p:e.noop,d(l){l&&e.detach(t)}}}function ne(r){let t,l,n;function i(c,d){return c[2]?le:c[3].length>0?te:ee}let o=i(r),s=o(r);return{c(){t=e.element("div"),l=e.element("div"),s.c(),e.attr(l,"class","ListScrollArea svelte-ljc7r7"),e.attr(t,"class","PrizeListContent svelte-ljc7r7"),e.toggle_class(t,"Mobile",r[6])},m(c,d){e.insert(c,t,d),e.append(t,l),s.m(l,null),r[17](t)},p(c,[d]){o===(o=i(c))&&s?s.p(c,d):(s.d(1),s=o(c),s&&(s.c(),s.m(l,null)))},i(c){c&&(n||e.add_render_callback(()=>{n=e.create_in_transition(t,e.fade,{duration:300}),n.start()}))},o:e.noop,d(c){c&&e.detach(t),s.d(),r[17](null)}}}let ie=null;function se(r,t,l){let n,i;e.component_subscribe(r,e.$format,a=>l(5,i=a));let{endpoint:o=""}=t,{session:s=""}=t,{lang:c="en"}=t,{clientstyling:d=""}=t,{clientstylingurl:h=""}=t,{translationurl:g=""}=t,{mbsource:f=""}=t,{type:p="wheelOfFortune"}=t,m;const _=e.isMobile(window.navigator.userAgent);let b=!0,k=[];R();const x=()=>{fetch(g).then(v=>v.json()).then(v=>{Object.keys(v).forEach(w=>{N(w,v[w])})})},L=a=>{if(!a)return"";const v=new Date(a).getTime(),w=Date.now(),C=v-w;if(C<=0)return"";const y=Math.floor(C/(1e3*60*60*24)),M=Math.floor(C%(1e3*60*60*24)/(1e3*60*60)),S=Math.floor(C%(1e3*60*60)/(1e3*60));return`${y.toString().padStart(2,"0")}d:${M.toString().padStart(2,"0")}h:${S.toString().padStart(2,"0")}m`},A=()=>B(this,null,function*(){if(!(!o||!s)){l(2,b=!0);try{const a=yield Q.lotteries(o,s,[p]);window.postMessage({type:"PrizeProgramsLoaded",data:a},"*"),l(3,k=a.filter(v=>{var w;return(Number((w=v.current)==null?void 0:w.remainingTimes)||0)>0}))}catch(a){console.error("[PrizeEngineList] Fetch failed",a)}finally{l(2,b=!1)}}}),j=a=>{window.postMessage({type:"OpenPrizeGame",data:a},"*")};e.onMount(()=>()=>{});const I=a=>j(a);function u(a){e.binding_callbacks[a?"unshift":"push"](()=>{m=a,l(1,m)})}return r.$$set=a=>{"endpoint"in a&&l(9,o=a.endpoint),"session"in a&&l(10,s=a.session),"lang"in a&&l(0,c=a.lang),"clientstyling"in a&&l(11,d=a.clientstyling),"clientstylingurl"in a&&l(12,h=a.clientstylingurl),"translationurl"in a&&l(13,g=a.translationurl),"mbsource"in a&&l(14,f=a.mbsource),"type"in a&&l(15,p=a.type)},r.$$.update=()=>{r.$$.dirty&1&&c&&Y(c),r.$$.dirty&8192&&g&&x(),r.$$.dirty&32768&&l(4,n=p==="flipCoin"?q:p==="mysteryChest"?X:K),r.$$.dirty&34304&&o&&s&&p&&A(),r.$$.dirty&2050&&d&&m&&e.setClientStyling(m,d),r.$$.dirty&4098&&h&&m&&e.setClientStylingURL(m,h),r.$$.dirty&16386&&f&&m&&e.setStreamStyling(m,`${f}.Style`,ie)},[c,m,b,k,n,i,_,L,j,o,s,d,h,g,f,p,I,u]}class O extends e.SvelteComponent{constructor(t){super(),e.init(this,t,se,ne,e.safe_not_equal,{endpoint:9,session:10,lang:0,clientstyling:11,clientstylingurl:12,translationurl:13,mbsource:14,type:15},J)}get endpoint(){return this.$$.ctx[9]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[10]}set session(t){this.$$set({session:t}),e.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get type(){return this.$$.ctx[15]}set type(t){this.$$set({type:t}),e.flush()}}customElements.define("prize-engine-list",e.create_custom_element(O,{endpoint:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},type:{}},[],[],!0));exports.default=O;
@@ -25,8 +25,8 @@ var W = (l, e, t) => new Promise((r, n) => {
25
25
  }, a = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(s, i);
26
26
  a((t = t.apply(l, e)).next());
27
27
  });
28
- import { $ as H, a as re, b as ne, S as ie, i as se, s as oe, f as j, c as ae, n as G, d as _, e as ce, g as de, B as ue, h as A, j as d, k as g, l as u, t as q, m as ge, o as me, p as fe, q as he, r as O, u as J, w as U, x as N, A as R, L as pe, y as M, C as ve, D as we, E as Ce, F as be, G as ye } from "./PrizeEngineSuite-CXW8m3Yx.js";
29
- import "../stencil/ui-skeleton-xXZA3rYO.js";
28
+ import { $ as H, a as re, b as ne, S as ie, i as se, s as oe, f as j, c as ae, n as G, d as _, e as ce, g as de, B as ue, h as A, j as d, k as g, l as u, t as q, m as ge, o as me, p as fe, q as he, r as O, u as J, w as U, x as N, A as R, L as pe, y as M, C as ve, D as we, E as Ce, F as be, G as ye } from "./PrizeEngineSuite-4p-Y5pBv.js";
29
+ import "../stencil/ui-skeleton-C7JH5ymf.js";
30
30
  const Z = {
31
31
  en: {
32
32
  Title: "Prize Games",
@@ -1,5 +1,5 @@
1
- import { $ as F, a as X, b as q, S as J, i as $, s as ee, f as y, d as te, n as U, e as x, g as le, h as re, j as ne, k as L, l as c, m as u, o as d, t as Y, p as ie, q as se, r as oe, u as ae, v as W, w as P, y as D, z as E, C as N, L as ce, A, E as de, F as ue, G as ge, c as me, D as fe } from "./PrizeEngineSuite-BC4MKeMR.js";
2
- import "../stencil/ui-skeleton-W50o8tfg.js";
1
+ import { $ as F, a as X, b as q, S as J, i as $, s as ee, f as y, d as te, n as U, e as x, g as le, h as re, j as ne, k as L, l as c, m as u, o as d, t as Y, p as ie, q as se, r as oe, u as ae, v as W, w as P, y as D, z as E, C as N, L as ce, A, E as de, F as ue, G as ge, c as me, D as fe } from "./PrizeEngineSuite-B_NsOV8B.js";
2
+ import "../stencil/ui-skeleton-B9VBo72p.js";
3
3
  const H = {
4
4
  en: {
5
5
  Title: "Prize Games",
@@ -1,5 +1,5 @@
1
- import { S as O, i as V, s as F, f as g, d as H, e as W, J as M, H as z, N as I, K, k as R, m as L, o as P, t as T, q as B, r as Q, a1 as X, l as Y, a2 as Z, a3 as $, u as E, E as ee, F as te, G as ne, c as ie } from "./PrizeEngineSuite-BC4MKeMR.js";
2
- import { s as se, a as le, W as re, b as ae } from "./WheelSVG-5iUwcU3G.js";
1
+ import { S as O, i as V, s as F, f as g, d as H, e as W, J as M, H as z, N as I, K, k as R, m as L, o as P, t as T, q as B, r as Q, a1 as X, l as Y, a2 as Z, a3 as $, u as E, E as ee, F as te, G as ne, c as ie } from "./PrizeEngineSuite-B_NsOV8B.js";
2
+ import { s as se, a as le, W as re, b as ae } from "./WheelSVG-FO0V-tjE.js";
3
3
  function oe(i) {
4
4
  H(i, "svelte-12d9sfg", '.PrizeLuckywheelContainer.svelte-12d9sfg{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;padding:20px;box-sizing:border-box;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.PrizeLuckywheelContainer.Mobile.svelte-12d9sfg{padding:10px}.MainSection.svelte-12d9sfg{flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;position:relative}.WheelWrapper.svelte-12d9sfg{flex-grow:1;display:flex;align-items:center;justify-content:center;min-height:0;width:100%}');
5
5
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PrizeEngineSuite-CB3at6bs.cjs"),z=require("./WheelSVG-Br68VLJ3.cjs");function O(s){e.append_styles(s,"svelte-12d9sfg",'.PrizeLuckywheelContainer.svelte-12d9sfg{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;padding:20px;box-sizing:border-box;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.PrizeLuckywheelContainer.Mobile.svelte-12d9sfg{padding:10px}.MainSection.svelte-12d9sfg{flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;position:relative}.WheelWrapper.svelte-12d9sfg{flex-grow:1;display:flex;align-items:center;justify-content:center;min-height:0;width:100%}')}function L(s){let t,l,n,o,a={lang:s[0],contentdirection:s[1],bonus:s[4],size:s[3],radius:s[7]};return n=new z.WheelSVG({props:a}),s[17](n),n.$on("spinning",s[18]),n.$on("spinning-request",s[19]),n.$on("success",s[20]),{c(){t=e.element("div"),l=e.element("div"),e.create_component(n.$$.fragment),e.attr(l,"class","WheelWrapper svelte-12d9sfg"),e.attr(t,"class","MainSection svelte-12d9sfg")},m(r,c){e.insert(r,t,c),e.append(t,l),e.mount_component(n,l,null),o=!0},p(r,c){const u={};c&1&&(u.lang=r[0]),c&2&&(u.contentdirection=r[1]),c&16&&(u.bonus=r[4]),c&8&&(u.size=r[3]),c&128&&(u.radius=r[7]),n.$set(u)},i(r){o||(e.transition_in(n.$$.fragment,r),o=!0)},o(r){e.transition_out(n.$$.fragment,r),o=!1},d(r){r&&e.detach(t),s[17](null),e.destroy_component(n)}}}function U(s){let t,l,n=s[4]&&L(s);return{c(){t=e.element("div"),n&&n.c(),e.attr(t,"class","PrizeLuckywheelContainer svelte-12d9sfg"),e.toggle_class(t,"Mobile",s[8])},m(o,a){e.insert(o,t,a),n&&n.m(t,null),s[21](t),l=!0},p(o,[a]){o[4]?n?(n.p(o,a),a&16&&e.transition_in(n,1)):(n=L(o),n.c(),e.transition_in(n,1),n.m(t,null)):n&&(e.group_outros(),e.transition_out(n,1,1,()=>{n=null}),e.check_outros())},i(o){l||(e.transition_in(n),l=!0)},o(o){e.transition_out(n),l=!1},d(o){o&&e.detach(t),n&&n.d(),s[21](null)}}}let V=null;function x(s,t,l){let n,o,a,{data:r=null}=t,{lang:c="en"}=t,{clientstyling:u=""}=t,{clientstylingurl:y=""}=t,{translationurl:_=""}=t,{mbsource:b=""}=t,{size:S=324}=t,{mobilesize:w=240}=t,{contentdirection:M="anticlockwise"}=t,k=null,f;const P=e.isMobile(window.navigator.userAgent);let g,m=!1;z.setLocaleWhenInit();const C=()=>{fetch(_).then(d=>d.json()).then(d=>{Object.keys(d).forEach(h=>{z.addNewMessages(h,d[h])})})},E=i=>{g&&g.setDrawResult(i)},G=()=>{m||(l(6,m=!0),g&&g.eventSpin())};e.onMount(()=>{const i=d=>{const{type:h,data:p}=d.data;h==="PrizeGameResult"?E(p):h==="PrizeResultClose"?(l(6,m=!1),g&&g.closeMessage()):h==="PrizeGameStartAnimation"&&G()};return window.addEventListener("message",i),()=>{window.removeEventListener("message",i)}});function W(i){e.binding_callbacks[i?"unshift":"push"](()=>{g=i,l(5,g)})}const q=()=>l(6,m=!0),R=()=>window.postMessage({type:"PrizeGameRequestDraw"},"*"),j=()=>window.postMessage({type:"PrizeGameSpinEnd"},"*");function D(i){e.binding_callbacks[i?"unshift":"push"](()=>{f=i,l(2,f)})}return s.$$set=i=>{"data"in i&&l(9,r=i.data),"lang"in i&&l(0,c=i.lang),"clientstyling"in i&&l(10,u=i.clientstyling),"clientstylingurl"in i&&l(11,y=i.clientstylingurl),"translationurl"in i&&l(12,_=i.translationurl),"mbsource"in i&&l(13,b=i.mbsource),"size"in i&&l(14,S=i.size),"mobilesize"in i&&l(15,w=i.mobilesize),"contentdirection"in i&&l(1,M=i.contentdirection)},s.$$.update=()=>{if(s.$$.dirty&512)if(typeof r=="string")try{l(4,k=JSON.parse(r))}catch(i){console.error("[Luckywheel] Parse failed",i)}else l(4,k=r);s.$$.dirty&1&&c&&z.setLocale(c),s.$$.dirty&4096&&_&&C(),s.$$.dirty&1028&&u&&f&&e.setClientStyling(f,u),s.$$.dirty&2052&&y&&f&&e.setClientStylingURL(f,y),s.$$.dirty&8196&&b&&f&&e.setStreamStyling(f,`${b}.Style`,V),s.$$.dirty&49152&&l(16,n=P&&w?w:S),s.$$.dirty&65536&&l(3,o=n/.6875),s.$$.dirty&8&&l(7,a=.62*o/2)},[c,M,f,o,k,g,m,a,P,r,u,y,_,b,S,w,n,W,q,R,j,D]}class v extends e.SvelteComponent{constructor(t){super(),e.init(this,t,x,U,e.safe_not_equal,{data:9,lang:0,clientstyling:10,clientstylingurl:11,translationurl:12,mbsource:13,size:14,mobilesize:15,contentdirection:1},O)}get data(){return this.$$.ctx[9]}set data(t){this.$$set({data:t}),e.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[13]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get size(){return this.$$.ctx[14]}set size(t){this.$$set({size:t}),e.flush()}get mobilesize(){return this.$$.ctx[15]}set mobilesize(t){this.$$set({mobilesize:t}),e.flush()}get contentdirection(){return this.$$.ctx[1]}set contentdirection(t){this.$$set({contentdirection:t}),e.flush()}}customElements.define("prize-engine-luckywheel",e.create_custom_element(v,{data:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},size:{},mobilesize:{},contentdirection:{}},[],[],!0));exports.default=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PrizeEngineSuite-Bo4ochEx.cjs"),z=require("./WheelSVG-DxZHiQvp.cjs");function O(s){e.append_styles(s,"svelte-12d9sfg",'.PrizeLuckywheelContainer.svelte-12d9sfg{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;padding:20px;box-sizing:border-box;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.PrizeLuckywheelContainer.Mobile.svelte-12d9sfg{padding:10px}.MainSection.svelte-12d9sfg{flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;position:relative}.WheelWrapper.svelte-12d9sfg{flex-grow:1;display:flex;align-items:center;justify-content:center;min-height:0;width:100%}')}function L(s){let t,l,n,o,a={lang:s[0],contentdirection:s[1],bonus:s[4],size:s[3],radius:s[7]};return n=new z.WheelSVG({props:a}),s[17](n),n.$on("spinning",s[18]),n.$on("spinning-request",s[19]),n.$on("success",s[20]),{c(){t=e.element("div"),l=e.element("div"),e.create_component(n.$$.fragment),e.attr(l,"class","WheelWrapper svelte-12d9sfg"),e.attr(t,"class","MainSection svelte-12d9sfg")},m(r,c){e.insert(r,t,c),e.append(t,l),e.mount_component(n,l,null),o=!0},p(r,c){const u={};c&1&&(u.lang=r[0]),c&2&&(u.contentdirection=r[1]),c&16&&(u.bonus=r[4]),c&8&&(u.size=r[3]),c&128&&(u.radius=r[7]),n.$set(u)},i(r){o||(e.transition_in(n.$$.fragment,r),o=!0)},o(r){e.transition_out(n.$$.fragment,r),o=!1},d(r){r&&e.detach(t),s[17](null),e.destroy_component(n)}}}function U(s){let t,l,n=s[4]&&L(s);return{c(){t=e.element("div"),n&&n.c(),e.attr(t,"class","PrizeLuckywheelContainer svelte-12d9sfg"),e.toggle_class(t,"Mobile",s[8])},m(o,a){e.insert(o,t,a),n&&n.m(t,null),s[21](t),l=!0},p(o,[a]){o[4]?n?(n.p(o,a),a&16&&e.transition_in(n,1)):(n=L(o),n.c(),e.transition_in(n,1),n.m(t,null)):n&&(e.group_outros(),e.transition_out(n,1,1,()=>{n=null}),e.check_outros())},i(o){l||(e.transition_in(n),l=!0)},o(o){e.transition_out(n),l=!1},d(o){o&&e.detach(t),n&&n.d(),s[21](null)}}}let V=null;function x(s,t,l){let n,o,a,{data:r=null}=t,{lang:c="en"}=t,{clientstyling:u=""}=t,{clientstylingurl:y=""}=t,{translationurl:_=""}=t,{mbsource:b=""}=t,{size:S=324}=t,{mobilesize:w=240}=t,{contentdirection:M="anticlockwise"}=t,k=null,f;const P=e.isMobile(window.navigator.userAgent);let g,m=!1;z.setLocaleWhenInit();const C=()=>{fetch(_).then(d=>d.json()).then(d=>{Object.keys(d).forEach(h=>{z.addNewMessages(h,d[h])})})},E=i=>{g&&g.setDrawResult(i)},G=()=>{m||(l(6,m=!0),g&&g.eventSpin())};e.onMount(()=>{const i=d=>{const{type:h,data:p}=d.data;h==="PrizeGameResult"?E(p):h==="PrizeResultClose"?(l(6,m=!1),g&&g.closeMessage()):h==="PrizeGameStartAnimation"&&G()};return window.addEventListener("message",i),()=>{window.removeEventListener("message",i)}});function W(i){e.binding_callbacks[i?"unshift":"push"](()=>{g=i,l(5,g)})}const q=()=>l(6,m=!0),R=()=>window.postMessage({type:"PrizeGameRequestDraw"},"*"),j=()=>window.postMessage({type:"PrizeGameSpinEnd"},"*");function D(i){e.binding_callbacks[i?"unshift":"push"](()=>{f=i,l(2,f)})}return s.$$set=i=>{"data"in i&&l(9,r=i.data),"lang"in i&&l(0,c=i.lang),"clientstyling"in i&&l(10,u=i.clientstyling),"clientstylingurl"in i&&l(11,y=i.clientstylingurl),"translationurl"in i&&l(12,_=i.translationurl),"mbsource"in i&&l(13,b=i.mbsource),"size"in i&&l(14,S=i.size),"mobilesize"in i&&l(15,w=i.mobilesize),"contentdirection"in i&&l(1,M=i.contentdirection)},s.$$.update=()=>{if(s.$$.dirty&512)if(typeof r=="string")try{l(4,k=JSON.parse(r))}catch(i){console.error("[Luckywheel] Parse failed",i)}else l(4,k=r);s.$$.dirty&1&&c&&z.setLocale(c),s.$$.dirty&4096&&_&&C(),s.$$.dirty&1028&&u&&f&&e.setClientStyling(f,u),s.$$.dirty&2052&&y&&f&&e.setClientStylingURL(f,y),s.$$.dirty&8196&&b&&f&&e.setStreamStyling(f,`${b}.Style`,V),s.$$.dirty&49152&&l(16,n=P&&w?w:S),s.$$.dirty&65536&&l(3,o=n/.6875),s.$$.dirty&8&&l(7,a=.62*o/2)},[c,M,f,o,k,g,m,a,P,r,u,y,_,b,S,w,n,W,q,R,j,D]}class v extends e.SvelteComponent{constructor(t){super(),e.init(this,t,x,U,e.safe_not_equal,{data:9,lang:0,clientstyling:10,clientstylingurl:11,translationurl:12,mbsource:13,size:14,mobilesize:15,contentdirection:1},O)}get data(){return this.$$.ctx[9]}set data(t){this.$$set({data:t}),e.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[13]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get size(){return this.$$.ctx[14]}set size(t){this.$$set({size:t}),e.flush()}get mobilesize(){return this.$$.ctx[15]}set mobilesize(t){this.$$set({mobilesize:t}),e.flush()}get contentdirection(){return this.$$.ctx[1]}set contentdirection(t){this.$$set({contentdirection:t}),e.flush()}}customElements.define("prize-engine-luckywheel",e.create_custom_element(v,{data:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},size:{},mobilesize:{},contentdirection:{}},[],[],!0));exports.default=v;
@@ -1,5 +1,5 @@
1
- import { S as N, i as V, s as F, f as g, c as H, d as G, J as M, H as z, O as I, K, h as R, k as L, l as P, t as T, o as B, p as Q, a1 as X, j as Y, a2 as Z, a3 as $, q as E, C as ee, D as te, E as ne, F as ie } from "./PrizeEngineSuite-CXW8m3Yx.js";
2
- import { s as se, a as le, W as re, b as ae } from "./WheelSVG-DQfD_TgA.js";
1
+ import { S as N, i as V, s as F, f as g, c as H, d as G, J as M, H as z, O as I, K, h as R, k as L, l as P, t as T, o as B, p as Q, a1 as X, j as Y, a2 as Z, a3 as $, q as E, C as ee, D as te, E as ne, F as ie } from "./PrizeEngineSuite-4p-Y5pBv.js";
2
+ import { s as se, a as le, W as re, b as ae } from "./WheelSVG-C2tVeH4P.js";
3
3
  function oe(i) {
4
4
  H(i, "svelte-12d9sfg", '.PrizeLuckywheelContainer.svelte-12d9sfg{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;padding:20px;box-sizing:border-box;font-family:var(--emw--font-family-primary, "Ubuntu", sans-serif)}.PrizeLuckywheelContainer.Mobile.svelte-12d9sfg{padding:10px}.MainSection.svelte-12d9sfg{flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;position:relative}.WheelWrapper.svelte-12d9sfg{flex-grow:1;display:flex;align-items:center;justify-content:center;min-height:0;width:100%}');
5
5
  }
@@ -4644,7 +4644,7 @@ if (typeof window != "undefined") {
4644
4644
  }
4645
4645
  };
4646
4646
  };
4647
- customElements.define = e(customElements.define), import("./PrizeEngineHistory-BaymNuBf.js").then(({ default: t }) => {
4647
+ customElements.define = e(customElements.define), import("./PrizeEngineHistory-6_sv8ymT.js").then(({ default: t }) => {
4648
4648
  !customElements.get("prize-engine-history") && customElements.define("prize-engine-history", t.element);
4649
4649
  });
4650
4650
  }
@@ -4660,7 +4660,7 @@ if (typeof window != "undefined") {
4660
4660
  }
4661
4661
  };
4662
4662
  };
4663
- customElements.define = e(customElements.define), import("./PrizeEngineDetails-kkQ2qgf6.js").then(({ default: t }) => {
4663
+ customElements.define = e(customElements.define), import("./PrizeEngineDetails-HQKtVZMJ.js").then(({ default: t }) => {
4664
4664
  !customElements.get("prize-engine-details") && customElements.define("prize-engine-details", t.element);
4665
4665
  });
4666
4666
  }
@@ -4676,7 +4676,7 @@ if (typeof window != "undefined") {
4676
4676
  }
4677
4677
  };
4678
4678
  };
4679
- customElements.define = e(customElements.define), import("./PrizeEngineList-BbPLzvqf.js").then(({ default: t }) => {
4679
+ customElements.define = e(customElements.define), import("./PrizeEngineList-D3ns2ITR.js").then(({ default: t }) => {
4680
4680
  !customElements.get("prize-engine-list") && customElements.define("prize-engine-list", t.element);
4681
4681
  });
4682
4682
  }
@@ -4607,7 +4607,7 @@ if (typeof window < "u") {
4607
4607
  }
4608
4608
  };
4609
4609
  };
4610
- customElements.define = e(customElements.define), import("./PrizeEngineHistory-DIaDQ3Ad.js").then(({ default: t }) => {
4610
+ customElements.define = e(customElements.define), import("./PrizeEngineHistory-JTXl4wBM.js").then(({ default: t }) => {
4611
4611
  !customElements.get("prize-engine-history") && customElements.define("prize-engine-history", t.element);
4612
4612
  });
4613
4613
  }
@@ -4623,7 +4623,7 @@ if (typeof window < "u") {
4623
4623
  }
4624
4624
  };
4625
4625
  };
4626
- customElements.define = e(customElements.define), import("./PrizeEngineDetails-yY32AMKo.js").then(({ default: t }) => {
4626
+ customElements.define = e(customElements.define), import("./PrizeEngineDetails-Bw13IueX.js").then(({ default: t }) => {
4627
4627
  !customElements.get("prize-engine-details") && customElements.define("prize-engine-details", t.element);
4628
4628
  });
4629
4629
  }
@@ -4639,7 +4639,7 @@ if (typeof window < "u") {
4639
4639
  }
4640
4640
  };
4641
4641
  };
4642
- customElements.define = e(customElements.define), import("./PrizeEngineList-Bz6mOvpl.js").then(({ default: t }) => {
4642
+ customElements.define = e(customElements.define), import("./PrizeEngineList-ZZ0ojzOf.js").then(({ default: t }) => {
4643
4643
  !customElements.get("prize-engine-list") && customElements.define("prize-engine-list", t.element);
4644
4644
  });
4645
4645
  }