@everymatrix/casino-integrated-game-page 1.23.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* https://svelte.dev/docs#run-time-svelte-onmount
|
|
10
10
|
*/
|
|
11
|
-
function O(e){(function(){if(!c)throw new Error("Function called outside component initialization");return c})().$$.on_mount.push(e)}const P=[],B=[];let H=[];const
|
|
11
|
+
function O(e){(function(){if(!c)throw new Error("Function called outside component initialization");return c})().$$.on_mount.push(e)}const P=[],B=[];let H=[];const F=[],A=Promise.resolve();let N=!1;function C(e){H.push(e)}
|
|
12
12
|
// flush() calls callbacks in this order:
|
|
13
13
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
|
14
14
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
|
@@ -43,13 +43,13 @@ throw P.length=0,R=0,e}for(D(null),P.length=0,R=0;B.length;)B.pop()();
|
|
|
43
43
|
// subsequent updates...
|
|
44
44
|
for(let e=0;e<H.length;e+=1){const t=H[e];L.has(t)||(
|
|
45
45
|
// ...so guard against infinite loops
|
|
46
|
-
L.add(t),t())}H.length=0}while(P.length);for(;
|
|
46
|
+
L.add(t),t())}H.length=0}while(P.length);for(;F.length;)F.pop()();N=!1,L.clear(),D(e)}function Y(e){if(null!==e.fragment){e.update(),s(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(C)}}
|
|
47
47
|
/**
|
|
48
48
|
* Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
|
|
49
49
|
*/const U=new Set;function $(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];H.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),H=t}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(t),
|
|
50
50
|
// TODO null out other refs, including component.$$ (but need to
|
|
51
51
|
// preserve final state?)
|
|
52
|
-
n.on_destroy=n.fragment=null,n.ctx=[])}function G(e,t){-1===e.$$.dirty[0]&&(P.push(e),N||(N=!0,
|
|
52
|
+
n.on_destroy=n.fragment=null,n.ctx=[])}function G(e,t){-1===e.$$.dirty[0]&&(P.push(e),N||(N=!0,A.then(I)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function j(e,t,n,l,u,h,d,f=[-1]){const p=c;D(e);const m=e.$$={fragment:null,ctx:[],
|
|
53
53
|
// state
|
|
54
54
|
props:h,update:r,not_equal:u,bound:o(),
|
|
55
55
|
// lifecycle
|
|
@@ -130,7 +130,7 @@ var ge=self.fetch.bind(self),ve=function(e,t){return ve=Object.setPrototypeOf||{
|
|
|
130
130
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
131
131
|
PERFORMANCE OF THIS SOFTWARE.
|
|
132
132
|
***************************************************************************** */
|
|
133
|
-
/* global Reflect, Promise, SuppressedError, Symbol */function be(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ve(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function we(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _e(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Ee(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Se(e){return"function"==typeof e}function Te(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}"function"==typeof SuppressedError&&SuppressedError;var Me=Te((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function ke(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var xe=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=we(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;if(Se(l))try{l()}catch(e){i=e instanceof Me?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=we(u),h=c.next();!h.done;h=c.next()){var d=h.value;try{Pe(d)}catch(e){i=null!=i?i:[],e instanceof Me?i=Ee(Ee([],_e(i)),_e(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new Me(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Pe(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&ke(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&ke(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),De=xe.EMPTY;function Oe(e){return e instanceof xe||e&&"closed"in e&&Se(e.remove)&&Se(e.add)&&Se(e.unsubscribe)}function Pe(e){Se(e)?e():e.unsubscribe()}var Be={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},He={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=He.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Ee([e,t],_e(n))):setTimeout.apply(void 0,Ee([e,t],_e(n)))},clearTimeout:function(e){var t=He.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ae(){}var Fe=null;function Ne(e){if(Be.useDeprecatedSynchronousErrorHandling){var t=!Fe;if(t&&(Fe={errorThrown:!1,error:null}),e(),t){var n=Fe,r=n.errorThrown,i=n.error;if(Fe=null,r)throw i}}else e()}var Ce=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Oe(t)&&t.add(n)):n.destination=$e,n}return be(t,e),t.create=function(e,t,n){return new Ye(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(xe),Le=Function.prototype.bind;function Re(e,t){return Le.call(e,t)}var Ie=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Ue(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Ue(e)}else Ue(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Ue(e)}},e}(),Ye=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;Se(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&Be.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&Re(t.next,o),error:t.error&&Re(t.error,o),complete:t.complete&&Re(t.complete,o)}):i=t;return s.destination=new Ie(i),s}return be(t,e),t}(Ce);function Ue(e){var t;t=e,He.setTimeout((function(){throw t}))}var $e={closed:!0,next:Ae,error:function(e){throw e},complete:Ae},Ge="function"==typeof Symbol&&Symbol.observable||"@@observable";function je(e){return e}var We=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof Ce||function(e){return e&&Se(e.next)&&Se(e.error)&&Se(e.complete)}(r)&&Oe(r)?e:new Ye(e,t,n);return Ne((function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=Ve(t))((function(t,r){var i=new Ye({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ge]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?je:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Ve(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function Ve(e){var t;return null!==(t=null!=e?e:Be.Promise)&&void 0!==t?t:Promise}var ze=Te((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ze=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return be(t,e),t.prototype.lift=function(e){var t=new Xe(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new ze},t.prototype.next=function(e){var t=this;Ne((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=we(t.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;Ne((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Ne((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?De:(this.currentObservers=null,o.push(e),new xe((function(){t.currentObservers=null,ke(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new We;return e.source=this,e},t.create=function(e,t){return new Xe(e,t)},t}(We),Xe=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return be(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:De},t}(Ze),qe={now:function(){return(qe.delegate||Date).now()},delegate:void 0},Ke=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=qe);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return be(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,a=n._windowTime;r||(i.push(t),!o&&i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var s=n.now(),a=0,l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}},t}(Ze);let Je=[],Qe={};
|
|
133
|
+
/* global Reflect, Promise, SuppressedError, Symbol */function be(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ve(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function we(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _e(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Ee(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Se(e){return"function"==typeof e}function Te(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}"function"==typeof SuppressedError&&SuppressedError;var Me=Te((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function ke(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var xe=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=we(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;if(Se(l))try{l()}catch(e){i=e instanceof Me?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=we(u),h=c.next();!h.done;h=c.next()){var d=h.value;try{Pe(d)}catch(e){i=null!=i?i:[],e instanceof Me?i=Ee(Ee([],_e(i)),_e(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new Me(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Pe(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&ke(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&ke(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),De=xe.EMPTY;function Oe(e){return e instanceof xe||e&&"closed"in e&&Se(e.remove)&&Se(e.add)&&Se(e.unsubscribe)}function Pe(e){Se(e)?e():e.unsubscribe()}var Be={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},He={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=He.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Ee([e,t],_e(n))):setTimeout.apply(void 0,Ee([e,t],_e(n)))},clearTimeout:function(e){var t=He.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Fe(){}var Ae=null;function Ne(e){if(Be.useDeprecatedSynchronousErrorHandling){var t=!Ae;if(t&&(Ae={errorThrown:!1,error:null}),e(),t){var n=Ae,r=n.errorThrown,i=n.error;if(Ae=null,r)throw i}}else e()}var Ce=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Oe(t)&&t.add(n)):n.destination=$e,n}return be(t,e),t.create=function(e,t,n){return new Ye(e,t,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(xe),Le=Function.prototype.bind;function Re(e,t){return Le.call(e,t)}var Ie=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Ue(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Ue(e)}else Ue(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Ue(e)}},e}(),Ye=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;Se(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&Be.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&Re(t.next,o),error:t.error&&Re(t.error,o),complete:t.complete&&Re(t.complete,o)}):i=t;return s.destination=new Ie(i),s}return be(t,e),t}(Ce);function Ue(e){var t;t=e,He.setTimeout((function(){throw t}))}var $e={closed:!0,next:Fe,error:function(e){throw e},complete:Fe},Ge="function"==typeof Symbol&&Symbol.observable||"@@observable";function je(e){return e}var We=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof Ce||function(e){return e&&Se(e.next)&&Se(e.error)&&Se(e.complete)}(r)&&Oe(r)?e:new Ye(e,t,n);return Ne((function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=Ve(t))((function(t,r){var i=new Ye({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ge]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===(e=t).length?je:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Ve(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function Ve(e){var t;return null!==(t=null!=e?e:Be.Promise)&&void 0!==t?t:Promise}var ze=Te((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ze=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return be(t,e),t.prototype.lift=function(e){var t=new Xe(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new ze},t.prototype.next=function(e){var t=this;Ne((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=we(t.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;Ne((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Ne((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?De:(this.currentObservers=null,o.push(e),new xe((function(){t.currentObservers=null,ke(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new We;return e.source=this,e},t.create=function(e,t){return new Xe(e,t)},t}(We),Xe=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return be(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:De},t}(Ze),qe={now:function(){return(qe.delegate||Date).now()},delegate:void 0},Ke=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=qe);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return be(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,a=n._windowTime;r||(i.push(t),!o&&i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var s=n.now(),a=0,l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}},t}(Ze);let Je=[],Qe={};
|
|
134
134
|
/**
|
|
135
135
|
* @name topic
|
|
136
136
|
* @description A small wrapper over the rxjs to offer the topic method on top of it
|
|
@@ -312,7 +312,7 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
|
312
312
|
case"x":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
313
313
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
|
|
314
314
|
// @generated from regex-gen.ts
|
|
315
|
-
var
|
|
315
|
+
var Ft=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var At=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Nt=/^(@+)?(\+|#+)?[rs]?$/g,Ct=/(\*)(0+)|(#+)(0+)|(0+)/g,Lt=/^(0+)$/;function Rt(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Nt,(function(e,n,r){
|
|
316
316
|
// @@@ case
|
|
317
317
|
return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function It(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Yt(e){
|
|
318
318
|
// Engineering
|
|
@@ -325,11 +325,11 @@ case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";
|
|
|
325
325
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
326
326
|
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Ct,(function(e,n,r,i,o,s){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
|
|
327
327
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
328
|
-
if(Lt.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(
|
|
328
|
+
if(Lt.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(At.test(i.stem)){
|
|
329
329
|
// Precision
|
|
330
330
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
|
|
331
331
|
// precision-integer case
|
|
332
|
-
if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(
|
|
332
|
+
if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(At,(function(e,n,r,i,o,s){
|
|
333
333
|
// .000* case (before ICU67 it was .000+)
|
|
334
334
|
return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var o=i.options[0];
|
|
335
335
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
@@ -500,7 +500,7 @@ e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePos
|
|
|
500
500
|
// Find the end of the quoted literal text.
|
|
501
501
|
this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(pt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Zt(n,this.clonePosition()));this.bump();break;case 123/* `{` */:e+=1,this.bump();break;case 125/* `}` */:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
|
|
502
502
|
// Parse the skeleton
|
|
503
|
-
for(var t=[],n=0,r=e.split(
|
|
503
|
+
for(var t=[],n=0,r=e.split(Ft).filter((function(e){return e.length>0}));n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,l=s;a<l.length;a++)if(0===l[a].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:s})}return t}(e)}catch(e){return this.error(pt.INVALID_NUMBER_SKELETON,t)}return{val:{type:yt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?$t(n):{}},err:null}},
|
|
504
504
|
/**
|
|
505
505
|
* @param nesting_level The current nesting level of messages.
|
|
506
506
|
* This can be positive when parsing message fragment in select or plural argument options.
|
|
@@ -602,7 +602,7 @@ e.MISSING_VALUE="MISSING_VALUE",
|
|
|
602
602
|
// When value supplied is invalid
|
|
603
603
|
e.INVALID_VALUE="INVALID_VALUE",
|
|
604
604
|
// When we need specific Intl API but it's not available
|
|
605
|
-
e.MISSING_INTL_API="MISSING_INTL_API"}(kn||(kn={}));var On,Pn=/** @class */function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return ft(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Bn=/** @class */function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),kn.INVALID_VALUE,i)||this}return ft(t,e),t}(Pn),Hn=/** @class */function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),kn.INVALID_VALUE,r)||this}return ft(t,e),t}(Pn),
|
|
605
|
+
e.MISSING_INTL_API="MISSING_INTL_API"}(kn||(kn={}));var On,Pn=/** @class */function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return ft(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Bn=/** @class */function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),kn.INVALID_VALUE,i)||this}return ft(t,e),t}(Pn),Hn=/** @class */function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),kn.INVALID_VALUE,r)||this}return ft(t,e),t}(Pn),Fn=/** @class */function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),kn.MISSING_VALUE,n)||this}return ft(t,e),t}(Pn);function An(e){return"function"==typeof e}
|
|
606
606
|
// TODO(skeleton): add skeleton support
|
|
607
607
|
function Nn(e,t,n,r,i,o,
|
|
608
608
|
// For debugging
|
|
@@ -615,11 +615,11 @@ if(bt(c))a.push({type:On.literal,value:c.value});else
|
|
|
615
615
|
// Replace `#` in plural rules with the actual numeric value.
|
|
616
616
|
if(kt(c))"number"==typeof o&&a.push({type:On.literal,value:n.getNumberFormat(t).format(o)});else{var h=c.value;
|
|
617
617
|
// Enforce that all required values are provided by the caller.
|
|
618
|
-
if(!i||!(h in i))throw new
|
|
618
|
+
if(!i||!(h in i))throw new Fn(h,s);var d=i[h];if(wt(c))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?On.literal:On.object,value:d});else
|
|
619
619
|
// Recursively format plural and select parts' option — which can be a
|
|
620
620
|
// nested pattern structure. The choosing of the option to use is
|
|
621
621
|
// abstracted-by and delegated-to the part helper object.
|
|
622
|
-
if(Et(c)){var f="string"==typeof c.style?r.date[c.style]:Ot(c.style)?c.style.parsedOptions:void 0;a.push({type:On.literal,value:n.getDateTimeFormat(t,f).format(d)})}else if(St(c)){f="string"==typeof c.style?r.time[c.style]:Ot(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:On.literal,value:n.getDateTimeFormat(t,f).format(d)})}else if(_t(c)){(f="string"==typeof c.style?r.number[c.style]:Dt(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(d*=f.scale||1),a.push({type:On.literal,value:n.getNumberFormat(t,f).format(d)})}else{if(xt(c)){var p=c.children,m=c.value,y=i[m];if(!
|
|
622
|
+
if(Et(c)){var f="string"==typeof c.style?r.date[c.style]:Ot(c.style)?c.style.parsedOptions:void 0;a.push({type:On.literal,value:n.getDateTimeFormat(t,f).format(d)})}else if(St(c)){f="string"==typeof c.style?r.time[c.style]:Ot(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:On.literal,value:n.getDateTimeFormat(t,f).format(d)})}else if(_t(c)){(f="string"==typeof c.style?r.number[c.style]:Dt(c.style)?c.style.parsedOptions:void 0)&&f.scale&&(d*=f.scale||1),a.push({type:On.literal,value:n.getNumberFormat(t,f).format(d)})}else{if(xt(c)){var p=c.children,m=c.value,y=i[m];if(!An(y))throw new Hn(m,"function",s);var g=y(Nn(p,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map((function(e){return{type:"string"==typeof e?On.literal:On.object,value:e}})))}if(Tt(c)){if(!(v=c.options[d]||c.options.other))throw new Bn(c.value,d,Object.keys(c.options),s);a.push.apply(a,Nn(v.value,t,n,r,i))}else if(Mt(c)){var v;if(!(v=c.options["=".concat(d)])){if(!Intl.PluralRules)throw new Pn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',kn.MISSING_INTL_API,s);var b=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));v=c.options[b]||c.options.other}if(!v)throw new Bn(c.value,d,Object.keys(c.options),s);a.push.apply(a,Nn(v.value,t,n,r,i,d-(c.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===On.literal&&t.type===On.literal?n.value+=t.value:e.push(t),e}),[])}(a)}
|
|
623
623
|
/*
|
|
624
624
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
625
625
|
Copyrights licensed under the New BSD License.
|
|
@@ -641,7 +641,7 @@ this.formats=Cn(e.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.
|
|
|
641
641
|
// and Intl.DateTimeFormat instances.
|
|
642
642
|
e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const In={},Yn=(e,t,n)=>n?(t in In||(In[t]={}),e in In[t]||(In[t][e]=n),n):n,Un=(e,t)=>{if(null==t)return;if(t in In&&e in In[t])return In[t][e];const n=dr(t);for(let r=0;r<n.length;r++){const i=Wn(n[r],e);if(i)return Yn(e,t,i)}};let $n;const Gn=tt({});function jn(e){return e in $n}function Wn(e,t){if(!jn(e))return null;const n=function(e){return $n[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(e>0){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(n,t)}function Vn(e,...t){delete In[e],Gn.update((n=>(n[e]=ht.all([n[e]||{},...t]),n)))}nt([Gn],(([e])=>Object.keys(e))),Gn.subscribe((e=>$n=e));const zn={};function Zn(e){return zn[e]}function Xn(e){return null!=e&&dr(e).some((e=>{var t;return null==(t=Zn(e))?void 0:t.size}))}function qn(e,t){const n=Promise.all(t.map((t=>(function(e,t){zn[e].delete(t),0===zn[e].size&&delete zn[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>Vn(e,...t)))}const Kn={};function Jn(e){if(!Xn(e))return e in Kn?Kn[e]:Promise.resolve();const t=function(e){return dr(e).map((e=>{const t=Zn(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Kn[e]=Promise.all(t.map((([e,t])=>qn(e,t)))).then((()=>{if(Xn(e))return Jn(e);delete Kn[e]})),Kn[e]}const Qn={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function er(){return Qn}const tr=tt(!1);var nr=Object.defineProperty,rr=Object.defineProperties,ir=Object.getOwnPropertyDescriptors,or=Object.getOwnPropertySymbols,sr=Object.prototype.hasOwnProperty,ar=Object.prototype.propertyIsEnumerable,lr=(e,t,n)=>t in e?nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let ur;const cr=tt(null);function hr(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function dr(e,t=er().fallbackLocale){const n=hr(e);return t?[...new Set([...n,...hr(t)])]:n}function fr(){return null!=ur?ur:void 0}cr.subscribe((e=>{ur=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const pr=(mr=((e,t)=>{for(var n in t||(t={}))sr.call(t,n)&&lr(e,n,t[n]);if(or)for(var n of or(t))ar.call(t,n)&&lr(e,n,t[n]);return e})({},cr),rr(mr,ir({set:e=>{if(e&&function(e){if(null==e)return;const t=dr(e);for(let e=0;e<t.length;e++){const n=t[e];if(jn(n))return n}}(e)&&Xn(e)){const{loadingDelay:t}=er();let n;return"undefined"!=typeof window&&null!=fr()&&t?n=window.setTimeout((()=>tr.set(!0)),t):tr.set(!0),Jn(e).then((()=>{cr.set(e)})).finally((()=>{clearTimeout(n),tr.set(!1)}))}return cr.set(e)}})));var mr;const yr=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}};var gr=Object.defineProperty,vr=Object.getOwnPropertySymbols,br=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,_r=(e,t,n)=>t in e?gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Er=(e,t)=>{for(var n in t||(t={}))br.call(t,n)&&_r(e,n,t[n]);if(vr)for(var n of vr(t))wr.call(t,n)&&_r(e,n,t[n]);return e},Sr=(e,t)=>{var n={};for(var r in e)br.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&vr)for(var r of vr(e))t.indexOf(r)<0&&wr.call(e,r)&&(n[r]=e[r]);return n};const Tr=(e,t)=>{const{formats:n}=er();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Mr=yr((e=>{var t=e,{locale:n,format:r}=t,i=Sr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Tr("number",r)),new Intl.NumberFormat(n,i)})),kr=yr((e=>{var t=e,{locale:n,format:r}=t,i=Sr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Tr("date",r):0===Object.keys(i).length&&(i=Tr("date","short")),new Intl.DateTimeFormat(n,i)})),xr=yr((e=>{var t=e,{locale:n,format:r}=t,i=Sr(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Tr("time",r):0===Object.keys(i).length&&(i=Tr("time","short")),new Intl.DateTimeFormat(n,i)})),Dr=yr((
|
|
643
643
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
644
|
-
(e,t=fr())=>new Rn(e,t,er().formats,{ignoreTag:er().ignoreTag}))),Or=(e,t={})=>{var n,r,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=fr(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Un(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(r=(n=er()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))?i:u)?o:e;if(!a)return c;let h=c;try{h=Dr(c,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},Pr=(e,t)=>((e={})=>{var t=e,{locale:n=fr()}=t,r=Sr(t,["locale"]);return xr(Er({locale:n},r))})(t).format(e),Br=(e,t)=>((e={})=>{var t=e,{locale:n=fr()}=t,r=Sr(t,["locale"]);return kr(Er({locale:n},r))})(t).format(e),Hr=(e,t)=>((e={})=>{var t=e,{locale:n=fr()}=t,r=Sr(t,["locale"]);return Mr(Er({locale:n},r))})(t).format(e),
|
|
644
|
+
(e,t=fr())=>new Rn(e,t,er().formats,{ignoreTag:er().ignoreTag}))),Or=(e,t={})=>{var n,r,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=fr(),default:u}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Un(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(r=(n=er()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))?i:u)?o:e;if(!a)return c;let h=c;try{h=Dr(c,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},Pr=(e,t)=>((e={})=>{var t=e,{locale:n=fr()}=t,r=Sr(t,["locale"]);return xr(Er({locale:n},r))})(t).format(e),Br=(e,t)=>((e={})=>{var t=e,{locale:n=fr()}=t,r=Sr(t,["locale"]);return kr(Er({locale:n},r))})(t).format(e),Hr=(e,t)=>((e={})=>{var t=e,{locale:n=fr()}=t,r=Sr(t,["locale"]);return Mr(Er({locale:n},r))})(t).format(e),Fr=(e,t=fr())=>Un(e,t),Ar=nt([pr,Gn],(()=>Or));nt([pr],(()=>Pr)),nt([pr],(()=>Br)),nt([pr],(()=>Hr)),nt([pr,Gn],(()=>Fr)),window.emWidgets={topic:(e,t=0)=>{if(-1==Je.indexOf(e)){let n=new Ke(t);Qe[e]=n,Je.push(e)}return Qe[e]}};
|
|
645
645
|
/**
|
|
646
646
|
* @name isMobile
|
|
647
647
|
* @description A method that returns if the browser used to access the app is from a mobile device or not
|
|
@@ -656,13 +656,13 @@ const Nr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/i
|
|
|
656
656
|
* @returns {String} Android/iPhone/iPad/PC
|
|
657
657
|
*/function Cr(e,t){Vn(e,t)}const Lr={en:{signIn:"Log in",register:"REGISTER",deposit:"Deposit",playForFun:"Play for fun",playNow:"Start now!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},"zh-hk":{signIn:"登錄",register:"登記",deposit:"訂金",playForFun:"玩得開心",playNow:"現在開始!",breakButton:"休息 1 天"},de:{signIn:"Einloggen",register:"REGISTRIEREN",deposit:"Einzahlung",playForFun:"Play for fun",playNow:"Jetzt beginnen!",breakButton:"Für 24 Std. Games Sofortpause, 3 Sekunden drücken"},it:{signIn:"Login",register:"REGISTRATI",deposit:"Deposito",playForFun:"Play for fun",playNow:"Inizia ora!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},fr:{signIn:"Connectez-vous",register:"Enregistre",deposit:"Dépôt",playForFun:"Jouer pour le plaisir",playNow:"Commencez maintenant",breakButton:"Refroidissement de 24 heures"},es:{signIn:"Iniciar sesión",register:"REGÍSTRATE",deposit:"Deposita",playForFun:"Modo práctica",playNow:"Juega ahora!",breakButton:"Dar clic durante 3 segundos para bloquear instantaneamente tu cuenta por 24 horas"},tr:{signIn:"OTURUM AÇ",register:"KAYIT OL",deposit:"DEPOZİTO",playForFun:"EĞLENCE İÇİN OYNA",playNow:"ŞİMDİ OYNA",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},ru:{signIn:"АВТОРИЗОВАТЬСЯ",register:"ПОДПИСАТЬСЯ",deposit:"ДЕПОЗИТ",playForFun:"ИГРАЙТЕ ДЛЯ УДОВОЛЬСТВИЯ",playNow:"ИГРАТЬ СЕЙЧАС",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},ro:{signIn:"AUTENTIFICARE",register:"INREGISTRARE",deposit:"DEPOZITEAZA",playForFun:"JOACĂ PENTRU DISTRACTIE",playNow:"JOACĂ ACUM",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},hr:{signIn:"Prijava",register:"registracija",deposit:"uplata",playForFun:"demo igra",playNow:"kreni",breakButton:"pritisni tipku 3 sekunde kako bi zaključali račun 24 sata"},hu:{signIn:"Bejelentkezés",register:"REGISZTRÁCIÓ",deposit:"Befizetés",playForFun:"Play for fun",playNow:"Játsszon most!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},pl:{signIn:"Zaloguj się",register:"REJESTRACJA",deposit:"Wpłata",playForFun:"Graj dla zabawy",playNow:"Rozpocznij teraz!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},pt:{signIn:"Entrar",register:"REGISTRO",deposit:"Depósito",playForFun:"Jogue por diversão",playNow:"Jogue agora!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},sl:{signIn:"Prijavite se",register:"REGISTRACIJA",deposit:"Vplačilo",playForFun:"Igrajte za zabavo",playNow:"Začnite zdaj!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"},sr:{signIn:"Prijavi se",register:"REGISTRACIJA",deposit:"Uplata",playForFun:"Igraj za zabavu",playNow:"Započnite sada!",breakButton:"Hold button for 3 seconds to take 24-hours instant lock"}};function Rr(e,t){Vn(e,t)}const Ir={en:{title:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{title:"訂金",loading:"加載請稍候…"},fr:{title:"Dépôt",loading:"Chargement, veuillez patienter ..."},ro:{title:"Depunere",loading:"Se încarcă..."},es:{title:"Deposita",loading:"Cargando ..."},pt:{title:"Depósito",loading:"Carregando, por favor espere ..."}};
|
|
658
658
|
/* ../player-deposit/src/PlayerDeposit.svelte generated by Svelte v3.59.2 */
|
|
659
|
-
// (
|
|
660
|
-
function Yr(e){let t,n,r;return{c(){t=g("div"),n=g("iframe"),h(n.src,r=/*iframeUrl*/e[
|
|
661
|
-
// (
|
|
662
|
-
function Ur(e){let t,n,r=/*$_*/e[
|
|
663
|
-
return e[1]?Ur:Yr}let c=u(e),h=c(e);return{c(){t=g("div"),l&&l.c(),n=w(),i=g("h2"),o=b(a),s=w(),h.c(),this.c=r,E(i,"class","DepositTitle "+(/*isMobile*/e[
|
|
664
|
-
/*div_binding*/e[
|
|
665
|
-
/*div_binding*/e[
|
|
659
|
+
// (157:2) {:else}
|
|
660
|
+
function Yr(e){let t,n,r;return{c(){t=g("div"),n=g("iframe"),h(n.src,r=/*iframeUrl*/e[3])||E(n,"src",r),E(n,"title","Deposit Iframe"),E(t,"class","DepositIframeWrapper")},m(e,r){m(e,t,r),p(t,n)},p(e,t){/*iframeUrl*/8&t&&!h(n.src,r=/*iframeUrl*/e[3])&&E(n,"src",r)},d(e){e&&y(t)}}}
|
|
661
|
+
// (155:2) {#if isLoading}
|
|
662
|
+
function Ur(e){let t,n,r=/*$_*/e[4]("loading")+"";return{c(){t=g("p"),n=b(r)},m(e,r){m(e,t,r),p(t,n)},p(e,t){/*$_*/16&t&&r!==(r=/*$_*/e[4]("loading")+"")&&T(n,r)},d(e){e&&y(t)}}}function $r(e){let t,n,i,o,s,a=/*$_*/e[4]("title")+"",l=/*isMobile*/e[5]&&function(e){let t,n,r,i,o,s,a,l,u,c,h,d,f,S=/*$_*/e[4]("title")+"";return{c(){t=g("div"),n=v("svg"),r=v("defs"),i=v("style"),o=b(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),s=v("g"),a=v("g"),l=v("path"),u=w(),c=g("h2"),h=b(S),E(l,"class","aaa"),E(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),E(l,"transform","translate(15 15) rotate(180)"),E(a,"transform","translate(20 158)"),E(s,"transform","translate(-20 -158)"),E(n,"xmlns","http://www.w3.org/2000/svg"),E(n,"width","15"),E(n,"height","15"),E(n,"viewBox","0 0 15 15"),E(c,"class","DepositTitleMobile"),E(t,"class","MenuReturnButton")},m(y,g){m(y,t,g),p(t,n),p(n,r),p(r,i),p(i,o),p(n,s),p(s,a),p(a,l),p(t,u),p(t,c),p(c,h),d||(f=_(t,"click",/*click_handler*/e[17]),d=!0)},p(e,t){/*$_*/16&t&&S!==(S=/*$_*/e[4]("title")+"")&&T(h,S)},d(e){e&&y(t),d=!1,f()}}}(e);function u(e,t){/*isLoading*/
|
|
663
|
+
return e[1]?Ur:Yr}let c=u(e),h=c(e);return{c(){t=g("div"),l&&l.c(),n=w(),i=g("h2"),o=b(a),s=w(),h.c(),this.c=r,E(i,"class","DepositTitle "+(/*isMobile*/e[5]?"DepositTitleNone":"")),E(t,"class","DepositWrapper "+(/*isMobile*/e[5]?"DepositWrapperMobile":"")),M(t,"--dynamic-height",/*dynamicHeight*/e[2])},m(r,a){m(r,t,a),l&&l.m(t,null),p(t,n),p(t,i),p(i,o),p(t,s),h.m(t,null),
|
|
664
|
+
/*div_binding*/e[18](t)},p(e,[n]){/*isMobile*/e[5]&&l.p(e,n),/*$_*/16&n&&a!==(a=/*$_*/e[4]("title")+"")&&T(o,a),c===(c=u(e))&&h?h.p(e,n):(h.d(1),h=c(e),h&&(h.c(),h.m(t,null))),/*dynamicHeight*/4&n&&M(t,"--dynamic-height",/*dynamicHeight*/e[2])},i:r,o:r,d(n){n&&y(t),l&&l.d(),h.d(),
|
|
665
|
+
/*div_binding*/e[18](null)}}}function Gr(e,t,n){let r;f(e,Ar,(e=>n(4,r=e)));let i,o,{endpoint:s=""}=t,{session:a=""}=t,{playerid:l=""}=t,{lang:u="en"}=t,{hasdefaultamount:c=""}=t,{clientstyling:h=""}=t,{clientstylingurl:d=""}=t,{translationurl:p=""}=t,{playercurrency:m=""}=t,{shortcashierenabled:y="false"}=t,g=window.navigator.userAgent,v="PC"!==Nr(g),b=!0,w=0,_="";Object.keys(Ir).forEach((e=>{Rr(e,Ir[e])}));const E=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:v},window.location.href)},S=e=>{if(e.data){if("ProfileDetailsData"===e.data.type)n(7,m=e.data.profileDetails.currency);switch(e.data["MMFE:setQuickDepositHeight"]&&n(2,o=e.data["MMFE:setQuickDepositHeight"].toString()+"px"),"true"===e.data["MMFE:openFullCashier"]&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),e.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href);break;case"mm-wm-hc-init-deposit-quick":window.postMessage({type:"CloseShortCashier"},window.location.href)}}},T=()=>{var e;e=u,pr.set(e)};O((()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)})));return e.$$set=e=>{"endpoint"in e&&n(8,s=e.endpoint),"session"in e&&n(9,a=e.session),"playerid"in e&&n(10,l=e.playerid),"lang"in e&&n(11,u=e.lang),"hasdefaultamount"in e&&n(12,c=e.hasdefaultamount),"clientstyling"in e&&n(13,h=e.clientstyling),"clientstylingurl"in e&&n(14,d=e.clientstylingurl),"translationurl"in e&&n(15,p=e.translationurl),"playercurrency"in e&&n(7,m=e.playercurrency),"shortcashierenabled"in e&&n(16,y=e.shortcashierenabled)},e.$$.update=()=>{/*lang*/2048&e.$$.dirty&&u&&T(),/*clientstylingurl, customStylingContainer*/16385&e.$$.dirty&&d&&i&&(()=>{let e=new URL(d),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{i.appendChild(t)}),1)}))})(),/*clientstyling, customStylingContainer*/8193&e.$$.dirty&&h&&i&&(()=>{let e=document.createElement("style");e.innerHTML=h,i.appendChild(e)})(),/*translationurl*/32768&e.$$.dirty&&p&&fetch(p).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Rr(t,e[t])}))})).catch((e=>{console.log(e)})),/*session, playerid, endpoint, playercurrency, lang, shortcashierenabled*/69504&e.$$.dirty&&a&&l&&s&&m&&u&&y&&(()=>{let e=new URL(`${s}/v1/player/${l}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(y&&e.searchParams.append("isShortCashier",y),c)switch(m){case"USD":w=.4;break;case"CDF":w=1e3}let t={method:"POST",headers:{"X-SessionId":a,currency:m||"EUR",amount:w,cashierMode:"Default",IsShortCashier:y,accept:"application/json"}};fetch(e.href,t).then((e=>e.json())).then((e=>{n(1,b=!1),n(3,_=e.CashierUrl)}),(e=>{console.error(e)}))})()},[i,b,o,_,r,v,E,m,s,a,l,u,c,h,d,p,y,()=>E(),function(e){B[e?"unshift":"push"]((()=>{i=e,n(0,i)}))}]}function jr(){"undefined"==typeof window||window.cstmNativeBridge&&window.cstmNativeBridge.call}!customElements.get("player-deposit")&&customElements.define("player-deposit",class extends W{constructor(e){super();const t=document.createElement("style");t.textContent=".DepositWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.DepositTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.DepositTitleMobile{font-size:16px}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh}",this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:x(this.attributes),customElement:!0},Gr,$r,l,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,playercurrency:7,shortcashierenabled:16},null),e&&(e.target&&m(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["endpoint","session","playerid","lang","hasdefaultamount","clientstyling","clientstylingurl","translationurl","playercurrency","shortcashierenabled"]}get endpoint(){return this.$$.ctx[8]}set endpoint(e){this.$$set({endpoint:e}),I()}get session(){return this.$$.ctx[9]}set session(e){this.$$set({session:e}),I()}get playerid(){return this.$$.ctx[10]}set playerid(e){this.$$set({playerid:e}),I()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),I()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),I()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),I()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),I()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),I()}get playercurrency(){return this.$$.ctx[7]}set playercurrency(e){this.$$set({playercurrency:e}),I()}get shortcashierenabled(){return this.$$.ctx[16]}set shortcashierenabled(e){this.$$set({shortcashierenabled:e}),I()}}),
|
|
666
666
|
/* eslint-disable */
|
|
667
667
|
window.cstmNativeBridge=window.cstmNativeBridge||{},window.cstmNativeBridge.eventListeners=window.cstmNativeBridge.eventListeners||{},window.cstmNativeBridge.registerEventListener=function(e,t){var n=window.cstmNativeBridge.EVENTS[e];if(n){if("function"==typeof t){var r=window.cstmNativeBridge.eventListeners[n];return window.cstmNativeBridge.eventListeners[n]=function(){delete window.cstmNativeBridge.eventListeners[n],r&&r.apply(this,arguments),t.apply(this,arguments)},!0}console.error("Native Bridge event listener is not provided")}else console.error("Native Bridge `"+e+"` event is not defined");return!1},window.cstmNativeBridge.EVENTS=window.cstmNativeBridge.EVENTS||{},window.cstmNativeBridge.METHODS=window.cstmNativeBridge.METHODS||{},window.cstmNativeBridge.call=function(e){var t=window.cstmNativeBridge[window.cstmNativeBridge.METHODS[e]];if("function"==typeof t){
|
|
668
668
|
// copy everything except first param, which is the event.
|
|
@@ -688,7 +688,7 @@ function E(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isV
|
|
|
688
688
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
689
689
|
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function B(e,t){var n,r=f({},e);for(n in t)a(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)a(e,n)&&!a(t,n)&&s(e[n])&&(
|
|
690
690
|
// make sure changes to properties don't modify parent config
|
|
691
|
-
r[n]=f({},r[n]));return r}function H(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var
|
|
691
|
+
r[n]=f({},r[n]));return r}function H(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var F={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function A(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r}function N(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var C=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},I={};
|
|
692
692
|
// token: 'M'
|
|
693
693
|
// padded: ['MM', 2]
|
|
694
694
|
// ordinal: 'Mo'
|
|
@@ -712,10 +712,10 @@ Oe=/\d+/,// 0 - inf
|
|
|
712
712
|
Pe=/[+-]?\d+/,// -inf - inf
|
|
713
713
|
Be=/Z|[+-]\d\d:?\d\d/gi,// +00:00 -00:00 +0000 -0000 or Z
|
|
714
714
|
He=/Z|[+-]\d\d(?::?\d\d)?/gi,// +00 -00 +00:00 -00:00 +0000 -0000 or Z
|
|
715
|
-
|
|
715
|
+
Fe=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
|
|
716
716
|
// any word (or two) characters or numbers including two/three word month in arabic.
|
|
717
717
|
// includes scottish gaelic two word and hyphenated months
|
|
718
|
-
|
|
718
|
+
Ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ne(e,t,n){ge[e]=O(t)?t:function(e,r){return e&&n?n:t}}function Ce(e,t){return a(ge,e)?ge[e](t._strict,t._locale):new RegExp(Le(e))}
|
|
719
719
|
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
|
720
720
|
function Le(e){return Re(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Re(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ge={};var Ie={};function Ye(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=ce(e)}),r=e.length,n=0;n<r;n++)Ie[e[n]]=i}function Ue(e,t){Ye(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function $e(e,t,n){null!=t&&a(Ie,e)&&Ie[e](t,n._a,n,e)}var Ge,je=0,We=1,Ve=2,ze=3,Ze=4,Xe=5,qe=6,Ke=7,Je=8;function Qe(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Qe(t,12);return e+=(t-n)/12,1===n?le(e)?29:28:31-n%7%2}
|
|
721
721
|
// FORMATTING
|
|
@@ -731,7 +731,7 @@ Ne("M",Se),Ne("MM",Se,be),Ne("MMM",(function(e,t){return t.monthsShortRegex(e)})
|
|
|
731
731
|
// if we didn't find a month name, mark the date as invalid.
|
|
732
732
|
null!=i?t[We]=i:y(n).invalidMonth=e}));
|
|
733
733
|
// LOCALES
|
|
734
|
-
var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=
|
|
734
|
+
var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Ae,ot=Ae;function st(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function at(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(
|
|
735
735
|
// this is not used
|
|
736
736
|
this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ge.call(this._shortMonthsParse,s))?i:null:-1!==(i=Ge.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=Ge.call(this._shortMonthsParse,s))||-1!==(i=Ge.call(this._longMonthsParse,s))?i:null:-1!==(i=Ge.call(this._longMonthsParse,s))||-1!==(i=Ge.call(this._shortMonthsParse,s))?i:null}function ut(e,t,n){var r,i,o;if(this._monthsParseExact)return lt.call(this,e,t,n);
|
|
737
737
|
// TODO: add sorting
|
|
@@ -799,7 +799,7 @@ function Ot(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e
|
|
|
799
799
|
// HELPERS
|
|
800
800
|
function Bt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ht(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}
|
|
801
801
|
// LOCALES
|
|
802
|
-
function
|
|
802
|
+
function Ft(e,t){return e.slice(t,7).concat(e.slice(0,t))}Y("d",0,"do","day"),Y("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),Y("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),Y("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),
|
|
803
803
|
// ALIASES
|
|
804
804
|
ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),
|
|
805
805
|
// PRIORITY
|
|
@@ -807,7 +807,7 @@ se("day",11),se("weekday",11),se("isoWeekday",11),
|
|
|
807
807
|
// PARSING
|
|
808
808
|
Ne("d",Se),Ne("e",Se),Ne("E",Se),Ne("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ne("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ne("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ue(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);
|
|
809
809
|
// if we didn't get a weekday name, mark the date as invalid
|
|
810
|
-
null!=i?t.d=i:y(n).invalidWeekday=e})),Ue(["d","e","E"],(function(e,t,n,r){t[r]=ce(e)}));var
|
|
810
|
+
null!=i?t.d=i:y(n).invalidWeekday=e})),Ue(["d","e","E"],(function(e,t,n,r){t[r]=ce(e)}));var At="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Nt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ct="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Lt=Ae,Rt=Ae,It=Ae;function Yt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ft(n,this._week.dow):e?n[e.day()]:n}function Ut(e){return!0===e?Ft(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function $t(e){return!0===e?Ft(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Gt(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ge.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ge.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ge.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=Ge.call(this._weekdaysParse,s))||-1!==(i=Ge.call(this._shortWeekdaysParse,s))||-1!==(i=Ge.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ge.call(this._shortWeekdaysParse,s))||-1!==(i=Ge.call(this._weekdaysParse,s))||-1!==(i=Ge.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ge.call(this._minWeekdaysParse,s))||-1!==(i=Ge.call(this._weekdaysParse,s))||-1!==(i=Ge.call(this._shortWeekdaysParse,s))?i:null}function jt(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Gt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){
|
|
811
811
|
// test the regex
|
|
812
812
|
if(
|
|
813
813
|
// make the regex if we don't have it already
|
|
@@ -840,7 +840,7 @@ se("hour",13),Ne("a",tn),Ne("A",tn),Ne("H",Se),Ne("h",Se),Ne("k",Se),Ne("HH",Se,
|
|
|
840
840
|
// specified which hour they want. So trying to maintain the same hour (in
|
|
841
841
|
// a new timezone) makes sense. Adding/subtracting hours does not follow
|
|
842
842
|
// this rule.
|
|
843
|
-
on=he("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,ln={calendar:
|
|
843
|
+
on=he("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,ln={calendar:F,longDateFormat:W,invalidDate:z,ordinal:X,dayOfMonthOrdinalParse:q,relativeTime:J,months:tt,monthsShort:nt,week:kt,weekdays:At,weekdaysMin:Ct,weekdaysShort:Nt,meridiemParse:rn},un={},cn={};
|
|
844
844
|
// internal storage for locale config files
|
|
845
845
|
function hn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}
|
|
846
846
|
// pick the locale from the array
|
|
@@ -897,13 +897,13 @@ Dn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|J
|
|
|
897
897
|
// date from iso format
|
|
898
898
|
function Pn(e){var t,n,r,i,o,s,a=e._i,l=En.exec(a)||Sn.exec(a),u=Mn.length,c=kn.length;if(l){for(y(e).iso=!0,t=0,n=u;t<n;t++)if(Mn[t][1].exec(l[1])){i=Mn[t][0],r=!1!==Mn[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(kn[t][1].exec(l[3])){
|
|
899
899
|
// match[2] should be 'T' or space
|
|
900
|
-
o=(l[2]||" ")+kn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Tn.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),$n(e)}else e._isValid=!1}function Bn(e,t,n,r,i,o){var s=[Hn(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function Hn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function
|
|
900
|
+
o=(l[2]||" ")+kn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Tn.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),$n(e)}else e._isValid=!1}function Bn(e,t,n,r,i,o){var s=[Hn(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function Hn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Fn(e){
|
|
901
901
|
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
|
902
|
-
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function
|
|
902
|
+
return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function An(e,t,n){return!e||Nt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(y(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Nn(e,t,n){if(e)return On[e];if(t)
|
|
903
903
|
// the only allowed military tz is Z
|
|
904
904
|
return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}
|
|
905
905
|
// date and time from ref 2822 format
|
|
906
|
-
function Cn(e){var t,n=Dn.exec(
|
|
906
|
+
function Cn(e){var t,n=Dn.exec(Fn(e._i));if(n){if(t=Bn(n[4],n[3],n[2],n[5],n[6],n[7]),!An(n[1],t,e))return;e._a=t,e._tzm=Nn(n[8],n[9],n[10]),e._d=wt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}
|
|
907
907
|
// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
|
|
908
908
|
function Ln(e){var t=xn.exec(e._i);null===t?(Pn(e),!1===e._isValid&&(delete e._isValid,Cn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
|
|
909
909
|
// Final attempt, use Input Fallback
|
|
@@ -1034,7 +1034,7 @@ return-Math.round(e._d.getTimezoneOffset())}
|
|
|
1034
1034
|
// a second time. In case it wants us to change the offset again
|
|
1035
1035
|
// _changeInProgress == true case, then we have to adjust, because
|
|
1036
1036
|
// there is no such time in the given timezone.
|
|
1037
|
-
function yr(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fr(He,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=mr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?
|
|
1037
|
+
function yr(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fr(He,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=mr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Ar(this,Or(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:mr(this)}function gr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function vr(e){return this.utcOffset(0,e)}function br(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mr(this),"m")),this}function wr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fr(Be,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function _r(e){return!!this.isValid()&&(e=e?qn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Er(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sr(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=zn(t))._a?(e=t._isUTC?p(t._a):qn(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Tr(){return!!this.isValid()&&!this._isUTC}function Mr(){return!!this.isValid()&&this._isUTC}function kr(){return!!this.isValid()&&this._isUTC&&0===this._offset}
|
|
1038
1038
|
// ASP.NET json date format regex
|
|
1039
1039
|
r.updateOffset=function(){};var xr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
|
|
1040
1040
|
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
|
@@ -1052,9 +1052,9 @@ var n=e&&parseFloat(e.replace(",","."));
|
|
|
1052
1052
|
// apply sign while we're at it
|
|
1053
1053
|
return(isNaN(n)?0:n)*t}function Br(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Hr(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Br(e,t):((n=Br(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}
|
|
1054
1054
|
// TODO: remove 'name' arg after deprecation is removed
|
|
1055
|
-
function
|
|
1055
|
+
function Fr(e,t){return function(n,r){var i;
|
|
1056
1056
|
//invert the arguments, but complain about it
|
|
1057
|
-
return null===r||isNaN(+r)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),
|
|
1057
|
+
return null===r||isNaN(+r)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Ar(this,Or(n,r),e),this}}function Ar(e,t,n,i){var o=t._milliseconds,s=ur(t._days),a=ur(t._months);e.isValid()&&(i=null==i||i,a&&ct(e,de(e,"Month")+a*n),s&&fe(e,"Date",de(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,s||a))}Or.fn=ar.prototype,Or.invalid=sr;var Nr=Fr(1,"add"),Cr=Fr(-1,"subtract");function Lr(e){return"string"==typeof e||e instanceof String}
|
|
1058
1058
|
// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
|
|
1059
1059
|
function Rr(e){return S(e)||h(e)||Lr(e)||c(e)||Yr(e)||Ir(e)||null==e}function Ir(e){var t,n,r=s(e)&&!l(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=o.length;for(t=0;t<u;t+=1)n=o[t],i=i||a(e,n);return r&&i}function Yr(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&Lr(e)})).length),t&&n}function Ur(e){var t,n,r=s(e)&&!l(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],i=i||a(e,n);return r&&i}function $r(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Gr(e,t){
|
|
1060
1060
|
// Support for single parameter, formats only overload to the calendar function
|
|
@@ -1101,9 +1101,9 @@ o=r(s[n].since).startOf("day"),s[n].since=o.valueOf()),typeof s[n].until){case"u
|
|
|
1101
1101
|
// truncate time
|
|
1102
1102
|
o=r(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s}function Pi(e,t,n){var r,i,o,s,a,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if([o,s,a].indexOf(e)>=0)return l[r]}function Bi(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Hi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
|
|
1103
1103
|
// truncate time
|
|
1104
|
-
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function
|
|
1104
|
+
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Fi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
|
|
1105
1105
|
// truncate time
|
|
1106
|
-
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function
|
|
1106
|
+
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Ai(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
|
|
1107
1107
|
// truncate time
|
|
1108
1108
|
n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Ni(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,
|
|
1109
1109
|
// truncate time
|
|
@@ -1180,7 +1180,7 @@ Ne("S",ke,ve),Ne("SS",ke,be),Ne("SSS",ke,we),ro="SSSS";ro.length<=9;ro+="S")Ne(r
|
|
|
1180
1180
|
// MOMENTS
|
|
1181
1181
|
function ao(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}io=he("Milliseconds",!1),
|
|
1182
1182
|
// FORMATTING
|
|
1183
|
-
Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var uo=E.prototype;function co(e){return qn(1e3*e)}function ho(){return qn.apply(null,arguments).parseZone()}function fo(e){return e}uo.add=Nr,uo.calendar=Gr,uo.clone=jr,uo.diff=Kr,uo.endOf=vi,uo.format=ni,uo.from=ri,uo.fromNow=ii,uo.to=oi,uo.toNow=si,uo.get=pe,uo.invalidAt=xi,uo.isAfter=Wr,uo.isBefore=Vr,uo.isBetween=zr,uo.isSame=Zr,uo.isSameOrAfter=Xr,uo.isSameOrBefore=qr,uo.isValid=Mi,uo.lang=li,uo.locale=ai,uo.localeData=ui,uo.max=Jn,uo.min=Kn,uo.parsingFlags=ki,uo.set=me,uo.startOf=gi,uo.subtract=Cr,uo.toArray=Ei,uo.toObject=Si,uo.toDate=_i,uo.toISOString=ei,uo.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=Ti,uo.toString=Qr,uo.unix=wi,uo.valueOf=bi,uo.creationData=Di,uo.eraName=Hi,uo.eraNarrow=
|
|
1183
|
+
Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var uo=E.prototype;function co(e){return qn(1e3*e)}function ho(){return qn.apply(null,arguments).parseZone()}function fo(e){return e}uo.add=Nr,uo.calendar=Gr,uo.clone=jr,uo.diff=Kr,uo.endOf=vi,uo.format=ni,uo.from=ri,uo.fromNow=ii,uo.to=oi,uo.toNow=si,uo.get=pe,uo.invalidAt=xi,uo.isAfter=Wr,uo.isBefore=Vr,uo.isBetween=zr,uo.isSame=Zr,uo.isSameOrAfter=Xr,uo.isSameOrBefore=qr,uo.isValid=Mi,uo.lang=li,uo.locale=ai,uo.localeData=ui,uo.max=Jn,uo.min=Kn,uo.parsingFlags=ki,uo.set=me,uo.startOf=gi,uo.subtract=Cr,uo.toArray=Ei,uo.toObject=Si,uo.toDate=_i,uo.toISOString=ei,uo.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=Ti,uo.toString=Qr,uo.unix=wi,uo.valueOf=bi,uo.creationData=Di,uo.eraName=Hi,uo.eraNarrow=Fi,uo.eraAbbr=Ai,uo.eraYear=Ni,uo.year=gt,uo.isLeapYear=vt,uo.weekYear=Wi,uo.isoWeekYear=Vi,uo.quarter=uo.quarters=Qi,uo.month=ht,uo.daysInMonth=dt,uo.week=uo.weeks=Ot,uo.isoWeek=uo.isoWeeks=Pt,uo.weeksInYear=Xi,uo.weeksInWeekYear=qi,uo.isoWeeksInYear=zi,uo.isoWeeksInISOWeekYear=Zi,uo.date=eo,uo.day=uo.days=Wt,uo.weekday=Vt,uo.isoWeekday=zt,uo.dayOfYear=to,uo.hour=uo.hours=on,uo.minute=uo.minutes=no,uo.second=uo.seconds=oo,uo.millisecond=uo.milliseconds=io,uo.utcOffset=yr,uo.utc=vr,uo.local=br,uo.parseZone=wr,uo.hasAlignedHourOffset=_r,uo.isDST=Er,uo.isLocal=Tr,uo.isUtcOffset=Mr,uo.isUtc=kr,uo.isUTC=kr,uo.zoneAbbr=ao,uo.zoneName=lo,uo.dates=M("dates accessor is deprecated. Use date instead.",eo),uo.months=M("months accessor is deprecated. Use month instead",ht),uo.years=M("years accessor is deprecated. Use year instead",gt),uo.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),uo.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var po=H.prototype;function mo(e,t,n,r){var i=bn(),o=p().set(r,t);return i[n](o,e)}function yo(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return mo(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mo(e,r,n,"month");return i}
|
|
1184
1184
|
// ()
|
|
1185
1185
|
// (5)
|
|
1186
1186
|
// (fmt, 5)
|
|
@@ -1189,7 +1189,7 @@ Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var uo=E.prototype;function co(e){r
|
|
|
1189
1189
|
// (true, 5)
|
|
1190
1190
|
// (true, fmt, 5)
|
|
1191
1191
|
// (true, fmt)
|
|
1192
|
-
function go(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,o=bn(),s=e?o._week.dow:0,a=[];if(null!=n)return mo(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=mo(t,(i+s)%7,r,"day");return a}function vo(e,t){return yo(e,t,"months")}function bo(e,t){return yo(e,t,"monthsShort")}function wo(e,t,n){return go(e,t,n,"weekdays")}function _o(e,t,n){return go(e,t,n,"weekdaysShort")}function Eo(e,t,n){return go(e,t,n,"weekdaysMin")}po.calendar=
|
|
1192
|
+
function go(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,o=bn(),s=e?o._week.dow:0,a=[];if(null!=n)return mo(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=mo(t,(i+s)%7,r,"day");return a}function vo(e,t){return yo(e,t,"months")}function bo(e,t){return yo(e,t,"monthsShort")}function wo(e,t,n){return go(e,t,n,"weekdays")}function _o(e,t,n){return go(e,t,n,"weekdaysShort")}function Eo(e,t,n){return go(e,t,n,"weekdaysMin")}po.calendar=A,po.longDateFormat=V,po.invalidDate=Z,po.ordinal=K,po.preparse=fo,po.postformat=fo,po.relativeTime=Q,po.pastFuture=ee,po.set=P,po.eras=Oi,po.erasParse=Pi,po.erasConvertYear=Bi,po.erasAbbrRegex=Li,po.erasNameRegex=Ci,po.erasNarrowRegex=Ri,po.months=st,po.monthsShort=at,po.monthsParse=ut,po.monthsRegex=pt,po.monthsShortRegex=ft,po.week=Mt,po.firstDayOfYear=Dt,po.firstDayOfWeek=xt,po.weekdays=Yt,po.weekdaysMin=$t,po.weekdaysShort=Ut,po.weekdaysParse=jt,po.weekdaysRegex=Zt,po.weekdaysShortRegex=Xt,po.weekdaysMinRegex=qt,po.isPM=nn,po.meridiem=sn,yn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),
|
|
1193
1193
|
// Side effect imports
|
|
1194
1194
|
r.lang=M("moment.lang is deprecated. Use moment.locale instead.",yn),r.langData=M("moment.langData is deprecated. Use moment.localeData instead.",bn);var So=Math.abs;function To(){var e=this._data;return this._milliseconds=So(this._milliseconds),this._days=So(this._days),this._months=So(this._months),e.milliseconds=So(e.milliseconds),e.seconds=So(e.seconds),e.minutes=So(e.minutes),e.hours=So(e.hours),e.months=So(e.months),e.years=So(e.years),this}function Mo(e,t,n,r){var i=Or(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}
|
|
1195
1195
|
// supports only 2.0-style add(1, 's') or add(duration)
|
|
@@ -1216,7 +1216,7 @@ t=this._days+Math.round(Bo(this._months)),e){case"week":return t/7+r/6048e5;case
|
|
|
1216
1216
|
// Math.floor prevents floating point math errors here
|
|
1217
1217
|
case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}
|
|
1218
1218
|
// TODO: Use this.as('ms')?
|
|
1219
|
-
function
|
|
1219
|
+
function Fo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Ao(e){return function(){return this.as(e)}}var No=Ao("ms"),Co=Ao("s"),Lo=Ao("m"),Ro=Ao("h"),Io=Ao("d"),Yo=Ao("w"),Uo=Ao("M"),$o=Ao("Q"),Go=Ao("y");function jo(){return Or(this)}function Wo(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Vo(e){return function(){return this.isValid()?this._data[e]:NaN}}var zo=Vo("milliseconds"),Zo=Vo("seconds"),Xo=Vo("minutes"),qo=Vo("hours"),Ko=Vo("days"),Jo=Vo("months"),Qo=Vo("years");function es(){return ue(this.days()/7)}var ts=Math.round,ns={ss:44,// a few seconds to seconds
|
|
1220
1220
|
s:45,// seconds to minute
|
|
1221
1221
|
m:45,// minutes to hour
|
|
1222
1222
|
h:22,// hours to day
|
|
@@ -1242,11 +1242,11 @@ e=ue(l/60),t=ue(e/60),l%=60,e%=60,
|
|
|
1242
1242
|
// 12 months -> 1 year
|
|
1243
1243
|
n=ue(c/12),c%=12,
|
|
1244
1244
|
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
|
|
1245
|
-
r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",o=us(this._months)!==us(h)?"-":"",s=us(this._days)!==us(h)?"-":"",a=us(this._milliseconds)!==us(h)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+r+"S":"")):"P0D"}var hs=ar.prototype;return hs.isValid=or,hs.abs=To,hs.add=ko,hs.subtract=xo,hs.as=Ho,hs.asMilliseconds=No,hs.asSeconds=Co,hs.asMinutes=Lo,hs.asHours=Ro,hs.asDays=Io,hs.asWeeks=Yo,hs.asMonths=Uo,hs.asQuarters=$o,hs.asYears=Go,hs.valueOf=
|
|
1245
|
+
r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",o=us(this._months)!==us(h)?"-":"",s=us(this._days)!==us(h)?"-":"",a=us(this._milliseconds)!==us(h)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+r+"S":"")):"P0D"}var hs=ar.prototype;return hs.isValid=or,hs.abs=To,hs.add=ko,hs.subtract=xo,hs.as=Ho,hs.asMilliseconds=No,hs.asSeconds=Co,hs.asMinutes=Lo,hs.asHours=Ro,hs.asDays=Io,hs.asWeeks=Yo,hs.asMonths=Uo,hs.asQuarters=$o,hs.asYears=Go,hs.valueOf=Fo,hs._bubble=Oo,hs.clone=jo,hs.get=Wo,hs.milliseconds=zo,hs.seconds=Zo,hs.minutes=Xo,hs.hours=qo,hs.days=Ko,hs.weeks=es,hs.months=Jo,hs.years=Qo,hs.humanize=as,hs.toISOString=cs,hs.toString=cs,hs.toJSON=cs,hs.locale=ai,hs.localeData=ui,hs.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cs),hs.lang=li,
|
|
1246
1246
|
// FORMATTING
|
|
1247
1247
|
Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),
|
|
1248
1248
|
// PARSING
|
|
1249
|
-
Ne("x",Pe),Ne("X",
|
|
1249
|
+
Ne("x",Pe),Ne("X",Fe),Ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Ye("x",(function(e,t,n){n._d=new Date(ce(e))})),
|
|
1250
1250
|
//! moment.js
|
|
1251
1251
|
r.version="2.29.4",i(qn),r.fn=uo,r.min=er,r.max=tr,r.now=nr,r.utc=p,r.unix=co,r.months=vo,r.isDate=h,r.locale=yn,r.invalid=v,r.duration=Or,r.isMoment=S,r.weekdays=wo,r.parseZone=ho,r.localeData=bn,r.isDuration=lr,r.monthsShort=bo,r.weekdaysMin=Eo,r.defineLocale=gn,r.updateLocale=vn,r.locales=wn,r.weekdaysShort=_o,r.normalizeUnits=re,r.relativeTimeRounding=os,r.relativeTimeThreshold=ss,r.calendarFormat=$r,r.prototype=uo,
|
|
1252
1252
|
// currently HTML5 input type only supports 24-hour formats
|
|
@@ -1262,57 +1262,57 @@ MONTH:"YYYY-MM"},r}()}));
|
|
|
1262
1262
|
/* src/CasinoIntegratedGamePage.svelte generated by Svelte v3.59.2 */
|
|
1263
1263
|
function zr(e){let t;function n(e,t){/*isLoggedIn*/
|
|
1264
1264
|
return e[15]?Kr:/*funMode*/e[20]?qr:void 0}let r=n(e),i=r&&r(e);return{c(){t=g("div"),i&&i.c(),E(t,"class","CasinoIntegratedGamePage")},m(e,n){m(e,t,n),i&&i.m(t,null)},p(e,o){r===(r=n(e))&&i?i.p(e,o):(i&&i.d(1),i=r&&r(e),i&&(i.c(),i.m(t,null)))},d(e){e&&y(t),i&&i.d()}}}
|
|
1265
|
-
// (
|
|
1265
|
+
// (378:4) {#if hasErrors}
|
|
1266
1266
|
function Zr(e){let t;return{c(){t=g("p"),t.textContent="500 Error - Internal Server Error.",E(t,"class","SearchLoading")},m(e,n){m(e,t,n)},p:r,d(e){e&&y(t)}}}
|
|
1267
|
-
// (
|
|
1267
|
+
// (375:2) {#if isLoading}
|
|
1268
1268
|
function Xr(e){let t;return{c(){t=g("p"),t.textContent="Loading, please wait ...",E(t,"class","SearchLoading")},m(e,n){m(e,t,n)},p:r,d(e){e&&y(t)}}}
|
|
1269
|
-
// (
|
|
1270
|
-
function qr(e){let t,n,r,i,o,a,l,u,c,d,f,v,S,x,D,O,P,B,H,A,
|
|
1271
|
-
return e[26]?Qr:Jr}let $=U(e),G=$(e),j=/*gamebanneractive*/"true"==e[10]&&!/*isFullscreen*/e[26]&&ei();return{c(){t=g("div"),n=g("button"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>',r=w(),i=g("p"),o=g("span"),a=b(/*time*/e[13]),l=w(),u=g("div"),c=w(),d=g("div"),f=g("div"),v=g("iframe"),x=w(),D=g("div"),O=g("div"),P=g("button"),B=b(I),H=w(),
|
|
1269
|
+
// (441:10) {#if funMode}
|
|
1270
|
+
function qr(e){let t,n,r,i,o,a,l,u,c,d,f,v,S,x,D,O,P,B,H,F,A,N,C,L,R,I=/*$_*/e[32]("signIn")+"",Y=/*$_*/e[32]("register")+"";function U(e,t){/*isFullscreen*/
|
|
1271
|
+
return e[26]?Qr:Jr}let $=U(e),G=$(e),j=/*gamebanneractive*/"true"==e[10]&&!/*isFullscreen*/e[26]&&ei();return{c(){t=g("div"),n=g("button"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>',r=w(),i=g("p"),o=g("span"),a=b(/*time*/e[13]),l=w(),u=g("div"),c=w(),d=g("div"),f=g("div"),v=g("iframe"),x=w(),D=g("div"),O=g("div"),P=g("button"),B=b(I),H=w(),F=g("button"),A=b(Y),N=w(),G.c(),C=w(),j&&j.c(),E(n,"class","backButton"),E(i,"class","Time"),E(t,"class","GamePageIntegratedTopSection"),E(v,"title","Games"),E(v,"class","GamesContainer"),E(v,"aria-hidden","false"),h(v.src,S=/*game*/e[19].launchUrl)||E(v,"src",S),E(P,"class","LoginButton"),E(F,"class","RegisterButton"),E(O,"class","ButtonsContainer ButtonsContainerFunMode"),E(D,"class","BottomGame"),E(f,"id","IframeGame"),M(f,"width",/*isFullscreen*/e[26]?"100%":/*definitiveIframeWidth*/e[27]),M(f,"height",/*isFullscreen*/e[26]?"100%":/*definitiveIframeHeight*/e[28]),M(f,"max-width",/*isFullscreen*/e[26]||!/*isModal*/e[21]?"none":/*game*/e[19].width?Math.floor(/*game*/e[19].width)+"px":"1280px"),M(f,"max-height",/*isFullscreen*/e[26]||!/*isModal*/e[21]?"none":/*game*/e[19].height?Math.floor(/*game*/e[19].height)+100+"px":"720px"),E(d,"id","IframeContainer"),k(d,"FullsScreenLayout",/*isFullscreen*/e[26])},m(s,h){m(s,t,h),p(t,n),p(t,r),p(t,i),p(i,o),p(o,a),
|
|
1272
1272
|
/*p_binding_1*/e[64](i),p(t,l),p(t,u),m(s,c,h),m(s,d,h),p(d,f),p(f,v),
|
|
1273
|
-
/*iframe_1_binding_1*/e[65](v),p(f,x),p(f,D),p(D,O),p(O,P),p(P,B),p(O,H),p(O,
|
|
1273
|
+
/*iframe_1_binding_1*/e[65](v),p(f,x),p(f,D),p(D,O),p(O,P),p(P,B),p(O,H),p(O,F),p(F,A),p(D,N),G.m(D,null),
|
|
1274
1274
|
/*div3_binding_1*/e[70](D),
|
|
1275
1275
|
/*div4_binding_1*/e[71](f),p(d,C),j&&j.m(d,null)
|
|
1276
|
-
/*div5_binding*/,e[72](d),L||(R=[_(n,"click",/*click_handler_6*/e[63]),_(P,"click",/*click_handler_7*/e[66]),_(
|
|
1276
|
+
/*div5_binding*/,e[72](d),L||(R=[_(n,"click",/*click_handler_6*/e[63]),_(P,"click",/*click_handler_7*/e[66]),_(F,"click",/*click_handler_8*/e[67])],L=!0)},p(e,t){/*time*/8192&t[0]&&T(a,/*time*/e[13]),/*game*/524288&t[0]&&!h(v.src,S=/*game*/e[19].launchUrl)&&E(v,"src",S),/*$_*/2&t[1]&&I!==(I=/*$_*/e[32]("signIn")+"")&&T(B,I),/*$_*/2&t[1]&&Y!==(Y=/*$_*/e[32]("register")+"")&&T(A,Y),$===($=U(e))&&G?G.p(e,t):(G.d(1),G=$(e),G&&(G.c(),G.m(D,null))),/*isFullscreen, definitiveIframeWidth*/201326592&t[0]&&M(f,"width",/*isFullscreen*/e[26]?"100%":/*definitiveIframeWidth*/e[27]),/*isFullscreen, definitiveIframeHeight*/335544320&t[0]&&M(f,"height",/*isFullscreen*/e[26]?"100%":/*definitiveIframeHeight*/e[28]),/*isFullscreen, isModal, game*/69730304&t[0]&&M(f,"max-width",/*isFullscreen*/e[26]||!/*isModal*/e[21]?"none":/*game*/e[19].width?Math.floor(/*game*/e[19].width)+"px":"1280px"),/*isFullscreen, isModal, game*/69730304&t[0]&&M(f,"max-height",/*isFullscreen*/e[26]||!/*isModal*/e[21]?"none":/*game*/e[19].height?Math.floor(/*game*/e[19].height)+100+"px":"720px"),/*gamebanneractive*/"true"!=e[10]||/*isFullscreen*/e[26]?j&&(j.d(1),j=null):j||(j=ei(),j.c(),j.m(d,null)),/*isFullscreen*/67108864&t[0]&&k(d,"FullsScreenLayout",/*isFullscreen*/e[26])},d(n){n&&y(t)
|
|
1277
1277
|
/*p_binding_1*/,e[64](null),n&&y(c),n&&y(d)
|
|
1278
1278
|
/*iframe_1_binding_1*/,e[65](null),G.d(),
|
|
1279
1279
|
/*div3_binding_1*/e[70](null),
|
|
1280
1280
|
/*div4_binding_1*/e[71](null),j&&j.d()
|
|
1281
1281
|
/*div5_binding*/,e[72](null),L=!1,s(R)}}}
|
|
1282
|
-
// (
|
|
1283
|
-
function Kr(e){let t,n,r,i,o,a,l,u,c,d,f,v,S,x,D,O,P,B,H,A,
|
|
1284
|
-
return e[26]?ii:ri}let U=Y(e),$=U(e),G=/*gamebanneractive*/"true"==e[10]&&!/*isFullscreen*/e[26]&&oi();return{c(){t=g("div"),n=g("button"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>',r=w(),i=g("p"),o=g("span"),a=b(/*time*/e[13]),l=w(),u=g("div"),c=b(L),d=w(),R&&R.c(),f=w(),v=g("div"),S=g("div"),x=g("iframe"),B=w(),H=g("div"),I&&I.c(),
|
|
1282
|
+
// (382:8) {#if isLoggedIn}
|
|
1283
|
+
function Kr(e){let t,n,r,i,o,a,l,u,c,d,f,v,S,x,D,O,P,B,H,F,A,N,C,L=/*$_*/e[32]("deposit")+"",R=/*shortCashierActivated*/e[31]&&ti(e),I=/*haspanicbutton*/"true"===e[9]&&ni(e);function Y(e,t){/*isFullscreen*/
|
|
1284
|
+
return e[26]?ii:ri}let U=Y(e),$=U(e),G=/*gamebanneractive*/"true"==e[10]&&!/*isFullscreen*/e[26]&&oi();return{c(){t=g("div"),n=g("button"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}</style></defs><path class="a" d="M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z" transform="translate(24 24) rotate(180)"></path></svg>',r=w(),i=g("p"),o=g("span"),a=b(/*time*/e[13]),l=w(),u=g("div"),c=b(L),d=w(),R&&R.c(),f=w(),v=g("div"),S=g("div"),x=g("iframe"),B=w(),H=g("div"),I&&I.c(),F=w(),$.c(),A=w(),G&&G.c(),E(n,"class","backButton"),E(i,"class","Time"),E(u,"class","DepositButton"),E(t,"class","GamePageIntegratedTopSection"),E(x,"title","Games"),E(x,"id","IframeGame"),E(x,"class","GamesContainer"),E(x,"aria-hidden","false"),h(x.src,D=/*game*/e[19].launchUrl)||E(x,"src",D),E(x,"width",O=/*gameContainerWidth*/e[23]+"px"),E(x,"height",P=/*gameContainerHeight*/e[24]+"px"),E(H,"class","BottomGame BottomGameLoggedin"),E(S,"id","IframeGame"),M(S,"width",/*isFullscreen*/e[26]?"100%":/*definitiveIframeWidth*/e[27]),M(S,"height",/*isFullscreen*/e[26]?"100%":/*definitiveIframeHeight*/e[28]),M(S,"max-width",/*isFullscreen*/e[26]?"none":/*game*/e[19].width?/*game*/e[19].width+"px":"1280px"),M(S,"max-height",/*isFullscreen*/e[26]?"none":/*game*/e[19].height?Math.floor(/*game*/e[19].height)+100+"px":"720px"),E(v,"id","IframeContainer"),k(v,"FullsScreenLayout",/*isFullscreen*/e[26])},m(s,h){m(s,t,h),p(t,n),p(t,r),p(t,i),p(i,o),p(o,a),
|
|
1285
1285
|
/*p_binding*/e[52](i),p(t,l),p(t,u),p(u,c),p(t,d),R&&R.m(t,null),m(s,f,h),m(s,v,h),p(v,S),p(S,x),
|
|
1286
|
-
/*iframe_1_binding*/e[56](x),p(S,B),p(S,H),I&&I.m(H,null),p(H,
|
|
1286
|
+
/*iframe_1_binding*/e[56](x),p(S,B),p(S,H),I&&I.m(H,null),p(H,F),$.m(H,null),
|
|
1287
1287
|
/*div2_binding*/e[60](H),
|
|
1288
|
-
/*div3_binding*/e[61](S),p(v,
|
|
1289
|
-
/*div4_binding*/,e[62](v),N||(C=[_(n,"click",/*click_handler*/e[51]),_(u,"click",/*click_handler_1*/e[53])],N=!0)},p(e,n){/*time*/8192&n[0]&&T(a,/*time*/e[13]),/*$_*/2&n[1]&&L!==(L=/*$_*/e[32]("deposit")+"")&&T(c,L),/*shortCashierActivated*/e[31]?R?R.p(e,n):(R=ti(e),R.c(),R.m(t,null)):R&&(R.d(1),R=null),/*game*/524288&n[0]&&!h(x.src,D=/*game*/e[19].launchUrl)&&E(x,"src",D),/*gameContainerWidth*/8388608&n[0]&&O!==(O=/*gameContainerWidth*/e[23]+"px")&&E(x,"width",O),/*gameContainerHeight*/16777216&n[0]&&P!==(P=/*gameContainerHeight*/e[24]+"px")&&E(x,"height",P),/*haspanicbutton*/"true"===e[9]?I?I.p(e,n):(I=ni(e),I.c(),I.m(H,
|
|
1288
|
+
/*div3_binding*/e[61](S),p(v,A),G&&G.m(v,null)
|
|
1289
|
+
/*div4_binding*/,e[62](v),N||(C=[_(n,"click",/*click_handler*/e[51]),_(u,"click",/*click_handler_1*/e[53])],N=!0)},p(e,n){/*time*/8192&n[0]&&T(a,/*time*/e[13]),/*$_*/2&n[1]&&L!==(L=/*$_*/e[32]("deposit")+"")&&T(c,L),/*shortCashierActivated*/e[31]?R?R.p(e,n):(R=ti(e),R.c(),R.m(t,null)):R&&(R.d(1),R=null),/*game*/524288&n[0]&&!h(x.src,D=/*game*/e[19].launchUrl)&&E(x,"src",D),/*gameContainerWidth*/8388608&n[0]&&O!==(O=/*gameContainerWidth*/e[23]+"px")&&E(x,"width",O),/*gameContainerHeight*/16777216&n[0]&&P!==(P=/*gameContainerHeight*/e[24]+"px")&&E(x,"height",P),/*haspanicbutton*/"true"===e[9]?I?I.p(e,n):(I=ni(e),I.c(),I.m(H,F)):I&&(I.d(1),I=null),U===(U=Y(e))&&$?$.p(e,n):($.d(1),$=U(e),$&&($.c(),$.m(H,null))),/*isFullscreen, definitiveIframeWidth*/201326592&n[0]&&M(S,"width",/*isFullscreen*/e[26]?"100%":/*definitiveIframeWidth*/e[27]),/*isFullscreen, definitiveIframeHeight*/335544320&n[0]&&M(S,"height",/*isFullscreen*/e[26]?"100%":/*definitiveIframeHeight*/e[28]),/*isFullscreen, game*/67633152&n[0]&&M(S,"max-width",/*isFullscreen*/e[26]?"none":/*game*/e[19].width?/*game*/e[19].width+"px":"1280px"),/*isFullscreen, game*/67633152&n[0]&&M(S,"max-height",/*isFullscreen*/e[26]?"none":/*game*/e[19].height?Math.floor(/*game*/e[19].height)+100+"px":"720px"),/*gamebanneractive*/"true"!=e[10]||/*isFullscreen*/e[26]?G&&(G.d(1),G=null):G||(G=oi(),G.c(),G.m(v,null)),/*isFullscreen*/67108864&n[0]&&k(v,"FullsScreenLayout",/*isFullscreen*/e[26])},d(n){n&&y(t)
|
|
1290
1290
|
/*p_binding*/,e[52](null),R&&R.d(),n&&y(f),n&&y(v)
|
|
1291
1291
|
/*iframe_1_binding*/,e[56](null),I&&I.d(),$.d(),
|
|
1292
1292
|
/*div2_binding*/e[60](null),
|
|
1293
1293
|
/*div3_binding*/e[61](null),G&&G.d()
|
|
1294
1294
|
/*div4_binding*/,e[62](null),N=!1,s(C)}}}
|
|
1295
|
-
// (
|
|
1295
|
+
// (461:18) {:else}
|
|
1296
1296
|
function Jr(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21.414 18.586l2.586-2.586v8h-8l2.586-2.586-5.172-5.172 2.828-2.828 5.172 5.172zm-13.656-8l2.828-2.828-5.172-5.172 2.586-2.586h-8v8l2.586-2.586 5.172 5.172zm10.828-8l-2.586-2.586h8v8l-2.586-2.586-5.172 5.172-2.828-2.828 5.172-5.172zm-8 13.656l-2.828-2.828-5.172 5.172-2.586-2.586v8h8l-2.586-2.586 5.172-5.172z"></path></svg>',E(t,"class","FullscreenButton"),E(t,"part","FullscreenButton")},m(r,o){m(r,t,o),n||(i=_(t,"click",/*click_handler_10*/e[69]),n=!0)},p:r,d(e){e&&y(t),n=!1,i()}}}
|
|
1297
|
-
// (
|
|
1297
|
+
// (457:18) {#if isFullscreen}
|
|
1298
1298
|
function Qr(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg width="24" height="24" viewBox="0 0 31 31"><polygon style="fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" points="24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 \t\t\t"></polygon><polygon style="fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" points="0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 \t\t\t"></polygon><polygon style="fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" points="0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 \t\t\t"></polygon><polygon style="fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" points="20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 \t\t\t"></polygon></svg>',E(t,"class","FullscreenButton")},m(r,o){m(r,t,o),n||(i=_(t,"click",/*click_handler_9*/e[68]),n=!0)},p:r,d(e){e&&y(t),n=!1,i()}}}
|
|
1299
|
-
// (
|
|
1299
|
+
// (468:14) {#if gamebanneractive == 'true' && !isFullscreen}
|
|
1300
1300
|
function ei(e){let t;return{c(){t=g("div"),t.innerHTML="<h3>Your banner here</h3>",E(t,"class","BannerSection")},m(e,n){m(e,t,n)},d(e){e&&y(t)}}}
|
|
1301
|
-
// (
|
|
1301
|
+
// (389:12) {#if shortCashierActivated}
|
|
1302
1302
|
function ti(e){let t,n,r,i,o,a,l,u,c;return{c(){t=g("div"),n=w(),r=g("div"),i=g("div"),o=g("div"),o.innerHTML='<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><line x1="2" y1="2" x2="18" y2="18" stroke="black" stroke-width="2"></line><line x1="18" y1="2" x2="2" y2="18" stroke="black" stroke-width="2"></line></svg>',a=w(),l=g("player-deposit"),E(t,"class","ShortCashierWindow"),E(o,"class","ClosePopUpButtonShortCashier"),S(l,"endpoint",/*endpoint*/e[0]),S(l,"session",/*session*/e[2]),S(l,"playerid",/*userid*/e[3]),S(l,"lang",/*lang*/e[1]),S(l,"hasdefaultamount",/*hasdefaultamount*/e[7]),S(l,"playercurrency",/*playercurrency*/e[8]),S(l,"shortcashierenabled",/*shortcashierenabled*/e[6]),S(l,"clientstyling",/*clientstyling*/e[4]),S(l,"clientstylingurl",/*clientstylingurl*/e[5]),E(i,"class","ShortCashierContainerMobile"),E(r,"class","ShortCashierContainerWrapperMobile")},m(s,h){m(s,t,h),m(s,n,h),m(s,r,h),p(r,i),p(i,o),p(i,a),p(i,l),u||(c=[_(t,"click",/*click_handler_2*/e[54]),_(o,"click",/*click_handler_3*/e[55])],u=!0)},p(e,t){/*endpoint*/1&t[0]&&S(l,"endpoint",/*endpoint*/e[0]),/*session*/4&t[0]&&S(l,"session",/*session*/e[2]),/*userid*/8&t[0]&&S(l,"playerid",/*userid*/e[3]),/*lang*/2&t[0]&&S(l,"lang",/*lang*/e[1]),/*hasdefaultamount*/128&t[0]&&S(l,"hasdefaultamount",/*hasdefaultamount*/e[7]),/*playercurrency*/256&t[0]&&S(l,"playercurrency",/*playercurrency*/e[8]),/*shortcashierenabled*/64&t[0]&&S(l,"shortcashierenabled",/*shortcashierenabled*/e[6]),/*clientstyling*/16&t[0]&&S(l,"clientstyling",/*clientstyling*/e[4]),/*clientstylingurl*/32&t[0]&&S(l,"clientstylingurl",/*clientstylingurl*/e[5])},d(e){e&&y(t),e&&y(n),e&&y(r),u=!1,s(c)}}}
|
|
1303
|
-
// (
|
|
1303
|
+
// (418:16) {#if haspanicbutton === "true"}
|
|
1304
1304
|
function ni(e){let t,n,r,i=/*$_*/e[32]("breakButton")+"";return{c(){t=g("div"),n=g("button"),r=b(i),E(n,"class","PanicButton "+("PC"!==Nr(/*userAgent*/e[33])?"PanicButtonMobile":"")),E(n,"part","PanicButton "+("PC"!==Nr(/*userAgent*/e[33])?"PanicButtonMobile":"")),k(n,"PanicButtonAnimation",/*panicLoading*/e[18]),E(t,"class","PanicSection")},m(i,o){m(i,t,o),p(t,n),p(n,r),
|
|
1305
1305
|
/*button_binding*/e[57](n)},p(e,t){/*$_*/2&t[1]&&i!==(i=/*$_*/e[32]("breakButton")+"")&&T(r,i),/*panicLoading*/262144&t[0]&&k(n,"PanicButtonAnimation",/*panicLoading*/e[18])},d(n){n&&y(t)
|
|
1306
1306
|
/*button_binding*/,e[57](null)}}}
|
|
1307
|
-
// (
|
|
1307
|
+
// (427:16) {:else}
|
|
1308
1308
|
function ri(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M21.414 18.586l2.586-2.586v8h-8l2.586-2.586-5.172-5.172 2.828-2.828 5.172 5.172zm-13.656-8l2.828-2.828-5.172-5.172 2.586-2.586h-8v8l2.586-2.586 5.172 5.172zm10.828-8l-2.586-2.586h8v8l-2.586-2.586-5.172 5.172-2.828-2.828 5.172-5.172zm-8 13.656l-2.828-2.828-5.172 5.172-2.586-2.586v8h8l-2.586-2.586 5.172-5.172z"></path></svg>',E(t,"class","FullscreenButton")},m(r,o){m(r,t,o),n||(i=_(t,"click",/*click_handler_5*/e[59]),n=!0)},p:r,d(e){e&&y(t),n=!1,i()}}}
|
|
1309
|
-
// (
|
|
1309
|
+
// (423:16) {#if isFullscreen}
|
|
1310
1310
|
function ii(e){let t,n,i;return{c(){t=g("button"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 31 31"><polygon style="fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" points="24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 \t\t\t"></polygon><polygon style="fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" points="0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 \t\t\t"></polygon><polygon style="fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" points="0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 \t\t\t"></polygon><polygon style="fill: var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));" points="20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 \t\t\t"></polygon></svg>',E(t,"class","FullscreenButton")},m(r,o){m(r,t,o),n||(i=_(t,"click",/*click_handler_4*/e[58]),n=!0)},p:r,d(e){e&&y(t),n=!1,i()}}}
|
|
1311
|
-
// (
|
|
1311
|
+
// (434:12) {#if gamebanneractive == 'true' && !isFullscreen}
|
|
1312
1312
|
function oi(e){let t;return{c(){t=g("div"),t.innerHTML="<h3>Your banner here</h3>",E(t,"class","BannerSection")},m(e,n){m(e,t,n)},d(e){e&&y(t)}}}function si(e){let t;function n(e,t){/*isLoading*/
|
|
1313
1313
|
return e[17]?Xr:/*hasErrors*/e[16]?Zr:zr}let i=n(e),o=i(e);return{c(){t=g("div"),o.c(),this.c=r},m(n,r){m(n,t,r),o.m(t,null),
|
|
1314
1314
|
/*div_binding*/e[73](t)},p(e,r){i===(i=n(e))&&o?o.p(e,r):(o.d(1),o=i(e),o&&(o.c(),o.m(t,null)))},i:r,o:r,d(n){n&&y(t),o.d(),
|
|
1315
|
-
/*div_binding*/e[73](null)}}}function ai(e,t,n){let r;f(e,
|
|
1315
|
+
/*div_binding*/e[73](null)}}}function ai(e,t,n){let r;f(e,Ar,(e=>n(32,r=e)));let i,o,s,a,l,u,c,h,d,p,m,y,g,v,b,w,_,{endpoint:E=""}=t,{lang:S=""}=t,{session:T=""}=t,{userid:M=""}=t,{clientstyling:k=""}=t,{clientstylingurl:x=""}=t,{translationurl:D=""}=t,{loginurl:P=""}=t,{registerurl:H=""}=t,{depositurl:F=""}=t,{loginevent:A=""}=t,{registerevent:N=""}=t,{depositevent:C=""}=t,{shortcashierenabled:L="false"}=t,{hasdefaultamount:R=""}=t,{playercurrency:I=""}=t,{clockformat:Y=""}=t,{haspanicbutton:U="false"}=t,{playforfun:$="true"}=t,{checksession:G="true"}=t,{gamebanneractive:j="false"}=t,{gameid:W=""}=t,V=!1,z=!1,Z=!0,X=!1,q=0,K=!1,J=!1,Q=!0,ee=!1,te=window.navigator.userAgent,ne=!1;!function({withLocale:e,translations:t}){pr.subscribe((n=>{null==n&&(Gn.set(t),pr.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
1316
1316
|
/*dictionary.set(translations);
|
|
1317
1317
|
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(Lr).forEach((e=>{Cr(e,Lr[e])}));
|
|
1318
1318
|
// @TODO game typescript model type
|
|
@@ -1325,7 +1325,7 @@ h/r>d-w.clientHeight-_.clientHeight?(y=d-w.clientHeight-_.clientHeight,m=d*r):(m
|
|
|
1325
1325
|
// sent to modal component a flag (detailsObtained) by witch to determine if a game is open
|
|
1326
1326
|
window.postMessage({type:"GameStateOnResize",detailsObtained:K},window.location.href),
|
|
1327
1327
|
// make sure that a game is open before trying to get the element properties
|
|
1328
|
-
K&&c&&"PC"==Nr(te)&&oe()},ae=()=>{
|
|
1328
|
+
K&&c&&"PC"==Nr(te)&&oe()},ae=()=>{A&&(window.postMessage({type:A,transition:"Login"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)),P&&(
|
|
1329
1329
|
// @ts-ignore
|
|
1330
1330
|
window.location=P),
|
|
1331
1331
|
//Analytics event
|
|
@@ -1335,11 +1335,11 @@ window.location=H),
|
|
|
1335
1335
|
//Analytics event
|
|
1336
1336
|
"function"==typeof gtag&>ag("event","OpenRegisterModal",{context:"IntegratedGamePage"})},ue=()=>{L?(n(31,ne=!0),window.postMessage({type:"DisableScroll"},window.location.href)):C&&(window.postMessage({type:C},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href),
|
|
1337
1337
|
//Analytics event
|
|
1338
|
-
"function"==typeof gtag&>ag("event","GoToDeposit",{context:"IntegratedGamePage"})),
|
|
1338
|
+
"function"==typeof gtag&>ag("event","GoToDeposit",{context:"IntegratedGamePage"})),F&&!L&&(
|
|
1339
1339
|
// @ts-ignore
|
|
1340
|
-
window.location=
|
|
1340
|
+
window.location=F)},ce=e=>{n(31,ne=!1),window.postMessage({type:"EnableScroll"},window.location.href),null==e||e.stopPropagation()},he=e=>{if(e.data&&"CloseShortCashier"===e.data.type)ce()};function de(){document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||!ee||fe()}document.addEventListener&&(document.addEventListener("webkitfullscreenchange",de,!1),document.addEventListener("mozfullscreenchange",de,!1),document.addEventListener("fullscreenchange",de,!1),document.addEventListener("MSFullscreenChange",de,!1));const fe=()=>{(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)&&(ee?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen():c.requestFullscreen?c.requestFullscreen():c.webkitRequestFullscreen?c.webkitRequestFullscreen():c.mozRequestFullScreen?c.mozRequestFullScreen():c.msRequestFullscreen&&c.msRequestFullscreen()),n(26,ee=!ee)},pe=setInterval((()=>{n(13,i=Y?Vr().format(Y):Vr().format("LTS"))}),100),me=()=>{var e;e=S,pr.set(e),(e=>{e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)})(te),n(17,Z=!1)},ye=()=>{"true"==G?function(e,t){return new Promise(((n,r)=>{let i=new Headers;i.append("X-SessionID",t),ge(`${e}/v1/player/session/player`,{method:"GET",headers:i}).then((e=>e.json())).then((e=>n(e))).catch((e=>r(e)))}))}(E,T).then((e=>{s=e.Guid,e.UserID,n(15,V=!0)}),(e=>{n(15,V=!1),console.error("err on session",e)})):s=T},ve=()=>{window.postMessage({type:"GoToPreviousRoute"},window.location.href),window.postMessage({type:"DisableIntegratedGamePage"},window.location.href)},be=e=>{q=0,l=setInterval((()=>{q+=1,n(18,X=!0),q>=3&&clearInterval(l)}),1e3)},we=e=>{q<3&&n(18,X=!1),clearInterval(l)};O((()=>(window.addEventListener("message",he,!1),window.addEventListener("resize",se,!1),Wr.isNative(te),()=>{n(18,X=!1),null==a||a.removeEventListener("mousedown",be),null==a||a.removeEventListener("touchstart",be),
|
|
1341
1341
|
// on mouseup stop interval count
|
|
1342
|
-
null==a||a.removeEventListener("mouseup",
|
|
1342
|
+
null==a||a.removeEventListener("mouseup",we),null==a||a.removeEventListener("touchend",we),window.removeEventListener("message",he),window.removeEventListener("resize",se),clearInterval(pe)})));return e.$$set=e=>{"endpoint"in e&&n(0,E=e.endpoint),"lang"in e&&n(1,S=e.lang),"session"in e&&n(2,T=e.session),"userid"in e&&n(3,M=e.userid),"clientstyling"in e&&n(4,k=e.clientstyling),"clientstylingurl"in e&&n(5,x=e.clientstylingurl),"translationurl"in e&&n(40,D=e.translationurl),"loginurl"in e&&n(41,P=e.loginurl),"registerurl"in e&&n(42,H=e.registerurl),"depositurl"in e&&n(43,F=e.depositurl),"loginevent"in e&&n(44,A=e.loginevent),"registerevent"in e&&n(45,N=e.registerevent),"depositevent"in e&&n(46,C=e.depositevent),"shortcashierenabled"in e&&n(6,L=e.shortcashierenabled),"hasdefaultamount"in e&&n(7,R=e.hasdefaultamount),"playercurrency"in e&&n(8,I=e.playercurrency),"clockformat"in e&&n(47,Y=e.clockformat),"haspanicbutton"in e&&n(9,U=e.haspanicbutton),"playforfun"in e&&n(48,$=e.playforfun),"checksession"in e&&n(49,G=e.checksession),"gamebanneractive"in e&&n(10,j=e.gamebanneractive),"gameid"in e&&n(50,W=e.gameid)},e.$$.update=()=>{/*lang*/2&e.$$.dirty[0]&&S&&me(),/*endpoint, lang*/3&e.$$.dirty[0]|/*gameid*/524288&e.$$.dirty[1]&&E&&W&&S&&re(W),/*session, userid, endpoint*/13&e.$$.dirty[0]&&T&&M&&E&&ye(),/*clientstyling, customStylingContainer*/4112&e.$$.dirty[0]&&k&&b&&(()=>{let e=document.createElement("style");e.innerHTML=k,b.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/4128&e.$$.dirty[0]&&x&&b&&(()=>{let e=document.createElement("style");if(x){let t=new URL(x);fetch(t.href).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{b.appendChild(e)}),1)}))}})(),/*panicButton*/2048&e.$$.dirty[0]&&a&&(null==a||a.addEventListener("mousedown",be,!1),null==a||a.addEventListener("touchstart",be,!1),
|
|
1343
1343
|
// on mouseup stop interval count
|
|
1344
|
-
null==a||a.addEventListener("mouseup",
|
|
1344
|
+
null==a||a.addEventListener("mouseup",we,!1),null==a||a.addEventListener("touchend",we,!1)),/*translationurl*/512&e.$$.dirty[1]&&D&&fetch(D).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Cr(t,e[t])}))})).catch((e=>{console.log(e)}))},[E,S,T,M,k,x,L,R,I,U,j,a,b,i,o,V,z,Z,X,u,J,Q,c,h,d,p,ee,g,v,w,_,ne,r,te,ae,le,ue,ce,fe,ve,D,P,H,F,A,N,C,Y,$,G,W,()=>ve(),function(e){B[e?"unshift":"push"]((()=>{_=e,n(30,_)}))},()=>ue(),e=>ce(e),e=>ce(e),function(e){B[e?"unshift":"push"]((()=>{o=e,n(14,o)}))},function(e){B[e?"unshift":"push"]((()=>{a=e,n(11,a)}))},()=>fe(),()=>fe(),function(e){B[e?"unshift":"push"]((()=>{w=e,n(29,w)}))},function(e){B[e?"unshift":"push"]((()=>{p=e,n(25,p)}))},function(e){B[e?"unshift":"push"]((()=>{c=e,n(22,c)}))},()=>ve(),function(e){B[e?"unshift":"push"]((()=>{_=e,n(30,_)}))},function(e){B[e?"unshift":"push"]((()=>{o=e,n(14,o)}))},()=>ae(),()=>le(),()=>fe(),()=>fe(),function(e){B[e?"unshift":"push"]((()=>{w=e,n(29,w)}))},function(e){B[e?"unshift":"push"]((()=>{p=e,n(25,p)}))},function(e){B[e?"unshift":"push"]((()=>{c=e,n(22,c)}))},function(e){B[e?"unshift":"push"]((()=>{b=e,n(12,b)}))}]}class li extends W{constructor(e){super();const t=document.createElement("style");t.textContent='.SearchLoading{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}@keyframes ModalBounce{0%{opacity:0;transform:translateY(20px)}50%{transform:translateY(-6px);opacity:0.8}100%{transform:translateY(0);opacity:1}}.ShortCashierWindow{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}.ShortCashierContainerWrapperMobile{position:relative;animation:ModalBounce 0.5s forwards;z-index:17}.ShortCashierContainerMobile{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;width:80vw;top:32px;left:50%;transform:translateX(-100%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.ShortCashierContainerMobile:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:78%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.ClosePopUpButtonShortCashier{margin-left:auto;cursor:pointer}.ClosePopUpButtonShortCashier svg{position:absolute;top:10px;right:10px}.CasinoIntegratedGamePage{display:flex;flex-direction:column;height:100vh}.GamePageIntegratedTopSection{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:60px;padding:0 40px}@media(max-width: 768px){.GamePageIntegratedTopSection{padding:0 10px}}.backButton{background:transparent;display:inline-flex;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer}.backButton svg{width:20px;height:20px;margin-right:24px;fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.BottomGame{padding:0 40px;min-height:92px;background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));display:flex;justify-content:space-between;align-items:center}@media(max-width: 768px){.BottomGame{padding:0 10px}}.DepositButton{border:none;padding:12px 20px;background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border-radius:5px;cursor:pointer}.FullscreenButton{border-radius:5px;border:none;width:60px;height:60px;background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));float:right}.FullscreenButton svg{fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.ButtonsContainer{width:275px;display:flex;flex-direction:row;justify-content:space-between}.ButtonsContainer.ButtonsContainerFunMode{margin-right:15px}.ButtonsContainer button{cursor:pointer}.RegisterButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;border:none;width:129px;height:60px}.LoginButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-contrast, var(--emfe-w-color-background, #07072A));border-radius:5px;border:1px solid var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));width:129px;height:60px}.GamesContainer{width:100%;height:100%;max-width:calc(100% - 4px);max-height:100%}.Time{height:20px;margin:0;display:flex;align-items:center;justify-content:center}svg{fill:var(--emfe-w-color-white, #FFFFFF)}p{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}#IframeContainer{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;flex-direction:column}#IframeGame{width:100%;height:100%;display:flex;flex-direction:column}.FullsScreenLayout{position:fixed;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:9999;overflow:auto;background:#000}.FullsScreenLayout .GamesContainer{width:100% !important;height:calc(100% - 100px) !important}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicButton{border-radius:5px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;height:60px;line-height:18px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:80% !important;height:60px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;color:#fff;-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.BannerSection{width:100%;height:150px;background:repeating-linear-gradient(45deg, #606dbc, #606dbc 10px, #465298 10px, #465298 20px);display:flex;justify-content:center;align-items:center}.BannerSection h3{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}',this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:x(this.attributes),customElement:!0},ai,si,l,{endpoint:0,lang:1,session:2,userid:3,clientstyling:4,clientstylingurl:5,translationurl:40,loginurl:41,registerurl:42,depositurl:43,loginevent:44,registerevent:45,depositevent:46,shortcashierenabled:6,hasdefaultamount:7,playercurrency:8,clockformat:47,haspanicbutton:9,playforfun:48,checksession:49,gamebanneractive:10,gameid:50},null,[-1,-1,-1,-1]),e&&(e.target&&m(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["endpoint","lang","session","userid","clientstyling","clientstylingurl","translationurl","loginurl","registerurl","depositurl","loginevent","registerevent","depositevent","shortcashierenabled","hasdefaultamount","playercurrency","clockformat","haspanicbutton","playforfun","checksession","gamebanneractive","gameid"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),I()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),I()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),I()}get userid(){return this.$$.ctx[3]}set userid(e){this.$$set({userid:e}),I()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),I()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),I()}get translationurl(){return this.$$.ctx[40]}set translationurl(e){this.$$set({translationurl:e}),I()}get loginurl(){return this.$$.ctx[41]}set loginurl(e){this.$$set({loginurl:e}),I()}get registerurl(){return this.$$.ctx[42]}set registerurl(e){this.$$set({registerurl:e}),I()}get depositurl(){return this.$$.ctx[43]}set depositurl(e){this.$$set({depositurl:e}),I()}get loginevent(){return this.$$.ctx[44]}set loginevent(e){this.$$set({loginevent:e}),I()}get registerevent(){return this.$$.ctx[45]}set registerevent(e){this.$$set({registerevent:e}),I()}get depositevent(){return this.$$.ctx[46]}set depositevent(e){this.$$set({depositevent:e}),I()}get shortcashierenabled(){return this.$$.ctx[6]}set shortcashierenabled(e){this.$$set({shortcashierenabled:e}),I()}get hasdefaultamount(){return this.$$.ctx[7]}set hasdefaultamount(e){this.$$set({hasdefaultamount:e}),I()}get playercurrency(){return this.$$.ctx[8]}set playercurrency(e){this.$$set({playercurrency:e}),I()}get clockformat(){return this.$$.ctx[47]}set clockformat(e){this.$$set({clockformat:e}),I()}get haspanicbutton(){return this.$$.ctx[9]}set haspanicbutton(e){this.$$set({haspanicbutton:e}),I()}get playforfun(){return this.$$.ctx[48]}set playforfun(e){this.$$set({playforfun:e}),I()}get checksession(){return this.$$.ctx[49]}set checksession(e){this.$$set({checksession:e}),I()}get gamebanneractive(){return this.$$.ctx[10]}set gamebanneractive(e){this.$$set({gamebanneractive:e}),I()}get gameid(){return this.$$.ctx[50]}set gameid(e){this.$$set({gameid:e}),I()}}return!customElements.get("casino-integrated-game-page")&&customElements.define("casino-integrated-game-page",li),li}));
|
|
1345
1345
|
//# sourceMappingURL=casino-integrated-game-page.js.map
|