@everymatrix/casino-mystery-chest-details 1.85.17 → 1.85.18

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.
@@ -15,5 +15,5 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
15
  PERFORMANCE OF THIS SOFTWARE.
16
16
  ***************************************************************************** */var Ie=function(A,e){return Ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])},Ie(A,e)};function DA(A,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ie(A,e);function t(){this.constructor=A}A.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Qe(A){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&A[e],i=0;if(t)return t.call(A);if(A&&typeof A.length=="number")return{next:function(){return A&&i>=A.length&&(A=void 0),{value:A&&A[i++],done:!A}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function we(A,e){var t=typeof Symbol=="function"&&A[Symbol.iterator];if(!t)return A;var i=t.call(A),r,n=[],o;try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return n}function fe(A,e,t){if(arguments.length===2)for(var i=0,r=e.length,n;i<r;i++)(n||!(i in e))&&(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return A.concat(n||e)}function L(A){return typeof A=="function"}function kt(A){var e=function(i){Error.call(i),i.stack=new Error().stack},t=A(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var ie=kt(function(A){return function(t){A(this),this.message=t?t.length+` errors occurred during unsubscription:
17
17
  `+t.map(function(i,r){return r+1+") "+i.toString()}).join(`
18
- `):"",this.name="UnsubscriptionError",this.errors=t}});function pe(A,e){if(A){var t=A.indexOf(e);0<=t&&A.splice(t,1)}}var PA=function(){function A(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return A.prototype.unsubscribe=function(){var e,t,i,r,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Qe(o),s=a.next();!s.done;s=a.next()){var B=s.value;B.remove(this)}}catch(E){e={error:E}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var u=this.initialTeardown;if(L(u))try{u()}catch(E){n=E instanceof ie?E.errors:[E]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var h=Qe(g),l=h.next();!l.done;l=h.next()){var m=l.value;try{$e(m)}catch(E){n=n!=null?n:[],E instanceof ie?n=fe(fe([],we(n)),we(E.errors)):n.push(E)}}}catch(E){i={error:E}}finally{try{l&&!l.done&&(r=h.return)&&r.call(h)}finally{if(i)throw i.error}}}if(n)throw new ie(n)}},A.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)$e(e);else{if(e instanceof A){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},A.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},A.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},A.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&pe(t,e)},A.prototype.remove=function(e){var t=this._finalizers;t&&pe(t,e),e instanceof A&&e._removeParent(this)},A.EMPTY=function(){var e=new A;return e.closed=!0,e}(),A}(),Nt=PA.EMPTY;function xt(A){return A instanceof PA||A&&"closed"in A&&L(A.remove)&&L(A.add)&&L(A.unsubscribe)}function $e(A){L(A)?A():A.unsubscribe()}var dn={Promise:void 0},qn={setTimeout:function(A,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout.apply(void 0,fe([A,e],we(t)))},clearTimeout:function(A){return clearTimeout(A)},delegate:void 0};function Dn(A){qn.setTimeout(function(){throw A})}function At(){}function OA(A){A()}var vt=function(A){DA(e,A);function e(t){var i=A.call(this)||this;return i.isStopped=!1,t?(i.destination=t,xt(t)&&t.add(i)):i.destination=Mn,i}return e.create=function(t,i,r){return new de(t,i,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,A.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(PA),Fn=function(){function A(e){this.partialObserver=e}return A.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(i){bA(i)}},A.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(i){bA(i)}else bA(e)},A.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){bA(t)}},A}(),de=function(A){DA(e,A);function e(t,i,r){var n=A.call(this)||this,o;return L(t)||!t?o={next:t!=null?t:void 0,error:i!=null?i:void 0,complete:r!=null?r:void 0}:o=t,n.destination=new Fn(o),n}return e}(vt);function bA(A){Dn(A)}function Zn(A){throw A}var Mn={closed:!0,next:At,error:Zn,complete:At},Gn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Hn(A){return A}function Rn(A){return A.length===0?Hn:A.length===1?A[0]:function(t){return A.reduce(function(i,r){return r(i)},t)}}var et=function(){function A(e){e&&(this._subscribe=e)}return A.prototype.lift=function(e){var t=new A;return t.source=this,t.operator=e,t},A.prototype.subscribe=function(e,t,i){var r=this,n=Un(e)?e:new de(e,t,i);return OA(function(){var o=r,a=o.operator,s=o.source;n.add(a?a.call(n,s):s?r._subscribe(n):r._trySubscribe(n))}),n},A.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},A.prototype.forEach=function(e,t){var i=this;return t=tt(t),new t(function(r,n){var o=new de({next:function(a){try{e(a)}catch(s){n(s),o.unsubscribe()}},error:n,complete:r});i.subscribe(o)})},A.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},A.prototype[Gn]=function(){return this},A.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Rn(e)(this)},A.prototype.toPromise=function(e){var t=this;return e=tt(e),new e(function(i,r){var n;t.subscribe(function(o){return n=o},function(o){return r(o)},function(){return i(n)})})},A.create=function(e){return new A(e)},A}();function tt(A){var e;return(e=A!=null?A:dn.Promise)!==null&&e!==void 0?e:Promise}function Sn(A){return A&&L(A.next)&&L(A.error)&&L(A.complete)}function Un(A){return A&&A instanceof vt||Sn(A)&&xt(A)}var bn=kt(function(A){return function(){A(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Wt=function(A){DA(e,A);function e(){var t=A.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var i=new it(this,this);return i.operator=t,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new bn},e.prototype.next=function(t){var i=this;OA(function(){var r,n;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=Qe(i.currentObservers),a=o.next();!a.done;a=o.next()){var s=a.value;s.next(t)}}catch(B){r={error:B}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},e.prototype.error=function(t){var i=this;OA(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var r=i.observers;r.length;)r.shift().error(t)}})},e.prototype.complete=function(){var t=this;OA(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var i=t.observers;i.length;)i.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),A.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var i=this,r=this,n=r.hasError,o=r.isStopped,a=r.observers;return n||o?Nt:(this.currentObservers=null,a.push(t),new PA(function(){i.currentObservers=null,pe(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var i=this,r=i.hasError,n=i.thrownError,o=i.isStopped;r?t.error(n):o&&t.complete()},e.prototype.asObservable=function(){var t=new et;return t.source=this,t},e.create=function(t,i){return new it(t,i)},e}(et),it=function(A){DA(e,A);function e(t,i){var r=A.call(this)||this;return r.destination=t,r.source=i,r}return e.prototype.next=function(t){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,t)},e.prototype.error=function(t){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,t)},e.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},e.prototype._subscribe=function(t){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&r!==void 0?r:Nt},e}(Wt),Lt={now:function(){return(Lt.delegate||Date).now()},delegate:void 0},Yn=function(A){DA(e,A);function e(t,i,r){t===void 0&&(t=1/0),i===void 0&&(i=1/0),r===void 0&&(r=Lt);var n=A.call(this)||this;return n._bufferSize=t,n._windowTime=i,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=i===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,i),n}return e.prototype.next=function(t){var i=this,r=i.isStopped,n=i._buffer,o=i._infiniteTimeWindow,a=i._timestampProvider,s=i._windowTime;r||(n.push(t),!o&&n.push(a.now()+s)),this._trimBuffer(),A.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),r=this,n=r._infiniteTimeWindow,o=r._buffer,a=o.slice(),s=0;s<a.length&&!t.closed;s+=n?1:2)t.next(a[s]);return this._checkFinalizedStatuses(t),i},e.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,r=t._timestampProvider,n=t._buffer,o=t._infiniteTimeWindow,a=(o?1:2)*i;if(i<1/0&&a<n.length&&n.splice(0,n.length-a),!o){for(var s=r.now(),B=0,u=1;u<n.length&&n[u]<=s;u+=2)B=u;B&&n.splice(0,B+1)}},e}(Wt);const rt=[],nt={},Kn=(A,e=0)=>{if(rt.indexOf(A)==-1){const t=new Yn(e);nt[A]=t,rt.push(A)}return nt[A]};window.emWidgets={topic:Kn};const yn=A=>!!(A.toLowerCase().match(/android/i)||A.toLowerCase().match(/blackberry|bb/i)||A.toLowerCase().match(/iphone|ipad|ipod/i)||A.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));function ot(A){return Object.prototype.toString.call(A)==="[object Date]"}function re(A){const e=A-1;return e*e*e+1}function qe(A,e){if(A===e||A!==A)return()=>A;const t=typeof A;if(t!==typeof e||Array.isArray(A)!==Array.isArray(e))throw new Error("Cannot interpolate values of different type");if(Array.isArray(A)){const i=e.map((r,n)=>qe(A[n],r));return r=>i.map(n=>n(r))}if(t==="object"){if(!A||!e)throw new Error("Object cannot be null");if(ot(A)&&ot(e)){A=A.getTime(),e=e.getTime();const n=e-A;return o=>new Date(A+o*n)}const i=Object.keys(e),r={};return i.forEach(n=>{r[n]=qe(A[n],e[n])}),n=>{const o={};return i.forEach(a=>{o[a]=r[a](n)}),o}}if(t==="number"){const i=e-A;return r=>A+r*i}throw new Error(`Cannot interpolate ${t} values`)}function ne(A,e={}){const t=dA(A);let i,r=A;function n(o,a){if(A==null)return t.set(A=o),Promise.resolve();r=o;let s=i,B=!1,{delay:u=0,duration:g=400,easing:h=ei,interpolate:l=qe}=Se(Se({},e),a);if(g===0)return s&&(s.abort(),s=null),t.set(A=r),Promise.resolve();const m=ii()+u;let E;return i=ri(Q=>{if(Q<m)return!0;B||(E=l(A,o),typeof g=="function"&&(g=g(A,o)),B=!0),s&&(s.abort(),s=null);const D=Q-m;return D>g?(t.set(A=o),!1):(t.set(A=E(h(D/g))),!0)}),i.promise}return{set:n,update:(o,a)=>n(o(r,A),a),subscribe:t.subscribe}}function On(A){ni(A,"svelte-1xpshu7",`.mobile.drawer{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile .icon-button{width:24px;height:24px}.mobile .chest-header__title{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500);line-height:14px}.mobile .chest-footer{gap:10px}.mobile .chest-footer__btn{width:170px;height:48px;font-size:var(--emw--font-size-medium, 16px)}.mobile .chest-footer__text{font-size:var(--emw--font-size-x-small, 12px);line-height:14px}.mobile .chest-footer__keys{font-size:var(--emw--font-size-small, 14px);line-height:16px}.drawer{position:fixed;left:50%;transform:translateX(-50%);background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%);box-sizing:border-box;z-index:10;transition:bottom 0.5s ease-in-out;bottom:0px;opacity:1;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px;display:flex;flex-direction:column}@media screen and (max-width: 1300px){.drawer{padding:20px 40px}}@media screen and (max-width: 992px){.drawer{width:70%}}@media screen and (max-width: 768px){.drawer{width:80%}}@media screen and (max-width: 576px){.drawer{width:90%}}.overlay{border:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5019607843));z-index:0;opacity:0;bottom:0px;opacity:1;transition:opacity 0.5s ease-in-out}.icon-button{width:30px;height:30px;border:0px;cursor:pointer}.icon-button.back{background:center/100% url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M10.3579 5.26604C10.0032 4.91132 9.42806 4.91132 9.07334 5.26604L5.26604 9.07334C4.91132 9.42806 4.91132 10.0032 5.26604 10.3579L9.07334 14.1652C9.42806 14.5199 10.0032 14.5199 10.3579 14.1652C10.7126 13.8105 10.7126 13.2354 10.3579 12.8806L8.10118 10.6239H10.7817C12.0761 10.6239 12.9922 10.6246 13.7085 10.6832C14.4142 10.7408 14.8455 10.85 15.1847 11.0229C15.8735 11.3738 16.4335 11.9338 16.7844 12.6226C16.9573 12.9618 17.0665 13.3931 17.1241 14.0989C17.1827 14.8151 17.1834 15.7312 17.1834 17.0256V18.0917C17.1834 18.5933 17.59 19 18.0917 19C18.5933 19 19 18.5933 19 18.0917V16.9854C19 15.74 19 14.7498 18.9347 13.9509C18.8679 13.1329 18.7281 12.4359 18.403 11.7978C17.8779 10.7673 17.04 9.92938 16.0095 9.40427C15.3714 9.07918 14.6744 8.9394 13.8564 8.87257C13.0575 8.80729 12.0673 8.8073 10.8219 8.8073H8.10118L10.3579 6.55059C10.7126 6.19587 10.7126 5.62076 10.3579 5.26604Z" fill="%23729787"/></svg>') no-repeat}.icon-button.close{background:center/100% url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat}.chest-header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.chest-header__title{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:var(--emw--font-weight-bold, 700);line-height:25px}.chest-icon{position:relative;z-index:1;width:290px}.chest-icon__container{flex-grow:1;position:relative;align-self:center;align-content:center}.chest-icon__container::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) rotate(-15deg);background:linear-gradient(317.36deg, #91caff 3.8%, #f3ffc2 100%);filter:blur(30px);mix-blend-mode:hard-light;width:225px;height:225px;border-radius:40px;pointer-events:none}.chest-icon__ticket{z-index:2;position:fixed;top:50%;left:50%;will-change:transform;transition:transform 0.3s ease-out}.chest-icon.empty{filter:grayscale(100%)}.chest-footer{display:flex;flex-direction:column;gap:20px;align-items:center;padding:32px 0 42px}.chest-footer.disabled{cursor:not-allowed;opacity:0.1}.chest-footer__btn{cursor:pointer;width:280px;height:60px;border-radius:54px;border:none;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium-plus, 18px);line-height:18px;letter-spacing:0px;color:var(--emw--color-background-secondary, #0c1a1c);transition:200ms}.chest-footer__btn:hover{filter:saturate(70%)}.chest-footer__text{margin:0;font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 16px);line-height:32px;letter-spacing:0px;text-align:center;color:var(--emw--color-primary, #d3ffed);display:flex;align-items:center;gap:8px}.chest-footer__keys{display:flex;align-items:center;gap:3px;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 16px);line-height:32px;letter-spacing:0px;text-align:center}`)}function at(A){let e,t;return{c(){e=M("img"),d(e,"class","chest-icon__ticket"),be(e,"transform","translate(calc(-50% + "+A[5]+"px), calc(-50% + "+A[6]+"px)) scale("+A[7]+")"),JA(e.src,t=Qn)||d(e,"src",t),d(e,"alt","Ticket")},m(i,r){W(i,e,r)},p(i,r){r&224&&be(e,"transform","translate(calc(-50% + "+i[5]+"px), calc(-50% + "+i[6]+"px)) scale("+i[7]+")")},d(i){i&&N(e)}}}function Jn(A){let e,t=A[8]("noMoreKeys")+"",i,r,n,o,a;return{c(){e=M("p"),i=z(t),r=v(),n=M("button"),n.textContent="OK",d(e,"class","chest-footer__text"),d(n,"class","chest-footer__btn")},m(s,B){W(s,e,B),p(e,i),W(s,r,B),W(s,n,B),o||(a=mA(n,"click",A[14]),o=!0)},p(s,B){B&256&&t!==(t=s[8]("noMoreKeys")+"")&&CA(i,t)},d(s){s&&(N(e),N(r),N(n)),o=!1,a()}}}function Vn(A){let e,t=A[8]("openChest")+"",i,r,n,o,a=A[8]("remainingKeys")+"",s,B,u,g,h,l,m,E=A[0].current.remainingTimes+"",Q,D,H;return{c(){e=M("button"),i=z(t),n=v(),o=M("p"),s=z(a),B=z(`:
18
+ `):"",this.name="UnsubscriptionError",this.errors=t}});function pe(A,e){if(A){var t=A.indexOf(e);0<=t&&A.splice(t,1)}}var PA=function(){function A(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return A.prototype.unsubscribe=function(){var e,t,i,r,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Qe(o),s=a.next();!s.done;s=a.next()){var B=s.value;B.remove(this)}}catch(E){e={error:E}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var u=this.initialTeardown;if(L(u))try{u()}catch(E){n=E instanceof ie?E.errors:[E]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var h=Qe(g),l=h.next();!l.done;l=h.next()){var m=l.value;try{$e(m)}catch(E){n=n!=null?n:[],E instanceof ie?n=fe(fe([],we(n)),we(E.errors)):n.push(E)}}}catch(E){i={error:E}}finally{try{l&&!l.done&&(r=h.return)&&r.call(h)}finally{if(i)throw i.error}}}if(n)throw new ie(n)}},A.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)$e(e);else{if(e instanceof A){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},A.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},A.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},A.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&pe(t,e)},A.prototype.remove=function(e){var t=this._finalizers;t&&pe(t,e),e instanceof A&&e._removeParent(this)},A.EMPTY=function(){var e=new A;return e.closed=!0,e}(),A}(),Nt=PA.EMPTY;function xt(A){return A instanceof PA||A&&"closed"in A&&L(A.remove)&&L(A.add)&&L(A.unsubscribe)}function $e(A){L(A)?A():A.unsubscribe()}var dn={Promise:void 0},qn={setTimeout:function(A,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout.apply(void 0,fe([A,e],we(t)))},clearTimeout:function(A){return clearTimeout(A)},delegate:void 0};function Dn(A){qn.setTimeout(function(){throw A})}function At(){}function OA(A){A()}var vt=function(A){DA(e,A);function e(t){var i=A.call(this)||this;return i.isStopped=!1,t?(i.destination=t,xt(t)&&t.add(i)):i.destination=Mn,i}return e.create=function(t,i,r){return new de(t,i,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,A.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(PA),Fn=function(){function A(e){this.partialObserver=e}return A.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(i){bA(i)}},A.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(i){bA(i)}else bA(e)},A.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){bA(t)}},A}(),de=function(A){DA(e,A);function e(t,i,r){var n=A.call(this)||this,o;return L(t)||!t?o={next:t!=null?t:void 0,error:i!=null?i:void 0,complete:r!=null?r:void 0}:o=t,n.destination=new Fn(o),n}return e}(vt);function bA(A){Dn(A)}function Zn(A){throw A}var Mn={closed:!0,next:At,error:Zn,complete:At},Gn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Hn(A){return A}function Rn(A){return A.length===0?Hn:A.length===1?A[0]:function(t){return A.reduce(function(i,r){return r(i)},t)}}var et=function(){function A(e){e&&(this._subscribe=e)}return A.prototype.lift=function(e){var t=new A;return t.source=this,t.operator=e,t},A.prototype.subscribe=function(e,t,i){var r=this,n=Un(e)?e:new de(e,t,i);return OA(function(){var o=r,a=o.operator,s=o.source;n.add(a?a.call(n,s):s?r._subscribe(n):r._trySubscribe(n))}),n},A.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},A.prototype.forEach=function(e,t){var i=this;return t=tt(t),new t(function(r,n){var o=new de({next:function(a){try{e(a)}catch(s){n(s),o.unsubscribe()}},error:n,complete:r});i.subscribe(o)})},A.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},A.prototype[Gn]=function(){return this},A.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Rn(e)(this)},A.prototype.toPromise=function(e){var t=this;return e=tt(e),new e(function(i,r){var n;t.subscribe(function(o){return n=o},function(o){return r(o)},function(){return i(n)})})},A.create=function(e){return new A(e)},A}();function tt(A){var e;return(e=A!=null?A:dn.Promise)!==null&&e!==void 0?e:Promise}function Sn(A){return A&&L(A.next)&&L(A.error)&&L(A.complete)}function Un(A){return A&&A instanceof vt||Sn(A)&&xt(A)}var bn=kt(function(A){return function(){A(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Wt=function(A){DA(e,A);function e(){var t=A.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var i=new it(this,this);return i.operator=t,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new bn},e.prototype.next=function(t){var i=this;OA(function(){var r,n;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=Qe(i.currentObservers),a=o.next();!a.done;a=o.next()){var s=a.value;s.next(t)}}catch(B){r={error:B}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},e.prototype.error=function(t){var i=this;OA(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var r=i.observers;r.length;)r.shift().error(t)}})},e.prototype.complete=function(){var t=this;OA(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var i=t.observers;i.length;)i.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),A.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var i=this,r=this,n=r.hasError,o=r.isStopped,a=r.observers;return n||o?Nt:(this.currentObservers=null,a.push(t),new PA(function(){i.currentObservers=null,pe(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var i=this,r=i.hasError,n=i.thrownError,o=i.isStopped;r?t.error(n):o&&t.complete()},e.prototype.asObservable=function(){var t=new et;return t.source=this,t},e.create=function(t,i){return new it(t,i)},e}(et),it=function(A){DA(e,A);function e(t,i){var r=A.call(this)||this;return r.destination=t,r.source=i,r}return e.prototype.next=function(t){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,t)},e.prototype.error=function(t){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,t)},e.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},e.prototype._subscribe=function(t){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&r!==void 0?r:Nt},e}(Wt),Lt={now:function(){return(Lt.delegate||Date).now()},delegate:void 0},Yn=function(A){DA(e,A);function e(t,i,r){t===void 0&&(t=1/0),i===void 0&&(i=1/0),r===void 0&&(r=Lt);var n=A.call(this)||this;return n._bufferSize=t,n._windowTime=i,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=i===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,i),n}return e.prototype.next=function(t){var i=this,r=i.isStopped,n=i._buffer,o=i._infiniteTimeWindow,a=i._timestampProvider,s=i._windowTime;r||(n.push(t),!o&&n.push(a.now()+s)),this._trimBuffer(),A.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),r=this,n=r._infiniteTimeWindow,o=r._buffer,a=o.slice(),s=0;s<a.length&&!t.closed;s+=n?1:2)t.next(a[s]);return this._checkFinalizedStatuses(t),i},e.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,r=t._timestampProvider,n=t._buffer,o=t._infiniteTimeWindow,a=(o?1:2)*i;if(i<1/0&&a<n.length&&n.splice(0,n.length-a),!o){for(var s=r.now(),B=0,u=1;u<n.length&&n[u]<=s;u+=2)B=u;B&&n.splice(0,B+1)}},e}(Wt);const rt=[],nt={},Kn=(A,e=0)=>{if(rt.indexOf(A)==-1){const t=new Yn(e);nt[A]=t,rt.push(A)}return nt[A]};window.emWidgets={topic:Kn};const yn=A=>!!(A.toLowerCase().match(/android/i)||A.toLowerCase().match(/blackberry|bb/i)||A.toLowerCase().match(/iphone|ipad|ipod/i)||A.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));String(Number.MAX_SAFE_INTEGER).length;function ot(A){return Object.prototype.toString.call(A)==="[object Date]"}function re(A){const e=A-1;return e*e*e+1}function qe(A,e){if(A===e||A!==A)return()=>A;const t=typeof A;if(t!==typeof e||Array.isArray(A)!==Array.isArray(e))throw new Error("Cannot interpolate values of different type");if(Array.isArray(A)){const i=e.map((r,n)=>qe(A[n],r));return r=>i.map(n=>n(r))}if(t==="object"){if(!A||!e)throw new Error("Object cannot be null");if(ot(A)&&ot(e)){A=A.getTime(),e=e.getTime();const n=e-A;return o=>new Date(A+o*n)}const i=Object.keys(e),r={};return i.forEach(n=>{r[n]=qe(A[n],e[n])}),n=>{const o={};return i.forEach(a=>{o[a]=r[a](n)}),o}}if(t==="number"){const i=e-A;return r=>A+r*i}throw new Error(`Cannot interpolate ${t} values`)}function ne(A,e={}){const t=dA(A);let i,r=A;function n(o,a){if(A==null)return t.set(A=o),Promise.resolve();r=o;let s=i,B=!1,{delay:u=0,duration:g=400,easing:h=ei,interpolate:l=qe}=Se(Se({},e),a);if(g===0)return s&&(s.abort(),s=null),t.set(A=r),Promise.resolve();const m=ii()+u;let E;return i=ri(Q=>{if(Q<m)return!0;B||(E=l(A,o),typeof g=="function"&&(g=g(A,o)),B=!0),s&&(s.abort(),s=null);const D=Q-m;return D>g?(t.set(A=o),!1):(t.set(A=E(h(D/g))),!0)}),i.promise}return{set:n,update:(o,a)=>n(o(r,A),a),subscribe:t.subscribe}}function On(A){ni(A,"svelte-1xpshu7",`.mobile.drawer{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile .icon-button{width:24px;height:24px}.mobile .chest-header__title{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500);line-height:14px}.mobile .chest-footer{gap:10px}.mobile .chest-footer__btn{width:170px;height:48px;font-size:var(--emw--font-size-medium, 16px)}.mobile .chest-footer__text{font-size:var(--emw--font-size-x-small, 12px);line-height:14px}.mobile .chest-footer__keys{font-size:var(--emw--font-size-small, 14px);line-height:16px}.drawer{position:fixed;left:50%;transform:translateX(-50%);background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%);box-sizing:border-box;z-index:10;transition:bottom 0.5s ease-in-out;bottom:0px;opacity:1;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px;display:flex;flex-direction:column}@media screen and (max-width: 1300px){.drawer{padding:20px 40px}}@media screen and (max-width: 992px){.drawer{width:70%}}@media screen and (max-width: 768px){.drawer{width:80%}}@media screen and (max-width: 576px){.drawer{width:90%}}.overlay{border:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5019607843));z-index:0;opacity:0;bottom:0px;opacity:1;transition:opacity 0.5s ease-in-out}.icon-button{width:30px;height:30px;border:0px;cursor:pointer}.icon-button.back{background:center/100% url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M10.3579 5.26604C10.0032 4.91132 9.42806 4.91132 9.07334 5.26604L5.26604 9.07334C4.91132 9.42806 4.91132 10.0032 5.26604 10.3579L9.07334 14.1652C9.42806 14.5199 10.0032 14.5199 10.3579 14.1652C10.7126 13.8105 10.7126 13.2354 10.3579 12.8806L8.10118 10.6239H10.7817C12.0761 10.6239 12.9922 10.6246 13.7085 10.6832C14.4142 10.7408 14.8455 10.85 15.1847 11.0229C15.8735 11.3738 16.4335 11.9338 16.7844 12.6226C16.9573 12.9618 17.0665 13.3931 17.1241 14.0989C17.1827 14.8151 17.1834 15.7312 17.1834 17.0256V18.0917C17.1834 18.5933 17.59 19 18.0917 19C18.5933 19 19 18.5933 19 18.0917V16.9854C19 15.74 19 14.7498 18.9347 13.9509C18.8679 13.1329 18.7281 12.4359 18.403 11.7978C17.8779 10.7673 17.04 9.92938 16.0095 9.40427C15.3714 9.07918 14.6744 8.9394 13.8564 8.87257C13.0575 8.80729 12.0673 8.8073 10.8219 8.8073H8.10118L10.3579 6.55059C10.7126 6.19587 10.7126 5.62076 10.3579 5.26604Z" fill="%23729787"/></svg>') no-repeat}.icon-button.close{background:center/100% url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat}.chest-header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.chest-header__title{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:var(--emw--font-weight-bold, 700);line-height:25px}.chest-icon{position:relative;z-index:1;width:290px}.chest-icon__container{flex-grow:1;position:relative;align-self:center;align-content:center}.chest-icon__container::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) rotate(-15deg);background:linear-gradient(317.36deg, #91caff 3.8%, #f3ffc2 100%);filter:blur(30px);mix-blend-mode:hard-light;width:225px;height:225px;border-radius:40px;pointer-events:none}.chest-icon__ticket{z-index:2;position:fixed;top:50%;left:50%;will-change:transform;transition:transform 0.3s ease-out}.chest-icon.empty{filter:grayscale(100%)}.chest-footer{display:flex;flex-direction:column;gap:20px;align-items:center;padding:32px 0 42px}.chest-footer.disabled{cursor:not-allowed;opacity:0.1}.chest-footer__btn{cursor:pointer;width:280px;height:60px;border-radius:54px;border:none;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium-plus, 18px);line-height:18px;letter-spacing:0px;color:var(--emw--color-background-secondary, #0c1a1c);transition:200ms}.chest-footer__btn:hover{filter:saturate(70%)}.chest-footer__text{margin:0;font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 16px);line-height:32px;letter-spacing:0px;text-align:center;color:var(--emw--color-primary, #d3ffed);display:flex;align-items:center;gap:8px}.chest-footer__keys{display:flex;align-items:center;gap:3px;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 16px);line-height:32px;letter-spacing:0px;text-align:center}`)}function at(A){let e,t;return{c(){e=M("img"),d(e,"class","chest-icon__ticket"),be(e,"transform","translate(calc(-50% + "+A[5]+"px), calc(-50% + "+A[6]+"px)) scale("+A[7]+")"),JA(e.src,t=Qn)||d(e,"src",t),d(e,"alt","Ticket")},m(i,r){W(i,e,r)},p(i,r){r&224&&be(e,"transform","translate(calc(-50% + "+i[5]+"px), calc(-50% + "+i[6]+"px)) scale("+i[7]+")")},d(i){i&&N(e)}}}function Jn(A){let e,t=A[8]("noMoreKeys")+"",i,r,n,o,a;return{c(){e=M("p"),i=z(t),r=v(),n=M("button"),n.textContent="OK",d(e,"class","chest-footer__text"),d(n,"class","chest-footer__btn")},m(s,B){W(s,e,B),p(e,i),W(s,r,B),W(s,n,B),o||(a=mA(n,"click",A[14]),o=!0)},p(s,B){B&256&&t!==(t=s[8]("noMoreKeys")+"")&&CA(i,t)},d(s){s&&(N(e),N(r),N(n)),o=!1,a()}}}function Vn(A){let e,t=A[8]("openChest")+"",i,r,n,o,a=A[8]("remainingKeys")+"",s,B,u,g,h,l,m,E=A[0].current.remainingTimes+"",Q,D,H;return{c(){e=M("button"),i=z(t),n=v(),o=M("p"),s=z(a),B=z(`:
19
19
  `),u=M("span"),g=M("img"),l=v(),m=M("span"),Q=z(E),d(e,"class","chest-footer__btn"),e.disabled=r=A[3]!==j,JA(g.src,h=wn)||d(g,"src",h),d(g,"alt","Key"),d(u,"class","chest-footer__keys"),d(o,"class","chest-footer__text")},m(w,f){W(w,e,f),p(e,i),W(w,n,f),W(w,o,f),p(o,s),p(o,B),p(o,u),p(u,g),p(u,l),p(u,m),p(m,Q),D||(H=mA(e,"click",A[15]),D=!0)},p(w,f){f&256&&t!==(t=w[8]("openChest")+"")&&CA(i,t),f&8&&r!==(r=w[3]!==j)&&(e.disabled=r),f&256&&a!==(a=w[8]("remainingKeys")+"")&&CA(s,a),f&1&&E!==(E=w[0].current.remainingTimes+"")&&CA(Q,E)},d(w){w&&(N(e),N(n),N(o)),D=!1,H()}}}function kn(A){let e,t,i,r,n,o,a,s,B=(A[0].program.name[A[1]]||A[0].program.name[xA.default])+"",u,g,h,l,m,E,Q,D,H,w,f,G,V,X,R=A[4]&&at(A);function FA(Z,y){return Z[0].current.remainingTimes?Vn:Jn}let $=FA(A),K=$(A);return{c(){e=M("div"),t=M("button"),i=v(),r=M("div"),n=M("div"),o=M("button"),a=v(),s=M("div"),u=z(B),g=v(),h=M("button"),l=v(),m=M("div"),E=M("img"),H=v(),R&&R.c(),w=v(),f=M("div"),K.c(),d(t,"class","overlay"),d(o,"class","icon-button back"),d(s,"class","chest-header__title"),d(h,"class","icon-button close"),d(n,"class","chest-header"),d(E,"class",Q="chest-icon "+(A[0].current.remainingTimes?"":"empty")),JA(E.src,D=A[3])||d(E,"src",D),d(E,"alt","Mystery chest"),d(m,"class","chest-icon__container"),d(f,"class",G="chest-footer "+(A[3]!==j?"disabled":"")),d(r,"class","drawer "+(A[9]?"mobile":"")),d(e,"part","CustomStylingContainer")},m(Z,y){W(Z,e,y),p(e,t),p(e,i),p(e,r),p(r,n),p(n,o),p(n,a),p(n,s),p(s,u),p(n,g),p(n,h),p(r,l),p(r,m),p(m,E),p(m,H),R&&R.m(m,null),p(r,w),p(r,f),K.m(f,null),A[21](e),V||(X=[mA(t,"click",A[13]),mA(o,"click",A[14]),mA(h,"click",A[13])],V=!0)},p(Z,[y]){y&3&&B!==(B=(Z[0].program.name[Z[1]]||Z[0].program.name[xA.default])+"")&&CA(u,B),y&1&&Q!==(Q="chest-icon "+(Z[0].current.remainingTimes?"":"empty"))&&d(E,"class",Q),y&8&&!JA(E.src,D=Z[3])&&d(E,"src",D),Z[4]?R?R.p(Z,y):(R=at(Z),R.c(),R.m(m,null)):R&&(R.d(1),R=null),$===($=FA(Z))&&K?K.p(Z,y):(K.d(1),K=$(Z),K&&(K.c(),K.m(f,null))),y&8&&G!==(G="chest-footer "+(Z[3]!==j?"disabled":""))&&d(f,"class",G)},i:J,o:J,d(Z){Z&&N(e),R&&R.d(),K.d(),A[21](null),V=!1,BA(X)}}}function Nn(A,e,t){let i,r,n,o;RA(A,En,c=>t(8,o=c));let{lang:a=xA.en}=e,{endpoint:s=""}=e,{session:B=""}=e,{clientstyling:u=""}=e,{clientstylingurl:g=""}=e,{translationurl:h=""}=e,{activeChest:l}=e,m=window.navigator.userAgent,E=yn(m),Q,D=j,H=!1;const w=ne(0,{duration:300,easing:re});RA(A,w,c=>t(5,i=c));const f=ne(0,{duration:300,easing:re});RA(A,f,c=>t(6,r=c));const G=ne(.1,{duration:300,easing:re});RA(A,G,c=>t(7,n=c));const V=()=>{let c=document.createElement("style");c.innerHTML=u,Q.appendChild(c)},X=()=>{let c=new URL(g),U=document.createElement("style");fetch(c.href).then(b=>b.text()).then(b=>{U.innerHTML=b,setTimeout(()=>{Q.appendChild(U)},1)})},R=()=>{fetch(h).then(U=>U.json()).then(U=>{Object.keys(U).forEach(b=>{Xe(b,U[b])})})};Object.keys(_e).forEach(c=>{Xe(c,_e[c])});const FA=()=>{ln(a)},$=()=>{UA({type:"CloseMysteryChestDrawer"})},K=()=>{UA({type:"BackToMysteryChestList"})},Z=()=>{t(4,H=!0);const c=window.innerHeight,U=c/2,jt=c-c+(c-(E?505:575))/2+200/2-U;w.set(0),f.set(jt),G.set(.9)},y=(c,U)=>{setTimeout(()=>UA(c),U)},Pt=()=>T(this,null,function*(){var c,U;if(l){t(3,D=Cn);const b=yield je.draw(s,B,l.program.id);if(((c=b==null?void 0:b.item)==null?void 0:c.state)===Jt.fulfilled){t(3,D=In);const Y=l.program.wheelOfFortune.partitions[b.item.result.wheelOfFortunePartitionIndex];if(b.item.result.outcomes.some(ZA=>{var EA;return((EA=ZA.action)==null?void 0:EA.type)===Vt.noPrize}))y({type:"ShowEmptyOpeningMessage"},200);else{const ZA=(Y==null?void 0:Y.prizeText[a])||(Y==null?void 0:Y.prizeText["*"]),EA=(Y==null?void 0:Y.name[a])||(Y==null?void 0:Y.name["*"]);Z(),y({type:"ShowSuccessOpeningMessage",data:ZA||EA},500)}}else UA({type:"ShowErrorOpeningMessage"}),t(3,D=j);const{items:Me}=yield je.remainingTimes(s,B,l.program.id);t(0,l.current.remainingTimes=+((U=Me[0])==null?void 0:U.remainingTimes)||0,l)}});mn({HideDialog:()=>{t(3,D=j),t(4,H=!1),w.set(0),f.set(0),G.set(.1)}});function Xt(c){oe[c?"unshift":"push"](()=>{Q=c,t(2,Q)})}return A.$$set=c=>{"lang"in c&&t(1,a=c.lang),"endpoint"in c&&t(16,s=c.endpoint),"session"in c&&t(17,B=c.session),"clientstyling"in c&&t(18,u=c.clientstyling),"clientstylingurl"in c&&t(19,g=c.clientstylingurl),"translationurl"in c&&t(20,h=c.translationurl),"activeChest"in c&&t(0,l=c.activeChest)},A.$$.update=()=>{A.$$.dirty&2&&a&&FA(),A.$$.dirty&262148&&u&&Q&&V(),A.$$.dirty&524292&&g&&Q&&X(),A.$$.dirty&1048576&&h&&R()},[l,a,Q,D,H,i,r,n,o,E,w,f,G,$,K,Pt,s,B,u,g,h,Xt]}class Tt extends di{constructor(e){super(),fi(this,e,Nn,kn,Bt,{lang:1,endpoint:16,session:17,clientstyling:18,clientstylingurl:19,translationurl:20,activeChest:0},On)}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),x()}get endpoint(){return this.$$.ctx[16]}set endpoint(e){this.$$set({endpoint:e}),x()}get session(){return this.$$.ctx[17]}set session(e){this.$$set({session:e}),x()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(e){this.$$set({clientstyling:e}),x()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),x()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),x()}get activeChest(){return this.$$.ctx[0]}set activeChest(e){this.$$set({activeChest:e}),x()}}pi(Tt,{lang:{},endpoint:{},session:{},clientstyling:{},clientstylingurl:{},translationurl:{},activeChest:{}},[],[],!0);exports.default=Tt;
@@ -4330,6 +4330,7 @@ const Te = [], Pe = {}, fn = (A, e = 0) => {
4330
4330
  };
4331
4331
  window.emWidgets = { topic: fn };
4332
4332
  const pn = (A) => !!(A.toLowerCase().match(/android/i) || A.toLowerCase().match(/blackberry|bb/i) || A.toLowerCase().match(/iphone|ipad|ipod/i) || A.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4333
+ String(Number.MAX_SAFE_INTEGER).length;
4333
4334
  function Xe(A) {
4334
4335
  return Object.prototype.toString.call(A) === "[object Date]";
4335
4336
  }
@@ -4377,6 +4377,7 @@ const rt = [], nt = {}, Yn = (A, e = 0) => {
4377
4377
  };
4378
4378
  window.emWidgets = { topic: Yn };
4379
4379
  const Kn = (A) => !!(A.toLowerCase().match(/android/i) || A.toLowerCase().match(/blackberry|bb/i) || A.toLowerCase().match(/iphone|ipad|ipod/i) || A.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4380
+ String(Number.MAX_SAFE_INTEGER).length;
4380
4381
  function ot(A) {
4381
4382
  return Object.prototype.toString.call(A) === "[object Date]";
4382
4383
  }
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CasinoMysteryChestDetails-BcOpieCY.cjs")).then(({default:t})=>{!customElements.get("casino-mystery-chest-details")&&customElements.define("casino-mystery-chest-details",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CasinoMysteryChestDetails-ByRIGRDV.cjs")).then(({default:t})=>{!customElements.get("casino-mystery-chest-details")&&customElements.define("casino-mystery-chest-details",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = s(customElements.define), import("../components/CasinoMysteryChestDetails-CEPN2h26.js").then(({ default: t }) => {
13
+ customElements.define = s(customElements.define), import("../components/CasinoMysteryChestDetails-DGFzQSTP.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-mystery-chest-details") && customElements.define("casino-mystery-chest-details", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as n } from "../components/CasinoMysteryChestDetails-Cowh4jl_.js";
1
+ import { C as n } from "../components/CasinoMysteryChestDetails-C1xv6Jyx.js";
2
2
  function i(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-mystery-chest-details",
3
- "version": "1.85.17",
3
+ "version": "1.85.18",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-mystery-chest-details.cjs",
6
6
  "module": "es2015/casino-mystery-chest-details.js",