@everymatrix/casino-last-played-section 1.5.6 → 1.6.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function r(e){e.forEach(t)}function i(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let o
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function r(e){e.forEach(t)}function i(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,o;function l(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function c(t,...n){if(null==t)return e;const r=t.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}function u(e,t,n){e.$$.on_destroy.push(c(t,n))}function h(e,t){e.appendChild(t)}function d(e,t,n){e.insertBefore(t,n||null)}function m(e){e.parentNode.removeChild(e)}function f(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function p(e){return document.createElement(e)}function g(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function y(e){return document.createTextNode(e)}function v(){return y(" ")}function b(){return y("")}function w(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function _(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function S(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:_(e,t,n)}function x(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function T(e,t,n,r){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}class E{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,n=null){this.e||(this.is_svg?this.e=g(t.nodeName):this.e=p(t.nodeName),this.t=t,this.c(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)d(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(m)}}function G(e){const t={};for(const n of e)t[n.name]=n.value;return t}function M(e){o=e}function C(e){(function(){if(!o)throw new Error("Function called outside component initialization");return o})().$$.on_mount.push(e)}const L=[],k=[],I=[],F=[],$=Promise.resolve();let D=!1;function O(){D||(D=!0,$.then(H))}function P(){return O(),$}function N(e){I.push(e)}
|
|
2
2
|
// flush() calls callbacks in this order:
|
|
3
3
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
|
4
4
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
// callback called a second time; the seen_callbacks set, outside the flush()
|
|
19
19
|
// function, guarantees this behavior.
|
|
20
20
|
const A=new Set;let R=0;// Do *not* move this inside the flush() function
|
|
21
|
-
function H(){const e=
|
|
21
|
+
function H(){const e=o;do{
|
|
22
22
|
// first, call beforeUpdate functions
|
|
23
23
|
// and update components
|
|
24
24
|
for(;R<L.length;){const e=L[R];R++,M(e),B(e.$$)}for(M(null),L.length=0,R=0;k.length;)k.pop()();
|
|
@@ -27,24 +27,24 @@ for(;R<L.length;){const e=L[R];R++,M(e),B(e.$$)}for(M(null),L.length=0,R=0;k.len
|
|
|
27
27
|
// subsequent updates...
|
|
28
28
|
for(let e=0;e<I.length;e+=1){const t=I[e];A.has(t)||(
|
|
29
29
|
// ...so guard against infinite loops
|
|
30
|
-
A.add(t),t())}I.length=0}while(L.length);for(;F.length;)F.pop()()
|
|
30
|
+
A.add(t),t())}I.length=0}while(L.length);for(;F.length;)F.pop()();D=!1,A.clear(),M(e)}function B(e){if(null!==e.fragment){e.update(),r(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(N)}}const U=new Set;function Y(a,s,l,c,u,h,d,f=[-1]){const p=o;M(a);const g=a.$$={fragment:null,ctx:null,
|
|
31
31
|
// state
|
|
32
32
|
props:h,update:e,not_equal:u,bound:n(),
|
|
33
33
|
// lifecycle
|
|
34
|
-
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(
|
|
34
|
+
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(p?p.$$.context:[])),
|
|
35
35
|
// everything else
|
|
36
|
-
callbacks:n(),dirty:f,skip_bound:!1,root:
|
|
36
|
+
callbacks:n(),dirty:f,skip_bound:!1,root:s.target||p.$$.root};d&&d(g.root);let y=!1;if(g.ctx=l?l(a,s.props||{},((e,t,...n)=>{const r=n.length?n[0]:t;return g.ctx&&u(g.ctx[e],g.ctx[e]=r)&&(!g.skip_bound&&g.bound[e]&&g.bound[e](r),y&&function(e,t){-1===e.$$.dirty[0]&&(L.push(e),O(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(a,e)),t})):[],g.update(),y=!0,r(g.before_update),
|
|
37
37
|
// `false` as a special case of no DOM component
|
|
38
|
-
g.fragment=!!c&&c(g.ctx),
|
|
38
|
+
g.fragment=!!c&&c(g.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);
|
|
39
39
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
40
40
|
g.fragment&&g.fragment.l(e),e.forEach(m)}else
|
|
41
41
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
42
|
-
g.fragment&&g.fragment.c();
|
|
42
|
+
g.fragment&&g.fragment.c();s.intro&&((v=a.$$.fragment)&&v.i&&(U.delete(v),v.i(b))),function(e,n,a,s){const{fragment:o,on_mount:l,on_destroy:c,after_update:u}=e.$$;o&&o.m(n,a),s||
|
|
43
43
|
// onMount happens before the initial afterUpdate
|
|
44
44
|
N((()=>{const n=l.map(t).filter(i);c?c.push(...n):
|
|
45
45
|
// Edge case - component was destroyed immediately,
|
|
46
46
|
// most likely as a result of a binding initialising
|
|
47
|
-
r(n),e.$$.on_mount=[]})),u.forEach(N)}(a,
|
|
47
|
+
r(n),e.$$.on_mount=[]})),u.forEach(N)}(a,s.target,s.anchor,s.customElement),H()}var v,b;M(p)}let j;"function"==typeof HTMLElement&&(j=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(i);
|
|
48
48
|
// @ts-ignore todo: improve typings
|
|
49
49
|
for(const e in this.$$.slotted)
|
|
50
50
|
// @ts-ignore todo: improve typings
|
|
@@ -53,9 +53,9 @@ this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}d
|
|
|
53
53
|
// preserve final state?)
|
|
54
54
|
n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=e}$on(e,t){
|
|
55
55
|
// TODO should this delegate to addEventListener?
|
|
56
|
-
const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var z="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==z&&z,W="URLSearchParams"in z,V="Symbol"in z&&"iterator"in Symbol,Z="FileReader"in z&&"Blob"in z&&function(){try{return new Blob,!0}catch(e){return!1}}(),K="FormData"in z,X="ArrayBuffer"in z;if(X)var
|
|
56
|
+
const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var z="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==z&&z,W="URLSearchParams"in z,V="Symbol"in z&&"iterator"in Symbol,Z="FileReader"in z&&"Blob"in z&&function(){try{return new Blob,!0}catch(e){return!1}}(),K="FormData"in z,X="ArrayBuffer"in z;if(X)var q=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],J=ArrayBuffer.isView||function(e){return e&&q.indexOf(Object.prototype.toString.call(e))>-1};function Q(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function ee(e){return"string"!=typeof e&&(e=String(e)),e}
|
|
57
57
|
// Build a destructive iterator for the value list
|
|
58
|
-
function te(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return V&&(t[Symbol.iterator]=function(){return t}),t}function ne(e){this.map={},e instanceof ne?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function re(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ie(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function ae(e){var t=new FileReader,n=ie(t);return t.readAsArrayBuffer(e),n}function
|
|
58
|
+
function te(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return V&&(t[Symbol.iterator]=function(){return t}),t}function ne(e){this.map={},e instanceof ne?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function re(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ie(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function ae(e){var t=new FileReader,n=ie(t);return t.readAsArrayBuffer(e),n}function se(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function oe(){return this.bodyUsed=!1,this._initBody=function(e){var t;
|
|
59
59
|
/*
|
|
60
60
|
fetch-mock wraps the Response object in an ES6 Proxy to
|
|
61
61
|
provide useful test harness features such as flush. However, on
|
|
@@ -66,21 +66,21 @@ function te(e){var t={next:function(){var t=e.shift();return{done:void 0===t,val
|
|
|
66
66
|
semantic of setting Request.bodyUsed in the constructor before
|
|
67
67
|
_initBody is called.
|
|
68
68
|
*/
|
|
69
|
-
this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:Z&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:K&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:W&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():X&&Z&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=
|
|
69
|
+
this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:Z&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:K&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:W&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():X&&Z&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=se(e.buffer),
|
|
70
70
|
// IE 10-11 can't handle a DataView body.
|
|
71
|
-
this._bodyInit=new Blob([this._bodyArrayBuffer])):X&&(ArrayBuffer.prototype.isPrototypeOf(e)||
|
|
71
|
+
this._bodyInit=new Blob([this._bodyArrayBuffer])):X&&(ArrayBuffer.prototype.isPrototypeOf(e)||J(e))?this._bodyArrayBuffer=se(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):W&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Z&&(this.blob=function(){var e=re(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=re(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(ae)}),this.text=function(){var e,t,n,r=re(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=ie(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},K&&(this.formData=function(){return this.text().then(ue)}),this.json=function(){return this.text().then(JSON.parse)},this}
|
|
72
72
|
// HTTP methods whose capitalization should be normalized
|
|
73
73
|
ne.prototype.append=function(e,t){e=Q(e),t=ee(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},ne.prototype.delete=function(e){delete this.map[Q(e)]},ne.prototype.get=function(e){return e=Q(e),this.has(e)?this.map[e]:null},ne.prototype.has=function(e){return this.map.hasOwnProperty(Q(e))},ne.prototype.set=function(e,t){this.map[Q(e)]=ee(t)},ne.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},ne.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),te(e)},ne.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),te(e)},ne.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),te(e)},V&&(ne.prototype[Symbol.iterator]=ne.prototype.entries);var le=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ce(e,t){if(!(this instanceof ce))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof ce){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new ne(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new ne(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),le.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){
|
|
74
74
|
// Search for a '_' parameter in the query string
|
|
75
75
|
var a=/([?&])_=[^&]*/;if(a.test(this.url))
|
|
76
76
|
// If it already exists then set the value with the current time
|
|
77
|
-
this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function ue(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function he(e,t){if(!(this instanceof he))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new ne(t.headers),this.url=t.url||"",this._initBody(e)}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})},
|
|
77
|
+
this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function ue(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function he(e,t){if(!(this instanceof he))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new ne(t.headers),this.url=t.url||"",this._initBody(e)}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})},oe.call(ce.prototype),oe.call(he.prototype),he.prototype.clone=function(){return new he(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ne(this.headers),url:this.url})},he.error=function(){var e=new he(null,{status:0,statusText:""});return e.type="error",e};var de=[301,302,303,307,308];he.redirect=function(e,t){if(-1===de.indexOf(t))throw new RangeError("Invalid status code");return new he(null,{status:t,headers:{location:e}})};var me=z.DOMException;try{new me}catch(e){(me=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),me.prototype.constructor=me}function fe(e,t){return new Promise((function(n,r){var i=new ce(e,t);if(i.signal&&i.signal.aborted)return r(new me("Aborted","AbortError"));var a=new XMLHttpRequest;function s(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new ne,
|
|
78
78
|
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
|
79
79
|
// https://github.com/github/fetch/issues/748
|
|
80
80
|
// https://github.com/zloirock/core-js/issues/751
|
|
81
|
-
e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;setTimeout((function(){n(new he(i,r))}),0)},a.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){r(new me("Aborted","AbortError"))}),0)},a.open(i.method,function(e){try{return""===e&&z.location.href?z.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&(Z?a.responseType="blob":X&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof ne?i.headers.forEach((function(e,t){a.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){a.setRequestHeader(e,ee(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",
|
|
81
|
+
e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;setTimeout((function(){n(new he(i,r))}),0)},a.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){r(new me("Aborted","AbortError"))}),0)},a.open(i.method,function(e){try{return""===e&&z.location.href?z.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&(Z?a.responseType="blob":X&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof ne?i.headers.forEach((function(e,t){a.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){a.setRequestHeader(e,ee(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",s),a.onreadystatechange=function(){
|
|
82
82
|
// DONE (success or failure)
|
|
83
|
-
4===a.readyState&&i.signal.removeEventListener("abort",
|
|
83
|
+
4===a.readyState&&i.signal.removeEventListener("abort",s)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}fe.polyfill=!0,z.fetch||(z.fetch=fe,z.Headers=ne,z.Request=ce,z.Response=he);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function pe(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
|
|
84
84
|
// the whatwg-fetch polyfill installs the fetch() function
|
|
85
85
|
// on the global object (window or self)
|
|
86
86
|
|
|
@@ -101,7 +101,7 @@ self.fetch.bind(self);
|
|
|
101
101
|
PERFORMANCE OF THIS SOFTWARE.
|
|
102
102
|
***************************************************************************** */
|
|
103
103
|
/* global Reflect, Promise */
|
|
104
|
-
var ge=function(e,t){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ge(e,t)};function ye(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}ge(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function ve(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 be(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function we(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;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 _e(e){return"function"==typeof e}function Se(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}var xe=Se((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 Te(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Ee=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var o=ve(a),s=o.next();!s.done;s=o.next()){s.value.remove(this)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else a.remove(this);var l=this.initialTeardown;if(_e(l))try{l()}catch(e){i=e instanceof xe?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=ve(c),h=u.next();!h.done;h=u.next()){var d=h.value;try{Ce(d)}catch(e){i=null!=i?i:[],e instanceof xe?i=we(we([],be(i)),be(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new xe(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Ce(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)&&Te(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&Te(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Ge=Ee.EMPTY;function Me(e){return e instanceof Ee||e&&"closed"in e&&_e(e.remove)&&_e(e.add)&&_e(e.unsubscribe)}function Ce(e){_e(e)?e():e.unsubscribe()}var Le={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ke={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=ke.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,we([e,t],be(n))):setTimeout.apply(void 0,we([e,t],be(n)))},clearTimeout:function(e){var t=ke.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ie(){}var Fe=null;function De(e){if(Le.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 $e=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Me(t)&&t.add(n)):n.destination=He,n}return ye(t,e),t.create=function(e,t,n){return new Ae(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}(Ee),Oe=Function.prototype.bind;function Pe(e,t){return Oe.call(e,t)}var Ne=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){Re(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Re(e)}else Re(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Re(e)}},e}(),Ae=function(e){function t(t,n,r){var i,a,o=e.call(this)||this;_e(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:o&&Le.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return o.unsubscribe()},i={next:t.next&&Pe(t.next,a),error:t.error&&Pe(t.error,a),complete:t.complete&&Pe(t.complete,a)}):i=t;return o.destination=new Ne(i),o}return ye(t,e),t}($e);function Re(e){var t;t=e,ke.setTimeout((function(){throw t}))}var He={closed:!0,next:Ie,error:function(e){throw e},complete:Ie},Be="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ue(e){return e}function Ye(e){return 0===e.length?Ue:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var je=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,a=(r=e)&&r instanceof $e||function(e){return e&&_e(e.next)&&_e(e.error)&&_e(e.complete)}(r)&&Me(r)?e:new Ae(e,t,n);return De((function(){var e=i,t=e.operator,n=e.source;a.add(t?t.call(a,n):n?i._subscribe(a):i._trySubscribe(a))})),a},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=ze(t))((function(t,r){var i=new Ae({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[Be]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ye(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=ze(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 ze(e){var t;return null!==(t=null!=e?e:Le.Promise)&&void 0!==t?t:Promise}var We=Se((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ve=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 ye(t,e),t.prototype.lift=function(e){var t=new Ze(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new We},t.prototype.next=function(e){var t=this;De((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=ve(t.currentObservers),a=i.next();!a.done;a=i.next()){a.value.next(e)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;De((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;De((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,a=n.observers;return r||i?Ge:(this.currentObservers=null,a.push(e),new Ee((function(){t.currentObservers=null,Te(a,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 je;return e.source=this,e},t.create=function(e,t){return new Ze(e,t)},t}(je),Ze=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return ye(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:Ge},t}(Ve),Ke={now:function(){return(Ke.delegate||Date).now()},delegate:void 0},Xe=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=Ke);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 ye(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,o=n._timestampProvider,s=n._windowTime;r||(i.push(t),!a&&i.push(o.now()+s)),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,a=(i?1:2)*t;if(t<1/0&&a<r.length&&r.splice(0,r.length-a),!i){for(var o=n.now(),s=0,l=1;l<r.length&&r[l]<=o;l+=2)s=l;s&&r.splice(0,s+1)}},t}(Ve);let Je=[],qe={};
|
|
104
|
+
var ge=function(e,t){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ge(e,t)};function ye(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}ge(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function ve(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 be(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return s}function we(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;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 _e(e){return"function"==typeof e}function Se(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}var xe=Se((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 Te(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Ee=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=ve(a),o=s.next();!o.done;o=s.next()){o.value.remove(this)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else a.remove(this);var l=this.initialTeardown;if(_e(l))try{l()}catch(e){i=e instanceof xe?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=ve(c),h=u.next();!h.done;h=u.next()){var d=h.value;try{Ce(d)}catch(e){i=null!=i?i:[],e instanceof xe?i=we(we([],be(i)),be(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new xe(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Ce(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)&&Te(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&Te(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Ge=Ee.EMPTY;function Me(e){return e instanceof Ee||e&&"closed"in e&&_e(e.remove)&&_e(e.add)&&_e(e.unsubscribe)}function Ce(e){_e(e)?e():e.unsubscribe()}var Le={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ke={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=ke.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,we([e,t],be(n))):setTimeout.apply(void 0,we([e,t],be(n)))},clearTimeout:function(e){var t=ke.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ie(){}var Fe=null;function $e(e){if(Le.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 De=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Me(t)&&t.add(n)):n.destination=He,n}return ye(t,e),t.create=function(e,t,n){return new Ae(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}(Ee),Oe=Function.prototype.bind;function Pe(e,t){return Oe.call(e,t)}var Ne=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){Re(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Re(e)}else Re(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Re(e)}},e}(),Ae=function(e){function t(t,n,r){var i,a,s=e.call(this)||this;_e(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&Le.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&Pe(t.next,a),error:t.error&&Pe(t.error,a),complete:t.complete&&Pe(t.complete,a)}):i=t;return s.destination=new Ne(i),s}return ye(t,e),t}(De);function Re(e){var t;t=e,ke.setTimeout((function(){throw t}))}var He={closed:!0,next:Ie,error:function(e){throw e},complete:Ie},Be="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ue(e){return e}function Ye(e){return 0===e.length?Ue:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var je=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,a=(r=e)&&r instanceof De||function(e){return e&&_e(e.next)&&_e(e.error)&&_e(e.complete)}(r)&&Me(r)?e:new Ae(e,t,n);return $e((function(){var e=i,t=e.operator,n=e.source;a.add(t?t.call(a,n):n?i._subscribe(a):i._trySubscribe(a))})),a},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=ze(t))((function(t,r){var i=new Ae({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[Be]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ye(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=ze(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 ze(e){var t;return null!==(t=null!=e?e:Le.Promise)&&void 0!==t?t:Promise}var We=Se((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ve=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 ye(t,e),t.prototype.lift=function(e){var t=new Ze(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new We},t.prototype.next=function(e){var t=this;$e((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=ve(t.currentObservers),a=i.next();!a.done;a=i.next()){a.value.next(e)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;$e((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;$e((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,a=n.observers;return r||i?Ge:(this.currentObservers=null,a.push(e),new Ee((function(){t.currentObservers=null,Te(a,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 je;return e.source=this,e},t.create=function(e,t){return new Ze(e,t)},t}(je),Ze=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return ye(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:Ge},t}(Ve),Ke={now:function(){return(Ke.delegate||Date).now()},delegate:void 0},Xe=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=Ke);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 ye(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,o=n._windowTime;r||(i.push(t),!a&&i.push(s.now()+o)),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,a=(i?1:2)*t;if(t<1/0&&a<r.length&&r.splice(0,r.length-a),!i){for(var s=n.now(),o=0,l=1;l<r.length&&r[l]<=s;l+=2)o=l;o&&r.splice(0,o+1)}},t}(Ve);let qe=[],Je={};
|
|
105
105
|
/**
|
|
106
106
|
* @name topic
|
|
107
107
|
* @description A small wrapper over the rxjs to offer the topic method on top of it
|
|
@@ -115,8 +115,8 @@ const Qe=[];
|
|
|
115
115
|
* @param {*=}value initial value
|
|
116
116
|
* @param {StartStopNotifier=}start start and stop notifications for subscriptions
|
|
117
117
|
*/
|
|
118
|
-
function et(t,n=e){let r;const i=new Set;function
|
|
119
|
-
const e=!Qe.length;for(const e of i)e[1](),Qe.push(e,t);if(e){for(let e=0;e<Qe.length;e+=2)Qe[e][0](Qe[e+1]);Qe.length=0}}}return{set:
|
|
118
|
+
function et(t,n=e){let r;const i=new Set;function s(e){if(a(t,e)&&(t=e,r)){// store is ready
|
|
119
|
+
const e=!Qe.length;for(const e of i)e[1](),Qe.push(e,t);if(e){for(let e=0;e<Qe.length;e+=2)Qe[e][0](Qe[e+1]);Qe.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(a,o=e){const l=[a,o];return i.add(l),1===i.size&&(r=n(s)||e),a(t),()=>{i.delete(l),0===i.size&&(r(),r=null)}}}}function tt(t,n,a){const s=!Array.isArray(t),o=s?[t]:t,l=n.length<2;return u=t=>{let a=!1;const u=[];let h=0,d=e;const m=()=>{if(h)return;d();const r=n(s?u[0]:u,t);l?t(r):d=i(r)?r:e},f=o.map(((e,t)=>c(e,(e=>{u[t]=e,h&=~(1<<t),a&&m()}),(()=>{h|=1<<t}))));return a=!0,m(),function(){r(f),d()}},{subscribe:et(a,u).subscribe};
|
|
120
120
|
/**
|
|
121
121
|
* Creates a `Readable` store that allows reading by subscription.
|
|
122
122
|
* @param value initial value
|
|
@@ -124,10 +124,10 @@ const e=!Qe.length;for(const e of i)e[1](),Qe.push(e,t);if(e){for(let e=0;e<Qe.l
|
|
|
124
124
|
*/
|
|
125
125
|
var u}var nt=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===rt}(e)}
|
|
126
126
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
127
|
-
(e)};var rt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function it(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ct((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function at(e,t,n){return e.concat(t).map((function(e){return it(e,n)}))}function
|
|
127
|
+
(e)};var rt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function it(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ct((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function at(e,t,n){return e.concat(t).map((function(e){return it(e,n)}))}function st(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function ot(e,t){try{return t in e}catch(e){return!1}}
|
|
128
128
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
129
|
-
function lt(e,t,n){var r={};return n.isMergeableObject(e)&&
|
|
130
|
-
})(e,i)||(
|
|
129
|
+
function lt(e,t,n){var r={};return n.isMergeableObject(e)&&st(e).forEach((function(t){r[t]=it(e[t],n)})),st(t).forEach((function(i){(function(e,t){return ot(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
|
|
130
|
+
})(e,i)||(ot(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return ct;var n=t.customMerge(e);return"function"==typeof n?n:ct}(i,n)(e[i],t[i],n):r[i]=it(t[i],n))})),r}function ct(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||at,n.isMergeableObject=n.isMergeableObject||nt,
|
|
131
131
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
132
132
|
// implementations can use it. The caller may not replace it.
|
|
133
133
|
n.cloneUnlessOtherwiseSpecified=it;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):lt(e,t,n):it(t,n)}ct.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return ct(e,n,t)}),{})};var ut=ct,ht=function(e,t){return ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ht(e,t)};function dt(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}ht(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var mt,ft,pt,gt=function(){return gt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},gt.apply(this,arguments)};function yt(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;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))}
|
|
@@ -279,7 +279,7 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
|
279
279
|
case"x":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
280
280
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
|
|
281
281
|
// @generated from regex-gen.ts
|
|
282
|
-
var Ft=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var
|
|
282
|
+
var Ft=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var $t=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Dt=/^(@+)?(\+|#+)?[rs]?$/g,Ot=/(\*)(0+)|(#+)(0+)|(0+)/g,Pt=/^(0+)$/;function Nt(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Dt,(function(e,n,r){
|
|
283
283
|
// @@@ case
|
|
284
284
|
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 At(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 Rt(e){
|
|
285
285
|
// Engineering
|
|
@@ -290,19 +290,19 @@ var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===
|
|
|
290
290
|
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
|
|
291
291
|
case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;
|
|
292
292
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
293
|
-
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Ot,(function(e,n,r,i,a,
|
|
293
|
+
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Ot,(function(e,n,r,i,a,s){if(n)t.minimumIntegerDigits=r.length;else{if(i&&a)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}
|
|
294
294
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
295
|
-
if(Pt.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(
|
|
295
|
+
if(Pt.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if($t.test(i.stem)){
|
|
296
296
|
// Precision
|
|
297
297
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
|
|
298
298
|
// precision-integer case
|
|
299
|
-
if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(
|
|
299
|
+
if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace($t,(function(e,n,r,i,a,s){
|
|
300
300
|
// .000* case (before ICU67 it was .000+)
|
|
301
|
-
return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&
|
|
301
|
+
return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&s?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+s.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var a=i.options[0];
|
|
302
302
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
303
303
|
"w"===a?t=gt(gt({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=gt(gt({},t),Nt(a)))}
|
|
304
304
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
|
|
305
|
-
else if(
|
|
305
|
+
else if(Dt.test(i.stem))t=gt(gt({},t),Nt(i.stem));else{var s=At(i.stem);s&&(t=gt(gt({},t),s));var o=Rt(i.stem);o&&(t=gt(gt({},t),o))}}return t}
|
|
306
306
|
// @generated from time-data-gen.ts
|
|
307
307
|
// prettier-ignore
|
|
308
308
|
var Ut,Yt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
|
|
@@ -329,7 +329,7 @@ t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12"
|
|
|
329
329
|
var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(Yt[n||""]||Yt[r||""]||Yt["".concat(r,"-001")]||Yt["001"])[0]}var zt=new RegExp("^".concat(Lt.source,"*")),Wt=new RegExp("".concat(Lt.source,"*$"));function Vt(e,t){return{start:e,end:t}}
|
|
330
330
|
// #region Ponyfills
|
|
331
331
|
// Consolidate these variables up top for easier toggling during debugging
|
|
332
|
-
var Zt=!!String.prototype.startsWith,Kt=!!String.fromCodePoint,Xt=!!Object.fromEntries,
|
|
332
|
+
var Zt=!!String.prototype.startsWith,Kt=!!String.fromCodePoint,Xt=!!Object.fromEntries,qt=!!String.prototype.codePointAt,Jt=!!String.prototype.trimStart,Qt=!!String.prototype.trimEnd,en=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},tn=!0;try{
|
|
333
333
|
/**
|
|
334
334
|
* legacy Edge or Xbox One browser
|
|
335
335
|
* Unicode flag support: supported
|
|
@@ -339,12 +339,12 @@ var Zt=!!String.prototype.startsWith,Kt=!!String.fromCodePoint,Xt=!!Object.fromE
|
|
|
339
339
|
tn="a"===(null===(Ut=un("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ut?void 0:Ut[0])}catch(e){tn=!1}var nn,rn=Zt?// Native
|
|
340
340
|
function(e,t,n){return e.startsWith(t,n)}:// For IE11
|
|
341
341
|
function(e,t,n){return e.slice(n,n+t.length)===t},an=Kt?String.fromCodePoint:// IE11
|
|
342
|
-
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,a=0;i>a;){if((n=e[a++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},
|
|
342
|
+
function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,a=0;i>a;){if((n=e[a++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},sn=
|
|
343
343
|
// native
|
|
344
344
|
Xt?Object.fromEntries:// Ponyfill
|
|
345
|
-
function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],a=i[0],
|
|
345
|
+
function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],a=i[0],s=i[1];t[a]=s}return t},on=qt?// Native
|
|
346
346
|
function(e,t){return e.codePointAt(t)}:// IE 11
|
|
347
|
-
function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},ln=
|
|
347
|
+
function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},ln=Jt?// Native
|
|
348
348
|
function(e){return e.trimStart()}:// Ponyfill
|
|
349
349
|
function(e){return e.replace(zt,"")},cn=Qt?// Native
|
|
350
350
|
function(e){return e.trimEnd()}:// Ponyfill
|
|
@@ -356,7 +356,7 @@ if(tn){
|
|
|
356
356
|
// Native
|
|
357
357
|
var hn=un("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");nn=function(e,t){var n;return hn.lastIndex=t,null!==(n=hn.exec(e)[1])&&void 0!==n?n:""}}else
|
|
358
358
|
// IE11
|
|
359
|
-
nn=function(e,t){for(var n=[];;){var r=
|
|
359
|
+
nn=function(e,t){for(var n=[];;){var r=on(e,t);if(void 0===r||pn(r)||gn(r))break;n.push(r),t+=r>=65536?2:1}return an.apply(void 0,n)};var dn=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((a=this.parseArgument(e,n)).err)return a;r.push(a.val)}else{if(125/* `}` */===i&&e>0)break;if(35/* `#` */!==i||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(mt.UNMATCHED_CLOSING_TAG,Vt(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&mn(this.peek()||0)){if((a=this.parseTag(e,t)).err)return a;r.push(a.val)}else{var a;if((a=this.parseLiteral(e,t)).err)return a;r.push(a.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:ft.pound,location:Vt(s,this.clonePosition())})}}}return{val:r,err:null}},
|
|
360
360
|
/**
|
|
361
361
|
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
|
362
362
|
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
|
@@ -378,14 +378,14 @@ nn=function(e,t){for(var n=[];;){var r=sn(e,t);if(void 0===r||pn(r)||gn(r))break
|
|
|
378
378
|
e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();// `<`
|
|
379
379
|
var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))
|
|
380
380
|
// Self closing tag
|
|
381
|
-
return{val:{type:ft.literal,value:"<".concat(r,"/>"),location:Vt(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,
|
|
381
|
+
return{val:{type:ft.literal,value:"<".concat(r,"/>"),location:Vt(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,s=this.clonePosition();
|
|
382
382
|
// Expecting a close tag
|
|
383
|
-
if(this.bumpIf("</")){if(this.isEOF()||!mn(this.char()))return this.error(mt.INVALID_TAG,Vt(
|
|
383
|
+
if(this.bumpIf("</")){if(this.isEOF()||!mn(this.char()))return this.error(mt.INVALID_TAG,Vt(s,this.clonePosition()));var o=this.clonePosition();return r!==this.parseTagName()?this.error(mt.UNMATCHED_CLOSING_TAG,Vt(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ft.tag,value:r,children:a,location:Vt(n,this.clonePosition())},err:null}:this.error(mt.INVALID_TAG,Vt(s,this.clonePosition())))}return this.error(mt.UNCLOSED_TAG,Vt(n,this.clonePosition()))}return this.error(mt.INVALID_TAG,Vt(n,this.clonePosition()))},
|
|
384
384
|
/**
|
|
385
385
|
* This method assumes that the caller has peeked ahead for the first tag character.
|
|
386
386
|
*/
|
|
387
387
|
e.prototype.parseTagName=function(){var e=this.offset();// the first tag name character
|
|
388
|
-
for(this.bump();!this.isEOF()&&fn(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var a=this.tryParseUnquoted(e,t);if(a)r+=a;else{var
|
|
388
|
+
for(this.bump();!this.isEOF()&&fn(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var a=this.tryParseUnquoted(e,t);if(a)r+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var o=Vt(n,this.clonePosition());return{val:{type:ft.literal,value:r,location:o},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60/* `<` */!==this.char()||!this.ignoreTag&&(mn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e;
|
|
389
389
|
/** See `parseTag` function docs. */},
|
|
390
390
|
/**
|
|
391
391
|
* Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes
|
|
@@ -423,13 +423,13 @@ this.bumpSpace(),this.isEOF()?this.error(mt.EXPECT_ARGUMENT_CLOSING_BRACE,Vt(n,t
|
|
|
423
423
|
* Advance the parser until the end of the identifier, if it is currently on
|
|
424
424
|
* an identifier character. Return an empty string otherwise.
|
|
425
425
|
*/
|
|
426
|
-
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=nn(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Vt(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,a=this.clonePosition(),
|
|
426
|
+
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=nn(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Vt(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,o=this.clonePosition();
|
|
427
427
|
// Parse this range:
|
|
428
428
|
// {name, type, style}
|
|
429
429
|
// ^---^
|
|
430
|
-
switch(
|
|
430
|
+
switch(s){case"":
|
|
431
431
|
// Expecting a style string number, date, time, plural, selectordinal, or select.
|
|
432
|
-
return this.error(mt.EXPECT_ARGUMENT_TYPE,Vt(a,
|
|
432
|
+
return this.error(mt.EXPECT_ARGUMENT_TYPE,Vt(a,o));case"number":case"date":case"time":
|
|
433
433
|
// Parse this range:
|
|
434
434
|
// {name, number, style}
|
|
435
435
|
// ^-------^
|
|
@@ -437,13 +437,13 @@ this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clo
|
|
|
437
437
|
// Extract style or skeleton
|
|
438
438
|
if(l&&rn(null==l?void 0:l.style,"::",0)){
|
|
439
439
|
// Skeleton starts with `::`.
|
|
440
|
-
var h=ln(l.style.slice(2));if("number"===
|
|
440
|
+
var h=ln(l.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?y:{val:{type:ft.number,value:n,location:u,style:y.val},err:null};if(0===h.length)return this.error(mt.EXPECT_DATE_TIME_SKELETON,u);var d=h;
|
|
441
441
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
442
442
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
443
443
|
// for unsupported patterns.
|
|
444
|
-
this.locale&&(d=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var
|
|
444
|
+
this.locale&&(d=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var s=1+(1&a),o=a<2?1:3+(a>>1),l=jt(t);for("H"!=l&&"k"!=l||(o=0);o-- >0;)n+="a";for(;s-- >0;)n=l+n}else n+="J"===i?"H":i}return n}(h,this.locale));var m={type:pt.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?It(d):{}};return{val:{type:"date"===s?ft.date:ft.time,value:n,location:u,style:m},err:null}}
|
|
445
445
|
// Regular style or no style.
|
|
446
|
-
return{val:{type:"number"===
|
|
446
|
+
return{val:{type:"number"===s?ft.number:"date"===s?ft.date:ft.time,value:n,location:u,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
|
|
447
447
|
// Parse this range:
|
|
448
448
|
// {name, plural, options}
|
|
449
449
|
// ^---------^
|
|
@@ -454,9 +454,9 @@ var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.err
|
|
|
454
454
|
// or the first option:
|
|
455
455
|
// {name, plural, one {...} other {...}}
|
|
456
456
|
// ^--^
|
|
457
|
-
var p=this.parseIdentifierIfPossible(),g=0;if("select"!==
|
|
457
|
+
var p=this.parseIdentifierIfPossible(),g=0;if("select"!==s&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(mt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Vt(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(mt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,mt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;
|
|
458
458
|
// Parse another identifier for option parsing
|
|
459
|
-
this.bumpSpace(),p=this.parseIdentifierIfPossible(),g=y.val}var v,b=this.tryParsePluralOrSelectOptions(e,
|
|
459
|
+
this.bumpSpace(),p=this.parseIdentifierIfPossible(),g=y.val}var v,b=this.tryParsePluralOrSelectOptions(e,s,t,p);if(b.err)return b;if((v=this.tryParseArgumentClose(r)).err)return v;var w=Vt(r,this.clonePosition());return"select"===s?{val:{type:ft.select,value:n,options:sn(b.val),location:w},err:null}:{val:{type:ft.plural,value:n,options:sn(b.val),offset:g,pluralType:"plural"===s?"cardinal":"ordinal",location:w},err:null};default:return this.error(mt.INVALID_ARGUMENT_TYPE,Vt(a,o))}},e.prototype.tryParseArgumentClose=function(e){
|
|
460
460
|
// Parse: {value, number, ::currency/GBP }
|
|
461
461
|
return this.isEOF()||125/* `}` */!==this.char()?this.error(mt.EXPECT_ARGUMENT_CLOSING_BRACE,Vt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},
|
|
462
462
|
/**
|
|
@@ -467,7 +467,7 @@ e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePos
|
|
|
467
467
|
// Find the end of the quoted literal text.
|
|
468
468
|
this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(mt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Vt(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");
|
|
469
469
|
// Parse the skeleton
|
|
470
|
-
for(var t=e.split(Ft).filter((function(e){return e.length>0})),n=[],r=0,i=t;r<i.length;r++){var a=i[r].split("/");if(0===a.length)throw new Error("Invalid number skeleton");for(var
|
|
470
|
+
for(var t=e.split(Ft).filter((function(e){return e.length>0})),n=[],r=0,i=t;r<i.length;r++){var a=i[r].split("/");if(0===a.length)throw new Error("Invalid number skeleton");for(var s=a[0],o=a.slice(1),l=0,c=o;l<c.length;l++)if(0===c[l].length)throw new Error("Invalid number skeleton");n.push({stem:s,options:o})}return n}(e)}catch(e){return this.error(mt.INVALID_NUMBER_SKELETON,t)}return{val:{type:pt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Bt(n):{}},err:null}},
|
|
471
471
|
/**
|
|
472
472
|
* @param nesting_level The current nesting level of messages.
|
|
473
473
|
* This can be positive when parsing message fragment in select or plural argument options.
|
|
@@ -482,26 +482,26 @@ e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){
|
|
|
482
482
|
// Parse:
|
|
483
483
|
// one {one apple}
|
|
484
484
|
// ^--^
|
|
485
|
-
for(var i,a=!1,
|
|
485
|
+
for(var i,a=!1,s=[],o=new Set,l=r.value,c=r.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
|
|
486
486
|
// Try parse `={number}` selector
|
|
487
487
|
var h=this.tryParseDecimalInteger(mt.EXPECT_PLURAL_ARGUMENT_SELECTOR,mt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=Vt(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}
|
|
488
488
|
// Duplicate selector clauses
|
|
489
|
-
if(
|
|
489
|
+
if(o.has(l))return this.error("select"===t?mt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:mt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(a=!0),
|
|
490
490
|
// Parse:
|
|
491
491
|
// one {one apple}
|
|
492
492
|
// ^----------^
|
|
493
|
-
this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?mt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:mt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Vt(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,n);if(m.err)return m;var f=this.tryParseArgumentClose(d);if(f.err)return f;
|
|
493
|
+
this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?mt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:mt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Vt(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,n);if(m.err)return m;var f=this.tryParseArgumentClose(d);if(f.err)return f;s.push([l,{value:m.val,location:Vt(d,this.clonePosition())}]),
|
|
494
494
|
// Keep track of the existing selectors
|
|
495
|
-
|
|
495
|
+
o.add(l),
|
|
496
496
|
// Prep next selector clause.
|
|
497
|
-
this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===
|
|
497
|
+
this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===s.length?this.error("select"===t?mt.EXPECT_SELECT_ARGUMENT_SELECTOR:mt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Vt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(mt.MISSING_OTHER_CLAUSE,Vt(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var s=this.char();if(!(s>=48/* `0` */&&s<=57/* `9` */))break;i=!0,a=10*a+(s-48),this.bump()}var o=Vt(r,this.clonePosition());return i?en(a*=n)?{val:a,err:null}:this.error(t,o):this.error(e,o)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){
|
|
498
498
|
// This is much faster than `Object.assign` or spread.
|
|
499
499
|
return{offset:this.position.offset,line:this.position.line,column:this.position.column}},
|
|
500
500
|
/**
|
|
501
501
|
* Return the code point at the current position of the parser.
|
|
502
502
|
* Throws if the index is out of bound.
|
|
503
503
|
*/
|
|
504
|
-
e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=
|
|
504
|
+
e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=on(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},
|
|
505
505
|
/** Bump the parser to the next UTF-16 code unit. */
|
|
506
506
|
e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10/* '\n' */===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,
|
|
507
507
|
// 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.
|
|
@@ -554,7 +554,7 @@ function bn(e,t){var n=t&&t.cache?t.cache:Mn,r=t&&t.serializer?t.serializer:Tn;r
|
|
|
554
554
|
|
|
555
555
|
// Strategy
|
|
556
556
|
|
|
557
|
-
function wn(e,t,n,r){var i,a=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),
|
|
557
|
+
function wn(e,t,n,r){var i,a=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),s=t.get(a);return void 0===s&&(s=e.call(this,r),t.set(a,s)),s}function _n(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return void 0===a&&(a=e.apply(this,r),t.set(i,a)),a}function Sn(e,t,n,r,i){return n.bind(t,e,r,i)}function xn(e,t){return Sn(e,this,1===e.length?wn:_n,t.cache.create(),t.serializer)}
|
|
558
558
|
// Serializer
|
|
559
559
|
var Tn=function(){return JSON.stringify(arguments)};
|
|
560
560
|
|
|
@@ -568,33 +568,33 @@ e.MISSING_VALUE="MISSING_VALUE",
|
|
|
568
568
|
// When value supplied is invalid
|
|
569
569
|
e.INVALID_VALUE="INVALID_VALUE",
|
|
570
570
|
// When we need specific Intl API but it's not available
|
|
571
|
-
e.MISSING_INTL_API="MISSING_INTL_API"}(Gn||(Gn={}));var Ln,kn=/** @class */function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return dt(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),In=/** @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('", "'),'"'),Gn.INVALID_VALUE,i)||this}return dt(t,e),t}(kn),Fn=/** @class */function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),Gn.INVALID_VALUE,r)||this}return dt(t,e),t}(kn)
|
|
571
|
+
e.MISSING_INTL_API="MISSING_INTL_API"}(Gn||(Gn={}));var Ln,kn=/** @class */function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return dt(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),In=/** @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('", "'),'"'),Gn.INVALID_VALUE,i)||this}return dt(t,e),t}(kn),Fn=/** @class */function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),Gn.INVALID_VALUE,r)||this}return dt(t,e),t}(kn),$n=/** @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,'"'),Gn.MISSING_VALUE,n)||this}return dt(t,e),t}(kn);function Dn(e){return"function"==typeof e}
|
|
572
572
|
// TODO(skeleton): add skeleton support
|
|
573
573
|
function On(e,t,n,r,i,a,
|
|
574
574
|
// For debugging
|
|
575
|
-
|
|
575
|
+
s){
|
|
576
576
|
// Hot path for straight simple msg translations
|
|
577
|
-
if(1===e.length&&vt(e[0]))return[{type:Ln.literal,value:e[0].value}];for(var
|
|
577
|
+
if(1===e.length&&vt(e[0]))return[{type:Ln.literal,value:e[0].value}];for(var o=[],l=0,c=e;l<c.length;l++){var u=c[l];
|
|
578
578
|
// Exit early for string parts.
|
|
579
|
-
if(vt(u))
|
|
579
|
+
if(vt(u))o.push({type:Ln.literal,value:u.value});else
|
|
580
580
|
// TODO: should this part be literal type?
|
|
581
581
|
// Replace `#` in plural rules with the actual numeric value.
|
|
582
|
-
if(Et(u))"number"==typeof a&&
|
|
582
|
+
if(Et(u))"number"==typeof a&&o.push({type:Ln.literal,value:n.getNumberFormat(t).format(a)});else{var h=u.value;
|
|
583
583
|
// Enforce that all required values are provided by the caller.
|
|
584
|
-
if(!i||!(h in i))throw new
|
|
584
|
+
if(!i||!(h in i))throw new $n(h,s);var d=i[h];if(bt(u))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),o.push({type:"string"==typeof d?Ln.literal:Ln.object,value:d});else
|
|
585
585
|
// Recursively format plural and select parts' option — which can be a
|
|
586
586
|
// nested pattern structure. The choosing of the option to use is
|
|
587
587
|
// abstracted-by and delegated-to the part helper object.
|
|
588
|
-
if(_t(u)){var m="string"==typeof u.style?r.date[u.style]:Ct(u.style)?u.style.parsedOptions:void 0;
|
|
588
|
+
if(_t(u)){var m="string"==typeof u.style?r.date[u.style]:Ct(u.style)?u.style.parsedOptions:void 0;o.push({type:Ln.literal,value:n.getDateTimeFormat(t,m).format(d)})}else if(St(u)){m="string"==typeof u.style?r.time[u.style]:Ct(u.style)?u.style.parsedOptions:r.time.medium;o.push({type:Ln.literal,value:n.getDateTimeFormat(t,m).format(d)})}else if(wt(u)){(m="string"==typeof u.style?r.number[u.style]:Mt(u.style)?u.style.parsedOptions:void 0)&&m.scale&&(d*=m.scale||1),o.push({type:Ln.literal,value:n.getNumberFormat(t,m).format(d)})}else{if(Gt(u)){var f=u.children,p=u.value,g=i[p];if(!Dn(g))throw new Fn(p,"function",s);var y=g(On(f,t,n,r,i,a).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),o.push.apply(o,y.map((function(e){return{type:"string"==typeof e?Ln.literal:Ln.object,value:e}})))}if(xt(u)){if(!(v=u.options[d]||u.options.other))throw new In(u.value,d,Object.keys(u.options),s);o.push.apply(o,On(v.value,t,n,r,i))}else if(Tt(u)){var v;if(!(v=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new kn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Gn.MISSING_INTL_API,s);var b=n.getPluralRules(t,{type:u.pluralType}).select(d-(u.offset||0));v=u.options[b]||u.options.other}if(!v)throw new In(u.value,d,Object.keys(u.options),s);o.push.apply(o,On(v.value,t,n,r,i,d-(u.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===Ln.literal&&t.type===Ln.literal?n.value+=t.value:e.push(t),e}),[])}(o)}
|
|
589
589
|
/*
|
|
590
590
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
591
591
|
Copyrights licensed under the New BSD License.
|
|
592
592
|
See the accompanying LICENSE file for terms.
|
|
593
593
|
*/
|
|
594
594
|
// -- MessageFormat --------------------------------------------------------
|
|
595
|
-
function Pn(e,t){return t?Object.keys(e).reduce((function(n,r){var i,a;return n[r]=(i=e[r],(a=t[r])?gt(gt(gt({},i||{}),a||{}),Object.keys(i).reduce((function(e,t){return e[t]=gt(gt({},i[t]),a[t]||{}),e}),{})):i),n}),gt({},e)):e}function Nn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Ln||(Ln={}));var An=/** @class */function(){function e(t,n,r,i){var a,
|
|
595
|
+
function Pn(e,t){return t?Object.keys(e).reduce((function(n,r){var i,a;return n[r]=(i=e[r],(a=t[r])?gt(gt(gt({},i||{}),a||{}),Object.keys(i).reduce((function(e,t){return e[t]=gt(gt({},i[t]),a[t]||{}),e}),{})):i),n}),gt({},e)):e}function Nn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Ln||(Ln={}));var An=/** @class */function(){function e(t,n,r,i){var a,s=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
|
|
596
596
|
// Hot path for straight simple msg translations
|
|
597
|
-
if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Ln.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return On(
|
|
597
|
+
if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Ln.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return On(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
|
|
598
598
|
// Defined first because it's used to build the format pattern.
|
|
599
599
|
this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
600
600
|
// Parse string messages into an AST.
|
|
@@ -610,7 +610,7 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
610
610
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
611
611
|
Copyrights licensed under the New BSD License.
|
|
612
612
|
See the accompanying LICENSE file for terms.
|
|
613
|
-
*/const Hn={},Bn=(e,t,n)=>n?(t in Hn||(Hn[t]={}),e in Hn[t]||(Hn[t][e]=n),n):n,Un=(e,t)=>{if(null==t)return;if(t in Hn&&e in Hn[t])return Hn[t][e];const n=
|
|
613
|
+
*/const Hn={},Bn=(e,t,n)=>n?(t in Hn||(Hn[t]={}),e in Hn[t]||(Hn[t][e]=n),n):n,Un=(e,t)=>{if(null==t)return;if(t in Hn&&e in Hn[t])return Hn[t][e];const n=sr(t);for(let r=0;r<n.length;r++){const i=Wn(n[r],e);if(i)return Bn(e,t,i)}};let Yn;const jn=et({});function zn(e){return e in Yn}function Wn(e,t){if(!zn(e))return null;const n=function(e){return Yn[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 Hn[e],jn.update((n=>(n[e]=ut.all([n[e]||{},...t]),n)))}tt([jn],(([e])=>Object.keys(e))),jn.subscribe((e=>Yn=e));const Zn={};function Kn(e){return Zn[e]}function Xn(e){return null!=e&&sr(e).some((e=>{var t;return null===(t=Kn(e))||void 0===t?void 0:t.size}))}const qn={};function Jn(e){if(!Xn(e))return e in qn?qn[e]:Promise.resolve();const t=function(e){return sr(e).map((e=>{const t=Kn(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return qn[e]=Promise.all(t.map((([e,t])=>function(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)))}(e,t)))).then((()=>{if(Xn(e))return Jn(e);delete qn[e]})),qn[e]}
|
|
614
614
|
/*! *****************************************************************************
|
|
615
615
|
Copyright (c) Microsoft Corporation.
|
|
616
616
|
|
|
@@ -624,7 +624,7 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
624
624
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
625
625
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
626
626
|
PERFORMANCE OF THIS SOFTWARE.
|
|
627
|
-
***************************************************************************** */function Qn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}const er={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 tr(){return er}const nr=et(!1);let rr;const ir=et(null);function ar(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function
|
|
627
|
+
***************************************************************************** */function Qn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}const er={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 tr(){return er}const nr=et(!1);let rr;const ir=et(null);function ar(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function sr(e,t=tr().fallbackLocale){const n=ar(e);return t?[...new Set([...n,...ar(t)])]:n}function or(){return null!=rr?rr:void 0}ir.subscribe((e=>{rr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const lr=Object.assign(Object.assign({},ir),{set:e=>{if(e&&function(e){if(null==e)return;const t=sr(e);for(let e=0;e<t.length;e++){const n=t[e];if(zn(n))return n}}(e)&&Xn(e)){const{loadingDelay:t}=tr();let n;return"undefined"!=typeof window&&null!=or()&&t?n=window.setTimeout((()=>nr.set(!0)),t):nr.set(!0),Jn(e).then((()=>{ir.set(e)})).finally((()=>{clearTimeout(n),nr.set(!1)}))}return ir.set(e)}}),cr=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}},ur=(e,t)=>{const{formats:n}=tr();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},hr=cr((e=>{var{locale:t,format:n}=e,r=Qn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(r=ur("number",n)),new Intl.NumberFormat(t,r)})),dr=cr((e=>{var{locale:t,format:n}=e,r=Qn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?r=ur("date",n):0===Object.keys(r).length&&(r=ur("date","short")),new Intl.DateTimeFormat(t,r)})),mr=cr((e=>{var{locale:t,format:n}=e,r=Qn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?r=ur("time",n):0===Object.keys(r).length&&(r=ur("time","short")),new Intl.DateTimeFormat(t,r)})),fr=cr(((e,t=or())=>new Rn(e,t,tr().formats,{ignoreTag:tr().ignoreTag}))),pr=(e,t={})=>{var n,r,i,a;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:o,locale:l=or(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Un(e,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!==(a=null!==(i=null===(r=(n=tr()).handleMissingMessage)||void 0===r?void 0:r.call(n,{locale:l,id:e,defaultValue:c}))&&void 0!==i?i:c)&&void 0!==a?a:e;if(!o)return u;let h=u;try{h=fr(u,l).format(o)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},gr=(e,t)=>((e={})=>{var{locale:t=or()}=e,n=Qn(e,["locale"]);return mr(Object.assign({locale:t},n))})(t).format(e),yr=(e,t)=>((e={})=>{var{locale:t=or()}=e,n=Qn(e,["locale"]);return dr(Object.assign({locale:t},n))})(t).format(e),vr=(e,t)=>((e={})=>{var{locale:t=or()}=e,n=Qn(e,["locale"]);return hr(Object.assign({locale:t},n))})(t).format(e),br=(e,t=or())=>Un(e,t),wr=tt([lr,jn],(()=>pr));tt([lr],(()=>gr)),tt([lr],(()=>yr)),tt([lr],(()=>vr)),tt([lr,jn],(()=>br)),window.emWidgets={topic:(e,t=0)=>{if(-1==qe.indexOf(e)){let n=new Xe(t);Je[e]=n,qe.push(e)}return Je[e]}};
|
|
628
628
|
/**
|
|
629
629
|
* @name isMobile
|
|
630
630
|
* @description A method that returns if the browser used to access the app is from a mobile device or not
|
|
@@ -640,10 +640,10 @@ const _r=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackbe
|
|
|
640
640
|
*/function xr(e,t){Vn(e,t)}const Tr={en:{LastPlayedTranslations:{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."}},de:{LastPlayedTranslations:{noRecentGames:"Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele."}}};function Er(e,t){Vn(e,t)}const Gr={en:{gamesCategorySection:{showMore:"More",viewAll:"Show all",searchedItems:"Search result",recentSearchedItems:"Recently searched",favorites:"Favorites",noRecentSearch:"No search started yet. Simply search for a game.",noResults:"Sorry, no results found. Please try again.",noFavoritesMobile:"Click on the star icon at the top right corner of a game to save it as favorite.",noFavorites:"Click on the star icon at the top right corner of a game to save it as favorite.",noFavoritesTitle:"You do not have any favored games yet.",waiting:"Waiting"}},zh:{gamesCategorySection:{showMore:"更多的",viewAll:"顯示所有",searchedItems:"搜索結果",recentSearchedItems:"最近搜索過",favorites:"收藏夹",noRecentSearch:"尚未開始搜索。 只需搜索遊戲。",noResults:"抱歉,沒有找到結果。 請再試一次。",noFavoritesMobile:"您現在可以通過點擊遊戲頁面上的星形圖標將游戲添加到收藏夾。",noFavorites:"您現在可以通過單擊遊戲縮略圖上的星形圖標將游戲添加到收藏夾。",noFavoritesTitle:"您還沒有任何喜歡的遊戲。",waiting:"等待"}},de:{gamesCategorySection:{showMore:"Mehr",viewAll:"Alle anzeigen",searchedItems:"Ergebnis suchen",recentSearchedItems:"Zuletzt gesucht",noRecentSearch:"Noch keine Suche gestartet. Einfach nach einem Spiel suchen.",noResults:"Sorry, kein Treffer. Bitte erneut versuchen.",noResults:"Sorry, no results found. Please try again.",noFavoritesMobile:"Klicke auf das Sternsymbol in der oberen rechten Ecke eines Spiels, um es als Favorit zu speichern.",noFavorites:"Klicke auf das Sternsymbol in der oberen rechten Ecke eines Spiels, um es als Favorit zu speichern.",noFavoritesTitle:"You do not have any favored games yet.",waiting:"Waiting"}},it:{gamesCategorySection:{showMore:"Altro",viewAll:"Mostra tutto",searchedItems:"risultato",recentSearchedItems:"Ricerche recenti",noRecentSearch:"Non sono ancora state avviate ricerche. Esegui semplicemente la ricerca per un gioco.",noResults:"Spiacenti, nessun risultato. Si prega di riprovare."}},fr:{gamesCategorySection:{showMore:"Plus de",viewAll:"Afficher tous",searchedItems:"Recherche du resultat",recentSearchedItems:"Recherches récentes",favorites:"Favoris",noRecentSearch:"Aucune recherche n'a encore été lancée . il suffit de chercher un jeu.",noResults:"Désolé , aucun résultat trouvé.veuillez réessayer.",noFavoritesMobile:"Vous pouvez désormais ajouter des jeux à vos favoris en cliquant sur l'icone étoile située sur la page du jeu.",noFavorites:"Vous pouvez désormais ajouter des jeux à vos favoris en cliquant sur l'icone en forme d'etoile située sur la vignette du jeu",noFavoritesTitle:"Vous n'avez pas encore de jeux favoris.",waiting:"Attente"}},es:{gamesCategorySection:{showMore:"Más",viewAll:"Mostrar todas",searchedItems:"Resultado de busqueda",recentSearchedItems:"Buscado recientemente",favorites:"Favoritos",noRecentSearch:"Aún no inicia busqueda. Solo busque un juego",noResults:"Disculpe",noFavoritesMobile:"Ahora puede agregar juegos a sus Favoritos dando clic al ícono de estrella en esta página",noFavorites:"Ahora puede agregar juegos a sus Favoritos dando click al ícono de la miniatura del juego.",noFavoritesTitle:"No tiene juegos Favoritos aún",waiting:"Cargando"}},tr:{gamesCategorySection:{showMore:"Daha fazla göster",viewAll:"Hepsini gör",searchedItems:"Aranan öğeler",recentSearchedItems:"Son Aranan Öğeler",noRecentSearch:"Henüz arama başlamadı. Sadece bir oyun arayın.",noResults:"Üzgünüz, sonuç bulunamadı. Lütfen tekrar deneyin"}},ru:{gamesCategorySection:{showMore:"Показать больше",viewAll:"Посмотреть все",searchedItems:"Искомые товары",recentSearchedItems:"Недавние поисковые запросы",noRecentSearch:"Поиск еще не начался. Просто найдите игру.",noResults:"Извините, результатов не найдено. Пожалуйста, попробуйте еще раз"}},ro:{gamesCategorySection:{showMore:"Arata mai mult",viewAll:"Vezi toate",searchedItems:"Rezultatele cautarii",recentSearchedItems:"Cautari recente",favorites:"Favorite",noRecentSearch:"Nici o căutare nu a început încă. Pur și simplu căutați un joc.",noResults:"Ne pare rau, nu s-au gasit rezultate. Va rugam sa incercati din nou",noFavoritesMobile:"Acum puteți adăuga jocuri la favorite atingând pictograma stea situată pe pagina jocului.",noFavorites:"Acum puteți adăuga jocuri la favorite făcând clic pe pictograma stea situată pe miniatura jocului.",noFavoritesTitle:"Nu aveți încă niciun joc preferat.",waiting:"Aşteptare"}},hr:{gamesCategorySection:{showMore:"Više",viewAll:"Pokaži sve",searchedItems:"Pretraži rezultat",recentSearchedItems:"Zadnje pretrage",noRecentSearch:"Pretraživanje nije pokrenuto. Jednostavno potražite željenu igru.",noResults:"Žao nam je, nema rezultata. Molimo pokušajte ponovno."}},hu:{gamesCategorySection:{showMore:"Több",viewAll:"Az összes megjelenítése",searchedItems:"Keresés eredménye",recentSearchedItems:"Legutóbb keresett",noRecentSearch:"A keresés még nem kezdődött el. Egyszerűen keressen egy játékot.",noResults:"Sajnos nincs találat. Kérjük próbálja újra."}},pl:{gamesCategorySection:{showMore:"Więcej",viewAll:"Pokaż wszystkie",searchedItems:"Wynik wyszukiwania",recentSearchedItems:"Ostatnio wyszukiwane",noRecentSearch:"Nie rozpoczęto wyszukiwania. W prosty sposób wyszukaj grę.",noResults:"Przepraszamy, brak wyników. Prosimy spróbować ponownie."}},pt:{gamesCategorySection:{showMore:"Mais",viewAll:"Mostre tudo",searchedItems:"Resultado da pesquisa",recentSearchedItems:"Pesquisado recentemente",favorites:"Favorito",noRecentSearch:"Nenhuma pesquisa foi iniciada ainda. Simplesmente procure por um jogo.",noResults:"Desculpe, nenhum resultado encontrado. Por favor, tente novamente.",noFavoritesMobile:"Agora você pode adicionar jogos aos favoritos tocando no ícone da estrela localizado na página do jogo.",noFavorites:"Agora você pode adicionar jogos aos favoritos clicando no ícone da estrela localizado na miniatura do jogo.",noFavoritesTitle:"Você ainda não tem nenhum jogo favorito.",waiting:"Aguardando"}},sl:{gamesCategorySection:{showMore:"Več",viewAll:"Prikaži vse",searchedItems:"Rezultati iskanja",recentSearchedItems:"Nedavno iskanje",noRecentSearch:"Niste še začeli z iskanjem. Enostavno poiščite želeno igro.",noResults:"Oprostite, ni rezultata. Prosimo poizkusite ponovno."}},sr:{gamesCategorySection:{showMore:"Više",viewAll:"Prikaži sve",searchedItems:"Pretraži rezultat",recentSearchedItems:"Zadnja pretraga",noRecentSearch:"Još nije pokrenuta pretraga. Jednostavno pretraži igre.",noResults:"Žao nam je, nema pogodaka. Pokušaj ponovo."}}};var Mr=function(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return pe(null==t&&n.path)}},n.exports),n.exports}((function(e,t){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}
|
|
641
641
|
// This is done to register the method called with moment()
|
|
642
642
|
// without creating circular dependencies.
|
|
643
|
-
function i(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function
|
|
643
|
+
function i(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){
|
|
644
644
|
// IE8 will treat undefined and null as object if it wasn't for
|
|
645
645
|
// input != null
|
|
646
|
-
return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function
|
|
646
|
+
return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function m(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return Kn(e,t,n,r,!0).utc()}function p(){
|
|
647
647
|
// We need to deep clone this object.
|
|
648
648
|
return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=p()),e._pf}function y(e){if(null==e._isValid){var t=g(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function v(e){var t=f(NaN);return null!=e?m(g(t),e):g(t).userInvalidated=!0,t}
|
|
649
649
|
// Plugins that add properties should also add the key here (null value),
|
|
@@ -653,22 +653,22 @@ n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n
|
|
|
653
653
|
function S(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),
|
|
654
654
|
// Prevent infinite loop in case updateOffset creates new moment
|
|
655
655
|
// objects.
|
|
656
|
-
!1===w&&(w=!0,r.updateOffset(this),w=!1)}function x(e){return e instanceof S||null!=e&&null!=e._isAMomentObject}function T(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function E(e,t){var n=!0;return m((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,a,
|
|
656
|
+
!1===w&&(w=!0,r.updateOffset(this),w=!1)}function x(e){return e instanceof S||null!=e&&null!=e._isAMomentObject}function T(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function E(e,t){var n=!0;return m((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,a,s,l=[],c=arguments.length;for(a=0;a<c;a++){if(i="","object"==typeof arguments[a]){for(s in i+="\n["+a+"] ",arguments[0])o(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[a];l.push(i)}T(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var G,M={};function C(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),M[e]||(T(t),M[e]=!0)}function L(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function k(e){var t,n;for(n in e)o(e,n)&&(L(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,
|
|
657
657
|
// Lenient ordinal parsing accepts just a number in addition to
|
|
658
658
|
// number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
|
|
659
659
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
660
|
-
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function I(e,t){var n,r=m({},e);for(n in t)
|
|
660
|
+
this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function I(e,t){var n,r=m({},e);for(n in t)o(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},m(r[n],e[n]),m(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)o(e,n)&&!o(t,n)&&s(e[n])&&(
|
|
661
661
|
// make sure changes to properties don't modify parent config
|
|
662
|
-
r[n]=m({},r[n]));return r}function F(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,G=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)
|
|
662
|
+
r[n]=m({},r[n]));return r}function F(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,G=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};var $={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function D(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return L(r)?r.call(t,n):r}function O(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 P=/(\[[^\[]*\])|(\\)?([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,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A={},R={};
|
|
663
663
|
// token: 'M'
|
|
664
664
|
// padded: ['MM', 2]
|
|
665
665
|
// ordinal: 'Mo'
|
|
666
666
|
// callback: function () { this.month() + 1 }
|
|
667
667
|
function H(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(R[e]=i),t&&(R[t[0]]=function(){return O(i.apply(this,arguments),t[1],t[2])}),n&&(R[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function B(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function U(e){var t,n,r=e.match(P);for(t=0,n=r.length;t<n;t++)R[r[t]]?r[t]=R[r[t]]:r[t]=B(r[t]);return function(t){var i,a="";for(i=0;i<n;i++)a+=L(r[i])?r[i].call(t,e):r[i];return a}}
|
|
668
668
|
// format date using native date object
|
|
669
|
-
function Y(e,t){return e.isValid()?(t=j(t,e.localeData()),A[t]=A[t]||U(t),A[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(N.lastIndex=0;n>=0&&N.test(e);)e=e.replace(N,r),N.lastIndex=0,n-=1;return e}var z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function W(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var V="Invalid date";function Z(){return this._invalidDate}var K="%d",X=/\d{1,2}/;function
|
|
669
|
+
function Y(e,t){return e.isValid()?(t=j(t,e.localeData()),A[t]=A[t]||U(t),A[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(N.lastIndex=0;n>=0&&N.test(e);)e=e.replace(N,r),N.lastIndex=0,n-=1;return e}var z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function W(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var V="Invalid date";function Z(){return this._invalidDate}var K="%d",X=/\d{1,2}/;function q(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Q(e,t,n,r){var i=this._relativeTime[n];return L(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return L(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)o(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var ae={};function se(e,t){ae[e]=t}function oe(e){var t,n=[];for(t in e)o(e,t)&&n.push({unit:t,priority:ae[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function le(e){return e%4==0&&e%100!=0||e%400==0}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ue(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ce(t)),n}function he(e,t){return function(n){return null!=n?(me(this,e,n),r.updateOffset(this,t),this):de(this,e)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&le(e.year())&&1===e.month()&&29===e.date()?(n=ue(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}
|
|
670
670
|
// MOMENTS
|
|
671
|
-
function fe(e){return L(this[e=re(e)])?this[e]():this}function ge(e,t){if("object"==typeof e){var n,r=
|
|
671
|
+
function fe(e){return L(this[e=re(e)])?this[e]():this}function ge(e,t){if("object"==typeof e){var n,r=oe(e=ie(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(L(this[e=re(e)]))return this[e](t);return this}var ye,ve=/\d/,// 0 - 9
|
|
672
672
|
be=/\d\d/,// 00 - 99
|
|
673
673
|
we=/\d{3}/,// 000 - 999
|
|
674
674
|
_e=/\d{4}/,// 0000 - 9999
|
|
@@ -683,12 +683,12 @@ Le=/\d+/,// 0 - inf
|
|
|
683
683
|
ke=/[+-]?\d+/,// -inf - inf
|
|
684
684
|
Ie=/Z|[+-]\d\d:?\d\d/gi,// +00:00 -00:00 +0000 -0000 or Z
|
|
685
685
|
Fe=/Z|[+-]\d\d(?::?\d\d)?/gi,// +00 -00 +00:00 -00:00 +0000 -0000 or Z
|
|
686
|
-
|
|
686
|
+
$e=/[+-]?\d+(\.\d{1,3})?/,// 123456789 123456789.123
|
|
687
687
|
// any word (or two) characters or numbers including two/three word month in arabic.
|
|
688
688
|
// includes scottish gaelic two word and hyphenated months
|
|
689
|
-
|
|
689
|
+
De=/[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 Oe(e,t,n){ye[e]=L(t)?t:function(e,r){return e&&n?n:t}}function Pe(e,t){return o(ye,e)?ye[e](t._strict,t._locale):new RegExp(Ne(e))}
|
|
690
690
|
// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
|
|
691
|
-
function Ne(e){return Ae(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Ae(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ye={};var Re={};function He(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=ue(e)}),r=e.length,n=0;n<r;n++)Re[e[n]]=i}function Be(e,t){He(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ue(e,t,n){null!=t&&
|
|
691
|
+
function Ne(e){return Ae(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Ae(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ye={};var Re={};function He(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=ue(e)}),r=e.length,n=0;n<r;n++)Re[e[n]]=i}function Be(e,t){He(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ue(e,t,n){null!=t&&o(Re,e)&&Re[e](t,n._a,n,e)}var Ye,je=0,ze=1,We=2,Ve=3,Ze=4,Ke=5,Xe=6,qe=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}
|
|
692
692
|
// FORMATTING
|
|
693
693
|
Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){
|
|
694
694
|
// I know
|
|
@@ -696,15 +696,15 @@ var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},H("M",["MM",2]
|
|
|
696
696
|
// ALIASES
|
|
697
697
|
ne("month","M"),
|
|
698
698
|
// PRIORITY
|
|
699
|
-
|
|
699
|
+
se("month",8),
|
|
700
700
|
// PARSING
|
|
701
701
|
Oe("M",xe),Oe("MM",xe,be),Oe("MMM",(function(e,t){return t.monthsShortRegex(e)})),Oe("MMMM",(function(e,t){return t.monthsRegex(e)})),He(["M","MM"],(function(e,t){t[ze]=ue(e)-1})),He(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);
|
|
702
702
|
// if we didn't find a month name, mark the date as invalid.
|
|
703
703
|
null!=i?t[ze]=i:g(n).invalidMonth=e}));
|
|
704
704
|
// LOCALES
|
|
705
|
-
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
|
|
705
|
+
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=De,at=De;function st(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function ot(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(
|
|
706
706
|
// this is not used
|
|
707
|
-
this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ye.call(this._shortMonthsParse,
|
|
707
|
+
this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ye.call(this._shortMonthsParse,s))?i:null:-1!==(i=Ye.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=Ye.call(this._shortMonthsParse,s))||-1!==(i=Ye.call(this._longMonthsParse,s))?i:null:-1!==(i=Ye.call(this._longMonthsParse,s))||-1!==(i=Ye.call(this._shortMonthsParse,s))?i:null}function ct(e,t,n){var r,i,a;if(this._monthsParseExact)return lt.call(this,e,t,n);
|
|
708
708
|
// TODO: add sorting
|
|
709
709
|
// Sorting makes sure if one month (or abbr) is a prefix of another
|
|
710
710
|
// see sorting in computeMonthsParse
|
|
@@ -718,7 +718,7 @@ function ut(e,t){var n;if(!e.isValid())
|
|
|
718
718
|
// No op
|
|
719
719
|
return e;if("string"==typeof t)if(/^\d+$/.test(t))t=ue(t);else
|
|
720
720
|
// TODO: Another silent failure?
|
|
721
|
-
if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ht(e){return null!=e?(ut(this,e),r.updateOffset(this,!0),this):de(this,"Month")}function dt(){return et(this.year(),this.month())}function mt(e){return this._monthsParseExact?(
|
|
721
|
+
if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ht(e){return null!=e?(ut(this,e),r.updateOffset(this,!0),this):de(this,"Month")}function dt(){return et(this.year(),this.month())}function mt(e){return this._monthsParseExact?(o(this,"_monthsRegex")||pt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=it),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ft(e){return this._monthsParseExact?(o(this,"_monthsRegex")||pt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=at),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function pt(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],a=[];for(t=0;t<12;t++)
|
|
722
722
|
// make the regex if we don't have it already
|
|
723
723
|
n=f([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));
|
|
724
724
|
// Sorting makes sure if one month (or abbr) is a prefix of another it
|
|
@@ -732,18 +732,18 @@ H("Y",0,0,(function(){var e=this.year();return e<=9999?O(e,4):"+"+e})),H(0,["YY"
|
|
|
732
732
|
// ALIASES
|
|
733
733
|
ne("year","y"),
|
|
734
734
|
// PRIORITIES
|
|
735
|
-
|
|
735
|
+
se("year",1),
|
|
736
736
|
// PARSING
|
|
737
737
|
Oe("Y",ke),Oe("YY",xe,be),Oe("YYYY",Me,_e),Oe("YYYYY",Ce,Se),Oe("YYYYYY",Ce,Se),He(["YYYYY","YYYYYY"],je),He("YYYY",(function(e,t){t[je]=2===e.length?r.parseTwoDigitYear(e):ue(e)})),He("YY",(function(e,t){t[je]=r.parseTwoDigitYear(e)})),He("Y",(function(e,t){t[je]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return ue(e)+(ue(e)>68?1900:2e3)};
|
|
738
738
|
// MOMENTS
|
|
739
|
-
var yt=he("FullYear",!0);function vt(){return le(this.year())}function bt(e,t,n,r,i,a,
|
|
739
|
+
var yt=he("FullYear",!0);function vt(){return le(this.year())}function bt(e,t,n,r,i,a,s){
|
|
740
740
|
// can't just apply() to create a date:
|
|
741
741
|
// https://stackoverflow.com/q/181348
|
|
742
|
-
var
|
|
742
|
+
var o;
|
|
743
743
|
// the date constructor remaps years 0-99 to 1900-1999
|
|
744
744
|
return e<100&&e>=0?(
|
|
745
745
|
// preserve leap years using a full 400 year cycle, then reset
|
|
746
|
-
|
|
746
|
+
o=new Date(e+400,t,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,i,a,s),o}function wt(e){var t,n;
|
|
747
747
|
// the Date.UTC function remaps years 0-99 to 1900-1999
|
|
748
748
|
return e<100&&e>=0?(
|
|
749
749
|
// preserve leap years using a full 400 year cycle, then reset
|
|
@@ -752,7 +752,7 @@ return e<100&&e>=0?(
|
|
|
752
752
|
function _t(e,t,n){var// first-week day -- which january is always in the first week (4 for iso, 1 for other)
|
|
753
753
|
r=7+t-n;return-(7+wt(e,0,r).getUTCDay()-t)%7+r-1}
|
|
754
754
|
// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
|
|
755
|
-
function St(e,t,n,r,i){var a,o
|
|
755
|
+
function St(e,t,n,r,i){var a,s,o=1+7*(t-1)+(7+n-r)%7+_t(e,r,i);return o<=0?s=gt(a=e-1)+o:o>gt(e)?(a=e+1,s=o-gt(e)):(a=e,s=o),{year:a,dayOfYear:s}}function xt(e,t,n){var r,i,a=_t(e.year(),t,n),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?r=s+Tt(i=e.year()-1,t,n):s>Tt(e.year(),t,n)?(r=s-Tt(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function Tt(e,t,n){var r=_t(e,t,n),i=_t(e+1,t,n);return(gt(e)-r+i)/7}
|
|
756
756
|
// FORMATTING
|
|
757
757
|
// HELPERS
|
|
758
758
|
// LOCALES
|
|
@@ -760,7 +760,7 @@ function Et(e){return xt(e,this._week.dow,this._week.doy).week}H("w",["ww",2],"w
|
|
|
760
760
|
// ALIASES
|
|
761
761
|
ne("week","w"),ne("isoWeek","W"),
|
|
762
762
|
// PRIORITIES
|
|
763
|
-
|
|
763
|
+
se("week",5),se("isoWeek",5),
|
|
764
764
|
// PARSING
|
|
765
765
|
Oe("w",xe),Oe("ww",xe,be),Oe("W",xe),Oe("WW",xe,be),Be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ue(e)}));var Gt={dow:0,// Sunday is the first day of the week.
|
|
766
766
|
doy:6};function Mt(){return this._week.dow}function Ct(){return this._week.doy}
|
|
@@ -770,15 +770,15 @@ function Lt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e
|
|
|
770
770
|
// HELPERS
|
|
771
771
|
function It(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ft(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}
|
|
772
772
|
// LOCALES
|
|
773
|
-
function
|
|
773
|
+
function $t(e,t){return e.slice(t,7).concat(e.slice(0,t))}H("d",0,"do","day"),H("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),H("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),H("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),
|
|
774
774
|
// ALIASES
|
|
775
775
|
ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),
|
|
776
776
|
// PRIORITY
|
|
777
|
-
|
|
777
|
+
se("day",11),se("weekday",11),se("isoWeekday",11),
|
|
778
778
|
// PARSING
|
|
779
779
|
Oe("d",xe),Oe("e",xe),Oe("E",xe),Oe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Oe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Oe("dddd",(function(e,t){return t.weekdaysRegex(e)})),Be(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);
|
|
780
780
|
// if we didn't get a weekday name, mark the date as invalid
|
|
781
|
-
null!=i?t.d=i:g(n).invalidWeekday=e})),Be(["d","e","E"],(function(e,t,n,r){t[r]=ue(e)}));var
|
|
781
|
+
null!=i?t.d=i:g(n).invalidWeekday=e})),Be(["d","e","E"],(function(e,t,n,r){t[r]=ue(e)}));var Dt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ot="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Nt=De,At=De,Rt=De;function Ht(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?$t(n,this._week.dow):e?n[e.day()]:n}function Bt(e){return!0===e?$t(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ut(e){return!0===e?$t(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Yt(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ye.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=Ye.call(this._weekdaysParse,s))||-1!==(i=Ye.call(this._shortWeekdaysParse,s))||-1!==(i=Ye.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,s))||-1!==(i=Ye.call(this._weekdaysParse,s))||-1!==(i=Ye.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,s))||-1!==(i=Ye.call(this._weekdaysParse,s))||-1!==(i=Ye.call(this._shortWeekdaysParse,s))?i:null}function jt(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Yt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){
|
|
782
782
|
// test the regex
|
|
783
783
|
if(
|
|
784
784
|
// make the regex if we don't have it already
|
|
@@ -788,30 +788,30 @@ function zt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this
|
|
|
788
788
|
// behaves the same as moment#day except
|
|
789
789
|
// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
|
|
790
790
|
// as a setter, sunday should belong to the previous week.
|
|
791
|
-
if(null!=e){var t=Ft(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Zt(e){return this._weekdaysParseExact?(
|
|
791
|
+
if(null!=e){var t=Ft(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Zt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Nt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=At),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Rt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function qt(){function e(e,t){return t.length-e.length}var t,n,r,i,a,s=[],o=[],l=[],c=[];for(t=0;t<7;t++)
|
|
792
792
|
// make the regex if we don't have it already
|
|
793
|
-
n=f([2e3,1]).day(t),r=Ae(this.weekdaysMin(n,"")),i=Ae(this.weekdaysShort(n,"")),a=Ae(this.weekdays(n,"")),
|
|
793
|
+
n=f([2e3,1]).day(t),r=Ae(this.weekdaysMin(n,"")),i=Ae(this.weekdaysShort(n,"")),a=Ae(this.weekdays(n,"")),s.push(r),o.push(i),l.push(a),c.push(r),c.push(i),c.push(a);
|
|
794
794
|
// Sorting makes sure if one weekday (or abbr) is a prefix of another it
|
|
795
795
|
// will match the longer piece.
|
|
796
|
-
|
|
796
|
+
s.sort(e),o.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}
|
|
797
797
|
// FORMATTING
|
|
798
|
-
function
|
|
798
|
+
function Jt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function en(e,t){H(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}
|
|
799
799
|
// PARSING
|
|
800
800
|
function tn(e,t){return t._meridiemParse}
|
|
801
801
|
// LOCALES
|
|
802
802
|
function nn(e){
|
|
803
803
|
// IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
|
|
804
804
|
// Using charAt should be more compatible.
|
|
805
|
-
return"p"===(e+"").toLowerCase().charAt(0)}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,
|
|
805
|
+
return"p"===(e+"").toLowerCase().charAt(0)}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Jt),H("k",["kk",2],0,Qt),H("hmm",0,0,(function(){return""+Jt.apply(this)+O(this.minutes(),2)})),H("hmmss",0,0,(function(){return""+Jt.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+O(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)})),en("a",!0),en("A",!1),
|
|
806
806
|
// ALIASES
|
|
807
807
|
ne("hour","h"),
|
|
808
808
|
// PRIORITY
|
|
809
|
-
|
|
809
|
+
se("hour",13),Oe("a",tn),Oe("A",tn),Oe("H",xe),Oe("h",xe),Oe("k",xe),Oe("HH",xe,be),Oe("hh",xe,be),Oe("kk",xe,be),Oe("hmm",Te),Oe("hmmss",Ee),Oe("Hmm",Te),Oe("Hmmss",Ee),He(["H","HH"],Ve),He(["k","kk"],(function(e,t,n){var r=ue(e);t[Ve]=24===r?0:r})),He(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),He(["h","hh"],(function(e,t,n){t[Ve]=ue(e),g(n).bigHour=!0})),He("hmm",(function(e,t,n){var r=e.length-2;t[Ve]=ue(e.substr(0,r)),t[Ze]=ue(e.substr(r)),g(n).bigHour=!0})),He("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ve]=ue(e.substr(0,r)),t[Ze]=ue(e.substr(r,2)),t[Ke]=ue(e.substr(i)),g(n).bigHour=!0})),He("Hmm",(function(e,t,n){var r=e.length-2;t[Ve]=ue(e.substr(0,r)),t[Ze]=ue(e.substr(r))})),He("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ve]=ue(e.substr(0,r)),t[Ze]=ue(e.substr(r,2)),t[Ke]=ue(e.substr(i))}));var rn=/[ap]\.?m?\.?/i,
|
|
810
810
|
// Setting the hour should keep the time, because the user explicitly
|
|
811
811
|
// specified which hour they want. So trying to maintain the same hour (in
|
|
812
812
|
// a new timezone) makes sense. Adding/subtracting hours does not follow
|
|
813
813
|
// this rule.
|
|
814
|
-
an=he("Hours",!0);function
|
|
814
|
+
an=he("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var on,ln={calendar:$,longDateFormat:z,invalidDate:V,ordinal:K,dayOfMonthOrdinalParse:X,relativeTime:J,months:tt,monthsShort:nt,week:Gt,weekdays:Dt,weekdaysMin:Pt,weekdaysShort:Ot,meridiemParse:rn},cn={},un={};
|
|
815
815
|
// internal storage for locale config files
|
|
816
816
|
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}
|
|
817
817
|
// pick the locale from the array
|
|
@@ -819,11 +819,11 @@ function hn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==
|
|
|
819
819
|
// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
|
|
820
820
|
function mn(e){for(var t,n,r,i,a=0;a<e.length;){for(t=(i=dn(e[a]).split("-")).length,n=(n=dn(e[a+1]))?n.split("-"):null;t>0;){if(r=pn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&hn(i,n)>=t-1)
|
|
821
821
|
//the next array item is better than a shallower substring of this one
|
|
822
|
-
break;t--}a++}return
|
|
822
|
+
break;t--}a++}return on}function fn(e){
|
|
823
823
|
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
|
824
824
|
return null!=e.match("^[^/\\\\]*$")}function pn(t){var n=null;
|
|
825
825
|
// TODO: Find a better way to register and load all the locales in Node
|
|
826
|
-
if(void 0===cn[t]&&e&&e.exports&&fn(t))try{n=
|
|
826
|
+
if(void 0===cn[t]&&e&&e.exports&&fn(t))try{n=on._abbr,pe(),gn(n)}catch(e){
|
|
827
827
|
// mark as not found to avoid repeating expensive file require call causing high CPU
|
|
828
828
|
// when trying to find en-US, en_US, en-us for every format call
|
|
829
829
|
cn[t]=null;// null means not found
|
|
@@ -833,9 +833,9 @@ cn[t]=null;// null means not found
|
|
|
833
833
|
// locale key.
|
|
834
834
|
function gn(e,t){var n;return e&&((n=c(t)?bn(e):yn(e,t))?
|
|
835
835
|
// moment.duration._locale = moment._locale = data;
|
|
836
|
-
|
|
836
|
+
on=n:"undefined"!=typeof console&&console.warn&&
|
|
837
837
|
//warn user if arguments are passed but the locale could not be set
|
|
838
|
-
console.warn("Locale "+e+" not found. Did you forget to load it?")),
|
|
838
|
+
console.warn("Locale "+e+" not found. Did you forget to load it?")),on._abbr}function yn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=cn[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])r=cn[t.parentLocale]._config;else{if(null==(n=pn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return cn[e]=new F(I(r,t)),un[e]&&un[e].forEach((function(e){yn(e.name,e.config)})),
|
|
839
839
|
// backwards compat for now: also set the locale
|
|
840
840
|
// make sure we set the locale AFTER all child locales have been
|
|
841
841
|
// created, so we won't end up with the child locale set.
|
|
@@ -855,9 +855,9 @@ gn(e)}else
|
|
|
855
855
|
// pass null for config to unupdate, useful for tests
|
|
856
856
|
null!=cn[e]&&(null!=cn[e].parentLocale?(cn[e]=cn[e].parentLocale,e===gn()&&gn(e)):null!=cn[e]&&delete cn[e]);return cn[e]}
|
|
857
857
|
// returns locale data
|
|
858
|
-
function bn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return
|
|
858
|
+
function bn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return on;if(!a(e)){if(
|
|
859
859
|
//short-circuit everything else
|
|
860
|
-
t=pn(e))return t;e=[e]}return mn(e)}function wn(){return G(cn)}function _n(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[ze]<0||n[ze]>11?ze:n[We]<1||n[We]>et(n[je],n[ze])?We:n[Ve]<0||n[Ve]>24||24===n[Ve]&&(0!==n[Ze]||0!==n[Ke]||0!==n[Xe])?Ve:n[Ze]<0||n[Ze]>59?Ze:n[Ke]<0||n[Ke]>59?Ke:n[Xe]<0||n[Xe]>999?Xe:-1,g(e)._overflowDayOfYear&&(t<je||t>We)&&(t=We),g(e)._overflowWeeks&&-1===t&&(t=
|
|
860
|
+
t=pn(e))return t;e=[e]}return mn(e)}function wn(){return G(cn)}function _n(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[ze]<0||n[ze]>11?ze:n[We]<1||n[We]>et(n[je],n[ze])?We:n[Ve]<0||n[Ve]>24||24===n[Ve]&&(0!==n[Ze]||0!==n[Ke]||0!==n[Xe])?Ve:n[Ze]<0||n[Ze]>59?Ze:n[Ke]<0||n[Ke]>59?Ke:n[Xe]<0||n[Xe]>999?Xe:-1,g(e)._overflowDayOfYear&&(t<je||t>We)&&(t=We),g(e)._overflowWeeks&&-1===t&&(t=qe),g(e)._overflowWeekday&&-1===t&&(t=Je),g(e).overflow=t),e}
|
|
861
861
|
// iso 8601 regex
|
|
862
862
|
// 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
|
|
863
863
|
var Sn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Tn=/Z|[+-]\d\d(?::?\d\d)?/,En=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],
|
|
@@ -866,15 +866,15 @@ Gn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+
|
|
|
866
866
|
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
|
867
867
|
Cn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ln={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};
|
|
868
868
|
// date from iso format
|
|
869
|
-
function kn(e){var t,n,r,i,a,o
|
|
869
|
+
function kn(e){var t,n,r,i,a,s,o=e._i,l=Sn.exec(o)||xn.exec(o),c=En.length,u=Gn.length;if(l){for(g(e).iso=!0,t=0,n=c;t<n;t++)if(En[t][1].exec(l[1])){i=En[t][0],r=!1!==En[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(Gn[t][1].exec(l[3])){
|
|
870
870
|
// match[2] should be 'T' or space
|
|
871
|
-
a=(l[2]||" ")+Gn[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(l[4]){if(!Tn.exec(l[4]))return void(e._isValid=!1);
|
|
871
|
+
a=(l[2]||" ")+Gn[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(l[4]){if(!Tn.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(a||"")+(s||""),Un(e)}else e._isValid=!1}function In(e,t,n,r,i,a){var s=[Fn(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&s.push(parseInt(a,10)),s}function Fn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function $n(e){
|
|
872
872
|
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
|
873
|
-
return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function
|
|
873
|
+
return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Dn(e,t,n){return!e||Ot.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function On(e,t,n){if(e)return Ln[e];if(t)
|
|
874
874
|
// the only allowed military tz is Z
|
|
875
875
|
return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}
|
|
876
876
|
// date and time from ref 2822 format
|
|
877
|
-
function Pn(e){var t,n=Cn.exec(
|
|
877
|
+
function Pn(e){var t,n=Cn.exec($n(e._i));if(n){if(t=In(n[4],n[3],n[2],n[5],n[6],n[7]),!Dn(n[1],t,e))return;e._a=t,e._tzm=On(n[8],n[9],n[10]),e._d=wt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}
|
|
878
878
|
// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
|
|
879
879
|
function Nn(e){var t=Mn.exec(e._i);null===t?(kn(e),!1===e._isValid&&(delete e._isValid,Pn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:
|
|
880
880
|
// Final attempt, use Input Fallback
|
|
@@ -887,7 +887,7 @@ var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.g
|
|
|
887
887
|
// the array should mirror the parameters below
|
|
888
888
|
// note: all values past the year are optional and will default to the lowest possible value.
|
|
889
889
|
// [year, month, day , hour, minute, second, millisecond]
|
|
890
|
-
function Hn(e){var t,n,r,i,a,
|
|
890
|
+
function Hn(e){var t,n,r,i,a,s=[];if(!e._d){
|
|
891
891
|
// Default to current date.
|
|
892
892
|
// * if no year, month, day of month are given, default to today
|
|
893
893
|
// * if day of month is given, default month and year
|
|
@@ -897,21 +897,21 @@ for(r=Rn(e),
|
|
|
897
897
|
//compute day of the year from weeks and weekdays
|
|
898
898
|
e._w&&null==e._a[We]&&null==e._a[ze]&&Bn(e),
|
|
899
899
|
//if the day of the year is set, figure out what it is
|
|
900
|
-
null!=e._dayOfYear&&(a=An(e._a[je],r[je]),(e._dayOfYear>gt(a)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=wt(a,0,e._dayOfYear),e._a[ze]=n.getUTCMonth(),e._a[We]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=
|
|
900
|
+
null!=e._dayOfYear&&(a=An(e._a[je],r[je]),(e._dayOfYear>gt(a)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=wt(a,0,e._dayOfYear),e._a[ze]=n.getUTCMonth(),e._a[We]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];
|
|
901
901
|
// Zero out whatever was not defaulted, including time
|
|
902
|
-
for(;t<7;t++)e._a[t]=
|
|
902
|
+
for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];
|
|
903
903
|
// Check for 24:00:00.000
|
|
904
|
-
24===e._a[Ve]&&0===e._a[Ze]&&0===e._a[Ke]&&0===e._a[Xe]&&(e._nextDay=!0,e._a[Ve]=0),e._d=(e._useUTC?wt:bt).apply(null,
|
|
904
|
+
24===e._a[Ve]&&0===e._a[Ze]&&0===e._a[Ke]&&0===e._a[Xe]&&(e._nextDay=!0,e._a[Ve]=0),e._d=(e._useUTC?wt:bt).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),
|
|
905
905
|
// Apply timezone offset from input. The actual utcOffset can be changed
|
|
906
906
|
// with parseZone.
|
|
907
907
|
null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ve]=24),
|
|
908
908
|
// check for mismatching day of week
|
|
909
|
-
e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Bn(e){var t,n,r,i,a,o,
|
|
909
|
+
e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Bn(e){var t,n,r,i,a,s,o,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,s=4,
|
|
910
910
|
// TODO: We need to take the current isoWeekYear, but that depends on
|
|
911
911
|
// how we interpret now (local, utc, fixed offset). So create
|
|
912
912
|
// a now version of current config (take local/utc/offset flags, and
|
|
913
913
|
// create now).
|
|
914
|
-
n=An(t.GG,e._a[je],xt(Xn(),1,4).year),r=An(t.W,1),((i=An(t.E,1))<1||i>7)&&(l=!0)):(a=e._locale._week.dow,
|
|
914
|
+
n=An(t.GG,e._a[je],xt(Xn(),1,4).year),r=An(t.W,1),((i=An(t.E,1))<1||i>7)&&(l=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,c=xt(Xn(),a,s),n=An(t.gg,e._a[je],c.year),
|
|
915
915
|
// Default to current week.
|
|
916
916
|
r=An(t.w,c.week),null!=t.d?((
|
|
917
917
|
// weekday -- low day numbers are considered next week
|
|
@@ -919,14 +919,14 @@ i=t.d)<0||i>6)&&(l=!0):null!=t.e?(
|
|
|
919
919
|
// local weekday -- counting starts from beginning of week
|
|
920
920
|
i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):
|
|
921
921
|
// default to beginning of week
|
|
922
|
-
i=a),r<1||r>Tt(n,a,
|
|
922
|
+
i=a),r<1||r>Tt(n,a,s)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(o=St(n,r,i,a,s),e._a[je]=o.year,e._dayOfYear=o.dayOfYear)}
|
|
923
923
|
// constant that refers to the ISO standard
|
|
924
924
|
// date from string and format string
|
|
925
925
|
function Un(e){
|
|
926
926
|
// TODO: Move this to another part of the creation flow to prevent circular deps
|
|
927
927
|
if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;
|
|
928
928
|
// This array is used to make a Date, either with `new Date` or `Date.UTC`
|
|
929
|
-
var t,n,i,a,o,
|
|
929
|
+
var t,n,i,a,s,o,l,c=""+e._i,u=c.length,h=0;for(l=(i=j(e._f,e._locale).match(P)||[]).length,t=0;t<l;t++)a=i[t],(n=(c.match(Pe(a,e))||[])[0])&&((s=c.substr(0,c.indexOf(n))).length>0&&g(e).unusedInput.push(s),c=c.slice(c.indexOf(n)+n.length),h+=n.length),
|
|
930
930
|
// don't parse if it's not a known token
|
|
931
931
|
R[a]?(n?g(e).empty=!1:g(e).unusedTokens.push(a),Ue(a,n,e)):e._strict&&!n&&g(e).unusedTokens.push(a);
|
|
932
932
|
// add remaining unparsed input length to the string
|
|
@@ -936,24 +936,24 @@ e._a[Ve]<=12&&!0===g(e).bigHour&&e._a[Ve]>0&&(g(e).bigHour=void 0),g(e).parsedDa
|
|
|
936
936
|
// handle meridiem
|
|
937
937
|
e._a[Ve]=Yn(e._locale,e._a[Ve],e._meridiem),null!==(
|
|
938
938
|
// handle era
|
|
939
|
-
|
|
939
|
+
o=g(e).era)&&(e._a[je]=e._locale.erasConvertYear(o,e._a[je])),Hn(e),_n(e)}else Pn(e);else kn(e)}function Yn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(
|
|
940
940
|
// Fallback
|
|
941
941
|
(r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}
|
|
942
942
|
// date from string and array of format strings
|
|
943
|
-
function jn(e){var t,n,r,i,a,o
|
|
943
|
+
function jn(e){var t,n,r,i,a,s,o=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)a=0,s=!1,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Un(t),y(t)&&(s=!0),
|
|
944
944
|
// if there is any input that was not parsed add a penalty for that format
|
|
945
945
|
a+=g(t).charsLeftOver,
|
|
946
946
|
//or tokens
|
|
947
|
-
a+=10*g(t).unusedTokens.length,g(t).score=a,
|
|
947
|
+
a+=10*g(t).unusedTokens.length,g(t).score=a,o?a<r&&(r=a,n=t):(null==r||a<r||s)&&(r=a,n=t,s&&(o=!0));m(e,n||t)}function zn(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Hn(e)}}function Wn(e){var t=new S(_n(Vn(e)));return t._nextDay&&(
|
|
948
948
|
// Adding is smart enough around DST
|
|
949
|
-
t.add(1,"d"),t._nextDay=void 0),t}function Vn(e){var t=e._i,n=e._f;return e._locale=e._locale||bn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new S(_n(t)):(h(t)?e._d=t:a(n)?jn(e):n?Un(e):Zn(e),y(e)||(e._d=null),e))}function Zn(e){var t=e._i;c(t)?e._d=new Date(r.now()):h(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Nn(e):a(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Hn(e)):
|
|
949
|
+
t.add(1,"d"),t._nextDay=void 0),t}function Vn(e){var t=e._i,n=e._f;return e._locale=e._locale||bn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new S(_n(t)):(h(t)?e._d=t:a(n)?jn(e):n?Un(e):Zn(e),y(e)||(e._d=null),e))}function Zn(e){var t=e._i;c(t)?e._d=new Date(r.now()):h(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Nn(e):a(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Hn(e)):s(t)?zn(e):u(t)?
|
|
950
950
|
// from milliseconds
|
|
951
|
-
e._d=new Date(t):r.createFromInputFallback(e)}function Kn(e,t,n,r,i){var
|
|
951
|
+
e._d=new Date(t):r.createFromInputFallback(e)}function Kn(e,t,n,r,i){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),
|
|
952
952
|
// object construction must be done this way.
|
|
953
953
|
// https://github.com/moment/moment/issues/1423
|
|
954
|
-
|
|
954
|
+
o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,Wn(o)}function Xn(e,t,n,r){return Kn(e,t,n,r,!1)}r.createFromInputFallback=E("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},
|
|
955
955
|
// constant that refers to the RFC 2822 form
|
|
956
|
-
r.RFC_2822=function(){};var
|
|
956
|
+
r.RFC_2822=function(){};var qn=E("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Xn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),Jn=E("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Xn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));
|
|
957
957
|
// Pick a moment m from moments so that m[fn](other) is true for all
|
|
958
958
|
// other. This relies on the function fn to be transitive.
|
|
959
959
|
|
|
@@ -961,21 +961,21 @@ r.RFC_2822=function(){};var Jn=E("moment().min is deprecated, use moment.max ins
|
|
|
961
961
|
// first element is an array of moment objects.
|
|
962
962
|
function Qn(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Xn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}
|
|
963
963
|
// TODO: Use [].sort instead?
|
|
964
|
-
function er(){return Qn("isBefore",[].slice.call(arguments,0))}function tr(){return Qn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(e){var t,n,r=!1,i=rr.length;for(t in e)if(
|
|
965
|
-
parseFloat(e[rr[n]])!==ue(e[rr[n]])&&(r=!0)}return!0}function ar(){return this._isValid}function
|
|
964
|
+
function er(){return Qn("isBefore",[].slice.call(arguments,0))}function tr(){return Qn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(e){var t,n,r=!1,i=rr.length;for(t in e)if(o(e,t)&&(-1===Ye.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[rr[n]]){if(r)return!1;// only allow non-integers for smallest unit
|
|
965
|
+
parseFloat(e[rr[n]])!==ue(e[rr[n]])&&(r=!0)}return!0}function ar(){return this._isValid}function sr(){return Lr(NaN)}function or(e){var t=ie(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,s=t.day||0,o=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=ir(t),
|
|
966
966
|
// representation for dateAddRemove
|
|
967
967
|
this._milliseconds=+u+1e3*c+// 1000
|
|
968
968
|
6e4*l+// 1000 * 60
|
|
969
|
-
1e3*
|
|
969
|
+
1e3*o*60*60,//using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
|
|
970
970
|
// Because of dateAddRemove treats 24 hours as different from a
|
|
971
971
|
// day when working around DST, we need to store them separately
|
|
972
|
-
this._days=+
|
|
972
|
+
this._days=+s+7*a,
|
|
973
973
|
// It is impossible to translate months into days without knowing
|
|
974
974
|
// which months you are are talking about, so we have to store
|
|
975
975
|
// it separately.
|
|
976
|
-
this._months=+i+3*r+12*n,this._data={},this._locale=bn(),this._bubble()}function lr(e){return e instanceof
|
|
976
|
+
this._months=+i+3*r+12*n,this._data={},this._locale=bn(),this._bubble()}function lr(e){return e instanceof or}function cr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}
|
|
977
977
|
// compare two arrays, return the number of differences
|
|
978
|
-
function ur(e,t,n){var r,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),
|
|
978
|
+
function ur(e,t,n){var r,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),s=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&ue(e[r])!==ue(t[r]))&&s++;return s+a}
|
|
979
979
|
// FORMATTING
|
|
980
980
|
function hr(e,t){H(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+O(~~(e/60),2)+t+O(~~e%60,2)}))}hr("Z",":"),hr("ZZ",""),
|
|
981
981
|
// PARSING
|
|
@@ -1005,7 +1005,7 @@ return-Math.round(e._d.getTimezoneOffset())}
|
|
|
1005
1005
|
// a second time. In case it wants us to change the offset again
|
|
1006
1006
|
// _changeInProgress == true case, then we have to adjust, because
|
|
1007
1007
|
// there is no such time in the given timezone.
|
|
1008
|
-
function gr(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=mr(Fe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=pr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress
|
|
1008
|
+
function gr(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=mr(Fe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=pr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?Dr(this,Lr(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:pr(this)}function yr(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(pr(this),"m")),this}function wr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=mr(Ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function _r(e){return!!this.isValid()&&(e=e?Xn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Sr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=Vn(t))._a?(e=t._isUTC?f(t._a):Xn(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Tr(){return!!this.isValid()&&!this._isUTC}function Er(){return!!this.isValid()&&this._isUTC}function Gr(){return!!this.isValid()&&this._isUTC&&0===this._offset}
|
|
1009
1009
|
// ASP.NET json date format regex
|
|
1010
1010
|
r.updateOffset=function(){};var Mr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
|
|
1011
1011
|
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
|
@@ -1013,9 +1013,9 @@ r.updateOffset=function(){};var Mr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\
|
|
|
1013
1013
|
// and further modified to allow for strings containing both week and day
|
|
1014
1014
|
Cr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Lr(e,t){var n,r,i,a=e,
|
|
1015
1015
|
// matching against regexp is expensive, do it on demand
|
|
1016
|
-
|
|
1016
|
+
s=null;return lr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(s=Mr.exec(e))?(n="-"===s[1]?-1:1,a={y:0,d:ue(s[We])*n,h:ue(s[Ve])*n,m:ue(s[Ze])*n,s:ue(s[Ke])*n,ms:ue(cr(1e3*s[Xe]))*n}):(s=Cr.exec(e))?(n="-"===s[1]?-1:1,a={y:kr(s[2],n),M:kr(s[3],n),w:kr(s[4],n),d:kr(s[5],n),h:kr(s[6],n),m:kr(s[7],n),s:kr(s[8],n)}):null==a?
|
|
1017
1017
|
// checks for null or undefined
|
|
1018
|
-
a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Fr(Xn(a.from),Xn(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new
|
|
1018
|
+
a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Fr(Xn(a.from),Xn(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new or(a),lr(e)&&o(e,"_locale")&&(r._locale=e._locale),lr(e)&&o(e,"_isValid")&&(r._isValid=e._isValid),r}function kr(e,t){
|
|
1019
1019
|
// We'd normally use ~~inp for this, but unfortunately it also
|
|
1020
1020
|
// converts floats to ints.
|
|
1021
1021
|
// inp may be undefined, so careful calling replace on it.
|
|
@@ -1023,24 +1023,24 @@ var n=e&&parseFloat(e.replace(",","."));
|
|
|
1023
1023
|
// apply sign while we're at it
|
|
1024
1024
|
return(isNaN(n)?0:n)*t}function Ir(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 Fr(e,t){var n;return e.isValid()&&t.isValid()?(t=fr(t,e),e.isBefore(t)?n=Ir(e,t):((n=Ir(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}
|
|
1025
1025
|
// TODO: remove 'name' arg after deprecation is removed
|
|
1026
|
-
function
|
|
1026
|
+
function $r(e,t){return function(n,r){var i;
|
|
1027
1027
|
//invert the arguments, but complain about it
|
|
1028
|
-
return null===r||isNaN(+r)||(C(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)
|
|
1028
|
+
return null===r||isNaN(+r)||(C(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),Dr(this,Lr(n,r),e),this}}function Dr(e,t,n,i){var a=t._milliseconds,s=cr(t._days),o=cr(t._months);e.isValid()&&(i=null==i||i,o&&ut(e,de(e,"Month")+o*n),s&&me(e,"Date",de(e,"Date")+s*n),a&&e._d.setTime(e._d.valueOf()+a*n),i&&r.updateOffset(e,s||o))}Lr.fn=or.prototype,Lr.invalid=sr;var Or=$r(1,"add"),Pr=$r(-1,"subtract");function Nr(e){return"string"==typeof e||e instanceof String}
|
|
1029
1029
|
// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
|
|
1030
|
-
function Ar(e){return x(e)||h(e)||Nr(e)||u(e)||Hr(e)||Rr(e)||null==e}function Rr(e){var t,n,r=
|
|
1030
|
+
function Ar(e){return x(e)||h(e)||Nr(e)||u(e)||Hr(e)||Rr(e)||null==e}function Rr(e){var t,n,r=s(e)&&!l(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=a.length;for(t=0;t<c;t+=1)n=a[t],i=i||o(e,n);return r&&i}function Hr(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&Nr(e)})).length),t&&n}function Br(e){var t,n,r=s(e)&&!l(e),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],i=i||o(e,n);return r&&i}function Ur(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 Yr(e,t){
|
|
1031
1031
|
// Support for single parameter, formats only overload to the calendar function
|
|
1032
1032
|
1===arguments.length&&(arguments[0]?Ar(arguments[0])?(e=arguments[0],t=void 0):Br(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));
|
|
1033
1033
|
// We want to compare the start of today, vs this.
|
|
1034
1034
|
// Getting start-of-today depends on whether we're local/utc/offset or not.
|
|
1035
|
-
var n=e||Xn(),i=fr(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",
|
|
1035
|
+
var n=e||Xn(),i=fr(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",s=t&&(L(t[a])?t[a].call(this,n):t[a]);return this.format(s||this.localeData().calendar(a,this,Xn(n)))}function jr(){return new S(this)}function zr(e,t){var n=x(e)?e:Xn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Wr(e,t){var n=x(e)?e:Xn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Vr(e,t,n,r){var i=x(e)?e:Xn(e),a=x(t)?t:Xn(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function Zr(e,t){var n,r=x(e)?e:Xn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Kr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Xr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function qr(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=fr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":a=Jr(this,r)/12;break;case"month":a=Jr(this,r);break;case"quarter":a=Jr(this,r)/3;break;case"second":a=(this-r)/1e3;break;// 1000
|
|
1036
1036
|
case"minute":a=(this-r)/6e4;break;// 1000 * 60
|
|
1037
1037
|
case"hour":a=(this-r)/36e5;break;// 1000 * 60 * 60
|
|
1038
1038
|
case"day":a=(this-r-i)/864e5;break;// 1000 * 60 * 60 * 24, negate dst
|
|
1039
1039
|
case"week":a=(this-r-i)/6048e5;break;// 1000 * 60 * 60 * 24 * 7, negate dst
|
|
1040
|
-
default:a=this-r}return n?a:ce(a)}function
|
|
1040
|
+
default:a=this-r}return n?a:ce(a)}function Jr(e,t){if(e.date()<t.date())
|
|
1041
1041
|
// end-of-month calculations work correct when the start month has more
|
|
1042
1042
|
// days than the end month.
|
|
1043
|
-
return-
|
|
1043
|
+
return-Jr(t,e);
|
|
1044
1044
|
// difference in months
|
|
1045
1045
|
var n=12*(t.year()-e.year())+(t.month()-e.month()),
|
|
1046
1046
|
// b is in (anchor - 1 month, anchor + 1 month)
|
|
@@ -1054,11 +1054,11 @@ t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).t
|
|
|
1054
1054
|
* also be evaluated to get a new moment which is the same
|
|
1055
1055
|
*
|
|
1056
1056
|
* @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
|
|
1057
|
-
*/function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(x(e)&&e.isValid()||Xn(e).isValid())?Lr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ii(e){return this.from(Xn(),e)}function ai(e,t){return this.isValid()&&(x(e)&&e.isValid()||Xn(e).isValid())?Lr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function
|
|
1057
|
+
*/function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(x(e)&&e.isValid()||Xn(e).isValid())?Lr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ii(e){return this.from(Xn(),e)}function ai(e,t){return this.isValid()&&(x(e)&&e.isValid()||Xn(e).isValid())?Lr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function si(e){return this.to(Xn(),e)}
|
|
1058
1058
|
// If passed a locale key, it will set the locale for this
|
|
1059
1059
|
// instance. Otherwise, it will return the locale configuration
|
|
1060
1060
|
// variables for this instance.
|
|
1061
|
-
function
|
|
1061
|
+
function oi(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var li=E("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ci(){return this._locale}var ui=1e3,hi=60*ui,di=60*hi,mi=3506328*di;
|
|
1062
1062
|
// actual modulo - handles negative numbers (for dates before 1970):
|
|
1063
1063
|
function fi(e,t){return(e%t+t)%t}function pi(e,t,n){
|
|
1064
1064
|
// the date constructor remaps years 0-99 to 1900-1999
|
|
@@ -1066,23 +1066,23 @@ return e<100&&e>=0?new Date(e+400,t,n)-mi:new Date(e,t,n).valueOf()}function gi(
|
|
|
1066
1066
|
// Date.UTC remaps years 0-99 to 1900-1999
|
|
1067
1067
|
return e<100&&e>=0?Date.UTC(e+400,t,n)-mi:Date.UTC(e,t,n)}function yi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:pi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fi(t+(this._isUTC?0:this.utcOffset()*hi),di);break;case"minute":t=this._d.valueOf(),t-=fi(t,hi);break;case"second":t=this._d.valueOf(),t-=fi(t,ui)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:pi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=di-fi(t+(this._isUTC?0:this.utcOffset()*hi),di)-1;break;case"minute":t=this._d.valueOf(),t+=hi-fi(t,hi)-1;break;case"second":t=this._d.valueOf(),t+=ui-fi(t,ui)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function bi(){return this._d.valueOf()-6e4*(this._offset||0)}function wi(){return Math.floor(this.valueOf()/1e3)}function _i(){return new Date(this.valueOf())}function Si(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ti(){
|
|
1068
1068
|
// new Date(NaN).toJSON() === null
|
|
1069
|
-
return this.isValid()?this.toISOString():null}function Ei(){return y(this)}function Gi(){return m({},g(this))}function Mi(){return g(this).overflow}function Ci(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Li(e,t){var n,i,a,
|
|
1069
|
+
return this.isValid()?this.toISOString():null}function Ei(){return y(this)}function Gi(){return m({},g(this))}function Mi(){return g(this).overflow}function Ci(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Li(e,t){var n,i,a,s=this._eras||bn("en")._eras;for(n=0,i=s.length;n<i;++n)switch("string"==typeof s[n].since&&(
|
|
1070
1070
|
// truncate time
|
|
1071
|
-
a=r(
|
|
1071
|
+
a=r(s[n].since).startOf("day"),s[n].since=a.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":
|
|
1072
1072
|
// truncate time
|
|
1073
|
-
a=r(
|
|
1073
|
+
a=r(s[n].until).startOf("day").valueOf(),s[n].until=a.valueOf()}return s}function ki(e,t,n){var r,i,a,s,o,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(a=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),o=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[r];break;case"NNNN":if(a===e)return l[r];break;case"NNNNN":if(o===e)return l[r]}else if([a,s,o].indexOf(e)>=0)return l[r]}function Ii(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 Fi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
|
|
1074
1074
|
// truncate time
|
|
1075
|
-
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
|
|
1075
|
+
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 $i(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
|
|
1076
1076
|
// truncate time
|
|
1077
|
-
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
|
|
1077
|
+
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 Di(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(
|
|
1078
1078
|
// truncate time
|
|
1079
1079
|
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 Oi(){var e,t,n,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,
|
|
1080
1080
|
// truncate time
|
|
1081
|
-
i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-r(a[e].since).year())*n+a[e].offset;return this.year()}function Pi(e){return
|
|
1081
|
+
i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-r(a[e].since).year())*n+a[e].offset;return this.year()}function Pi(e){return o(this,"_erasNameRegex")||Yi.call(this),e?this._erasNameRegex:this._erasRegex}function Ni(e){return o(this,"_erasAbbrRegex")||Yi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ai(e){return o(this,"_erasNarrowRegex")||Yi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ri(e,t){return t.erasAbbrRegex(e)}function Hi(e,t){return t.erasNameRegex(e)}function Bi(e,t){return t.erasNarrowRegex(e)}function Ui(e,t){return t._eraYearOrdinalRegex||Le}function Yi(){var e,t,n=[],r=[],i=[],a=[],s=this.eras();for(e=0,t=s.length;e<t;++e)r.push(Ae(s[e].name)),n.push(Ae(s[e].abbr)),i.push(Ae(s[e].narrow)),a.push(Ae(s[e].name)),a.push(Ae(s[e].abbr)),a.push(Ae(s[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}
|
|
1082
1082
|
// FORMATTING
|
|
1083
1083
|
function ji(e,t){H(0,[e,e.length],0,t)}
|
|
1084
1084
|
// MOMENTS
|
|
1085
|
-
function zi(e){return
|
|
1085
|
+
function zi(e){return qi.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Wi(e){return qi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Vi(){return Tt(this.year(),1,4)}function Zi(){return Tt(this.isoWeekYear(),1,4)}function Ki(){var e=this.localeData()._week;return Tt(this.year(),e.dow,e.doy)}function Xi(){var e=this.localeData()._week;return Tt(this.weekYear(),e.dow,e.doy)}function qi(e,t,n,r,i){var a;return null==e?xt(this,r,i).year:(t>(a=Tt(e,r,i))&&(t=a),Ji.call(this,e,t,n,r,i))}function Ji(e,t,n,r,i){var a=St(e,t,n,r,i),s=wt(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}
|
|
1086
1086
|
// FORMATTING
|
|
1087
1087
|
// MOMENTS
|
|
1088
1088
|
function Qi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}
|
|
@@ -1091,19 +1091,19 @@ H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"
|
|
|
1091
1091
|
// ALIASES
|
|
1092
1092
|
ne("weekYear","gg"),ne("isoWeekYear","GG"),
|
|
1093
1093
|
// PRIORITY
|
|
1094
|
-
|
|
1094
|
+
se("weekYear",1),se("isoWeekYear",1),
|
|
1095
1095
|
// PARSING
|
|
1096
1096
|
Oe("G",ke),Oe("g",ke),Oe("GG",xe,be),Oe("gg",xe,be),Oe("GGGG",Me,_e),Oe("gggg",Me,_e),Oe("GGGGG",Ce,Se),Oe("ggggg",Ce,Se),Be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ue(e)})),Be(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),H("Q",0,"Qo","quarter"),
|
|
1097
1097
|
// ALIASES
|
|
1098
1098
|
ne("quarter","Q"),
|
|
1099
1099
|
// PRIORITY
|
|
1100
|
-
|
|
1100
|
+
se("quarter",7),
|
|
1101
1101
|
// PARSING
|
|
1102
1102
|
Oe("Q",ve),He("Q",(function(e,t){t[ze]=3*(ue(e)-1)})),H("D",["DD",2],"Do","date"),
|
|
1103
1103
|
// ALIASES
|
|
1104
1104
|
ne("date","D"),
|
|
1105
1105
|
// PRIORITY
|
|
1106
|
-
|
|
1106
|
+
se("date",9),
|
|
1107
1107
|
// PARSING
|
|
1108
1108
|
Oe("D",xe),Oe("DD",xe,be),Oe("Do",(function(e,t){
|
|
1109
1109
|
// TODO: Remove "ordinalParse" fallback in next major release.
|
|
@@ -1119,13 +1119,13 @@ H("DDD",["DDDD",3],"DDDo","dayOfYear"),
|
|
|
1119
1119
|
// ALIASES
|
|
1120
1120
|
ne("dayOfYear","DDD"),
|
|
1121
1121
|
// PRIORITY
|
|
1122
|
-
|
|
1122
|
+
se("dayOfYear",4),
|
|
1123
1123
|
// PARSING
|
|
1124
1124
|
Oe("DDD",Ge),Oe("DDDD",we),He(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ue(e)})),H("m",["mm",2],0,"minute"),
|
|
1125
1125
|
// ALIASES
|
|
1126
1126
|
ne("minute","m"),
|
|
1127
1127
|
// PRIORITY
|
|
1128
|
-
|
|
1128
|
+
se("minute",14),
|
|
1129
1129
|
// PARSING
|
|
1130
1130
|
Oe("m",xe),Oe("mm",xe,be),He(["m","mm"],Ze);
|
|
1131
1131
|
// MOMENTS
|
|
@@ -1135,7 +1135,7 @@ H("s",["ss",2],0,"second"),
|
|
|
1135
1135
|
// ALIASES
|
|
1136
1136
|
ne("second","s"),
|
|
1137
1137
|
// PRIORITY
|
|
1138
|
-
|
|
1138
|
+
se("second",15),
|
|
1139
1139
|
// PARSING
|
|
1140
1140
|
Oe("s",xe),Oe("ss",xe,be),He(["s","ss"],Ke);
|
|
1141
1141
|
// MOMENTS
|
|
@@ -1145,13 +1145,13 @@ for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(fu
|
|
|
1145
1145
|
// ALIASES
|
|
1146
1146
|
ne("millisecond","ms"),
|
|
1147
1147
|
// PRIORITY
|
|
1148
|
-
|
|
1148
|
+
se("millisecond",16),
|
|
1149
1149
|
// PARSING
|
|
1150
|
-
Oe("S",Ge,ve),Oe("SS",Ge,be),Oe("SSS",Ge,we),ra="SSSS";ra.length<=9;ra+="S")Oe(ra,Le);function
|
|
1150
|
+
Oe("S",Ge,ve),Oe("SS",Ge,be),Oe("SSS",Ge,we),ra="SSSS";ra.length<=9;ra+="S")Oe(ra,Le);function sa(e,t){t[Xe]=ue(1e3*("0."+e))}for(ra="S";ra.length<=9;ra+="S")He(ra,sa);
|
|
1151
1151
|
// MOMENTS
|
|
1152
|
-
function
|
|
1152
|
+
function oa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}ia=he("Milliseconds",!1),
|
|
1153
1153
|
// FORMATTING
|
|
1154
|
-
H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var ca=S.prototype;function ua(e){return Xn(1e3*e)}function ha(){return Xn.apply(null,arguments).parseZone()}function da(e){return e}ca.add=Or,ca.calendar=Yr,ca.clone=jr,ca.diff=
|
|
1154
|
+
H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var ca=S.prototype;function ua(e){return Xn(1e3*e)}function ha(){return Xn.apply(null,arguments).parseZone()}function da(e){return e}ca.add=Or,ca.calendar=Yr,ca.clone=jr,ca.diff=qr,ca.endOf=vi,ca.format=ni,ca.from=ri,ca.fromNow=ii,ca.to=ai,ca.toNow=si,ca.get=fe,ca.invalidAt=Mi,ca.isAfter=zr,ca.isBefore=Wr,ca.isBetween=Vr,ca.isSame=Zr,ca.isSameOrAfter=Kr,ca.isSameOrBefore=Xr,ca.isValid=Ei,ca.lang=li,ca.locale=oi,ca.localeData=ci,ca.max=Jn,ca.min=qn,ca.parsingFlags=Gi,ca.set=ge,ca.startOf=yi,ca.subtract=Pr,ca.toArray=Si,ca.toObject=xi,ca.toDate=_i,ca.toISOString=ei,ca.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ca[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ca.toJSON=Ti,ca.toString=Qr,ca.unix=wi,ca.valueOf=bi,ca.creationData=Ci,ca.eraName=Fi,ca.eraNarrow=$i,ca.eraAbbr=Di,ca.eraYear=Oi,ca.year=yt,ca.isLeapYear=vt,ca.weekYear=zi,ca.isoWeekYear=Wi,ca.quarter=ca.quarters=Qi,ca.month=ht,ca.daysInMonth=dt,ca.week=ca.weeks=Lt,ca.isoWeek=ca.isoWeeks=kt,ca.weeksInYear=Ki,ca.weeksInWeekYear=Xi,ca.isoWeeksInYear=Vi,ca.isoWeeksInISOWeekYear=Zi,ca.date=ea,ca.day=ca.days=zt,ca.weekday=Wt,ca.isoWeekday=Vt,ca.dayOfYear=ta,ca.hour=ca.hours=an,ca.minute=ca.minutes=na,ca.second=ca.seconds=aa,ca.millisecond=ca.milliseconds=ia,ca.utcOffset=gr,ca.utc=vr,ca.local=br,ca.parseZone=wr,ca.hasAlignedHourOffset=_r,ca.isDST=Sr,ca.isLocal=Tr,ca.isUtcOffset=Er,ca.isUtc=Gr,ca.isUTC=Gr,ca.zoneAbbr=oa,ca.zoneName=la,ca.dates=E("dates accessor is deprecated. Use date instead.",ea),ca.months=E("months accessor is deprecated. Use month instead",ht),ca.years=E("years accessor is deprecated. Use year instead",yt),ca.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yr),ca.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xr);var ma=F.prototype;function fa(e,t,n,r){var i=bn(),a=f().set(r,t);return i[n](a,e)}function pa(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return fa(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=fa(e,r,n,"month");return i}
|
|
1155
1155
|
// ()
|
|
1156
1156
|
// (5)
|
|
1157
1157
|
// (fmt, 5)
|
|
@@ -1160,23 +1160,23 @@ H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var ca=S.prototype;function ua(e){r
|
|
|
1160
1160
|
// (true, 5)
|
|
1161
1161
|
// (true, fmt, 5)
|
|
1162
1162
|
// (true, fmt)
|
|
1163
|
-
function ga(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,a=bn(),
|
|
1163
|
+
function ga(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,a=bn(),s=e?a._week.dow:0,o=[];if(null!=n)return fa(t,(n+s)%7,r,"day");for(i=0;i<7;i++)o[i]=fa(t,(i+s)%7,r,"day");return o}function ya(e,t){return pa(e,t,"months")}function va(e,t){return pa(e,t,"monthsShort")}function ba(e,t,n){return ga(e,t,n,"weekdays")}function wa(e,t,n){return ga(e,t,n,"weekdaysShort")}function _a(e,t,n){return ga(e,t,n,"weekdaysMin")}ma.calendar=D,ma.longDateFormat=W,ma.invalidDate=Z,ma.ordinal=q,ma.preparse=da,ma.postformat=da,ma.relativeTime=Q,ma.pastFuture=ee,ma.set=k,ma.eras=Li,ma.erasParse=ki,ma.erasConvertYear=Ii,ma.erasAbbrRegex=Ni,ma.erasNameRegex=Pi,ma.erasNarrowRegex=Ai,ma.months=st,ma.monthsShort=ot,ma.monthsParse=ct,ma.monthsRegex=ft,ma.monthsShortRegex=mt,ma.week=Et,ma.firstDayOfYear=Ct,ma.firstDayOfWeek=Mt,ma.weekdays=Ht,ma.weekdaysMin=Ut,ma.weekdaysShort=Bt,ma.weekdaysParse=jt,ma.weekdaysRegex=Zt,ma.weekdaysShortRegex=Kt,ma.weekdaysMinRegex=Xt,ma.isPM=nn,ma.meridiem=sn,gn("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===ue(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),
|
|
1164
1164
|
// Side effect imports
|
|
1165
1165
|
r.lang=E("moment.lang is deprecated. Use moment.locale instead.",gn),r.langData=E("moment.langData is deprecated. Use moment.localeData instead.",bn);var Sa=Math.abs;function xa(){var e=this._data;return this._milliseconds=Sa(this._milliseconds),this._days=Sa(this._days),this._months=Sa(this._months),e.milliseconds=Sa(e.milliseconds),e.seconds=Sa(e.seconds),e.minutes=Sa(e.minutes),e.hours=Sa(e.hours),e.months=Sa(e.months),e.years=Sa(e.years),this}function Ta(e,t,n,r){var i=Lr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}
|
|
1166
1166
|
// supports only 2.0-style add(1, 's') or add(duration)
|
|
1167
1167
|
function Ea(e,t){return Ta(this,e,t,1)}
|
|
1168
1168
|
// supports only 2.0-style subtract(1, 's') or subtract(duration)
|
|
1169
|
-
function Ga(e,t){return Ta(this,e,t,-1)}function Ma(e){return e<0?Math.floor(e):Math.ceil(e)}function Ca(){var e,t,n,r,i,a=this._milliseconds,
|
|
1169
|
+
function Ga(e,t){return Ta(this,e,t,-1)}function Ma(e){return e<0?Math.floor(e):Math.ceil(e)}function Ca(){var e,t,n,r,i,a=this._milliseconds,s=this._days,o=this._months,l=this._data;
|
|
1170
1170
|
// if we have a mix of positive and negative values, bubble down first
|
|
1171
1171
|
// check: https://github.com/moment/moment/issues/2166
|
|
1172
|
-
return a>=0&&
|
|
1172
|
+
return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*Ma(ka(o)+s),s=0,o=0),
|
|
1173
1173
|
// The following code bubbles up values, see the tests for
|
|
1174
1174
|
// examples of what that means.
|
|
1175
|
-
l.milliseconds=a%1e3,e=ce(a/1e3),l.seconds=e%60,t=ce(e/60),l.minutes=t%60,n=ce(t/60),l.hours=n%24,
|
|
1175
|
+
l.milliseconds=a%1e3,e=ce(a/1e3),l.seconds=e%60,t=ce(e/60),l.minutes=t%60,n=ce(t/60),l.hours=n%24,s+=ce(n/24),o+=
|
|
1176
1176
|
// convert days to months
|
|
1177
|
-
i=ce(La(
|
|
1177
|
+
i=ce(La(s)),s-=Ma(ka(i)),
|
|
1178
1178
|
// 12 months -> 1 year
|
|
1179
|
-
r=ce(
|
|
1179
|
+
r=ce(o/12),o%=12,l.days=s,l.months=o,l.years=r,this}function La(e){
|
|
1180
1180
|
// 400 years have 146097 days (taking into account leap year rules)
|
|
1181
1181
|
// 400 years have 12 months === 4800
|
|
1182
1182
|
return 4800*e/146097}function ka(e){
|
|
@@ -1187,7 +1187,7 @@ t=this._days+Math.round(ka(this._months)),e){case"week":return t/7+r/6048e5;case
|
|
|
1187
1187
|
// Math.floor prevents floating point math errors here
|
|
1188
1188
|
case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}
|
|
1189
1189
|
// TODO: Use this.as('ms')?
|
|
1190
|
-
function Fa(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN}function
|
|
1190
|
+
function Fa(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN}function $a(e){return function(){return this.as(e)}}var Da=$a("ms"),Oa=$a("s"),Pa=$a("m"),Na=$a("h"),Aa=$a("d"),Ra=$a("w"),Ha=$a("M"),Ba=$a("Q"),Ua=$a("y");function Ya(){return Lr(this)}function ja(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function za(e){return function(){return this.isValid()?this._data[e]:NaN}}var Wa=za("milliseconds"),Va=za("seconds"),Za=za("minutes"),Ka=za("hours"),Xa=za("days"),qa=za("months"),Ja=za("years");function Qa(){return ce(this.days()/7)}var es=Math.round,ts={ss:44,// a few seconds to seconds
|
|
1191
1191
|
s:45,// seconds to minute
|
|
1192
1192
|
m:45,// minutes to hour
|
|
1193
1193
|
h:22,// hours to day
|
|
@@ -1195,11 +1195,11 @@ d:26,// days to month/week
|
|
|
1195
1195
|
w:null,// weeks to month
|
|
1196
1196
|
M:11};
|
|
1197
1197
|
// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
|
|
1198
|
-
function
|
|
1198
|
+
function ns(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function rs(e,t,n,r){var i=Lr(e).abs(),a=es(i.as("s")),s=es(i.as("m")),o=es(i.as("h")),l=es(i.as("d")),c=es(i.as("M")),u=es(i.as("w")),h=es(i.as("y")),d=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||o<=1&&["h"]||o<n.h&&["hh",o]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(d=d||u<=1&&["w"]||u<n.w&&["ww",u]),(d=d||c<=1&&["M"]||c<n.M&&["MM",c]||h<=1&&["y"]||["yy",h])[2]=t,d[3]=+e>0,d[4]=r,ns.apply(null,d)}
|
|
1199
1199
|
// This function allows you to set the rounding function for relative time strings
|
|
1200
|
-
function
|
|
1200
|
+
function is(e){return void 0===e?es:"function"==typeof e&&(es=e,!0)}
|
|
1201
1201
|
// This function allows you to set a threshold for relative time strings
|
|
1202
|
-
function
|
|
1202
|
+
function as(e,t){return void 0!==ts[e]&&(void 0===t?ts[e]:(ts[e]=t,"s"===e&&(ts.ss=t-1),!0))}function ss(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=ts;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(a=Object.assign({},ts,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=rs(this,!i,a,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var os=Math.abs;function ls(e){return(e>0)-(e<0)||+e}function cs(){
|
|
1203
1203
|
// for ISO strings we do not use the normal bubbling rules:
|
|
1204
1204
|
// * milliseconds bubble up until they become hours
|
|
1205
1205
|
// * days do not bubble at all
|
|
@@ -1207,19 +1207,19 @@ function ao(e,t){return void 0!==to[e]&&(void 0===t?to[e]:(to[e]=t,"s"===e&&(to.
|
|
|
1207
1207
|
// This is because there is no context-free conversion between hours and days
|
|
1208
1208
|
// (think of clock changes)
|
|
1209
1209
|
// and also not between days and months (28-31 days per month)
|
|
1210
|
-
if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,a,o,
|
|
1210
|
+
if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,a,s,o,l=os(this._milliseconds)/1e3,c=os(this._days),u=os(this._months),h=this.asSeconds();return h?(
|
|
1211
1211
|
// 3600 seconds -> 60 minutes -> 1 hour
|
|
1212
1212
|
e=ce(l/60),t=ce(e/60),l%=60,e%=60,
|
|
1213
1213
|
// 12 months -> 1 year
|
|
1214
1214
|
n=ce(u/12),u%=12,
|
|
1215
1215
|
// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
|
|
1216
|
-
r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",a=
|
|
1216
|
+
r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",a=ls(this._months)!==ls(h)?"-":"",s=ls(this._days)!==ls(h)?"-":"",o=ls(this._milliseconds)!==ls(h)?"-":"",i+"P"+(n?a+n+"Y":"")+(u?a+u+"M":"")+(c?s+c+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+r+"S":"")):"P0D"}var us=or.prototype;return us.isValid=ar,us.abs=xa,us.add=Ea,us.subtract=Ga,us.as=Ia,us.asMilliseconds=Da,us.asSeconds=Oa,us.asMinutes=Pa,us.asHours=Na,us.asDays=Aa,us.asWeeks=Ra,us.asMonths=Ha,us.asQuarters=Ba,us.asYears=Ua,us.valueOf=Fa,us._bubble=Ca,us.clone=Ya,us.get=ja,us.milliseconds=Wa,us.seconds=Va,us.minutes=Za,us.hours=Ka,us.days=Xa,us.weeks=Qa,us.months=qa,us.years=Ja,us.humanize=ss,us.toISOString=cs,us.toString=cs,us.toJSON=cs,us.locale=oi,us.localeData=ci,us.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cs),us.lang=li,
|
|
1217
1217
|
// FORMATTING
|
|
1218
1218
|
H("X",0,0,"unix"),H("x",0,0,"valueOf"),
|
|
1219
1219
|
// PARSING
|
|
1220
|
-
Oe("x",ke),Oe("X"
|
|
1220
|
+
Oe("x",ke),Oe("X",$e),He("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),He("x",(function(e,t,n){n._d=new Date(ue(e))})),
|
|
1221
1221
|
//! moment.js
|
|
1222
|
-
r.version="2.29.3",i(Xn),r.fn=ca,r.min=er,r.max=tr,r.now=nr,r.utc=f,r.unix=ua,r.months=ya,r.isDate=h,r.locale=gn,r.invalid=v,r.duration=Lr,r.isMoment=x,r.weekdays=ba,r.parseZone=ha,r.localeData=bn,r.isDuration=lr,r.monthsShort=va,r.weekdaysMin=_a,r.defineLocale=yn,r.updateLocale=vn,r.locales=wn,r.weekdaysShort=wa,r.normalizeUnits=re,r.relativeTimeRounding=
|
|
1222
|
+
r.version="2.29.3",i(Xn),r.fn=ca,r.min=er,r.max=tr,r.now=nr,r.utc=f,r.unix=ua,r.months=ya,r.isDate=h,r.locale=gn,r.invalid=v,r.duration=Lr,r.isMoment=x,r.weekdays=ba,r.parseZone=ha,r.localeData=bn,r.isDuration=lr,r.monthsShort=va,r.weekdaysMin=_a,r.defineLocale=yn,r.updateLocale=vn,r.locales=wn,r.weekdaysShort=wa,r.normalizeUnits=re,r.relativeTimeRounding=is,r.relativeTimeThreshold=as,r.calendarFormat=Ur,r.prototype=ca,
|
|
1223
1223
|
// currently HTML5 input type only supports 24-hour formats
|
|
1224
1224
|
r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",// <input type="datetime-local" />
|
|
1225
1225
|
DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",// <input type="datetime-local" step="1" />
|
|
@@ -1236,11 +1236,11 @@ opens:"Opens ",full:"table full - bet behind",dealer:"Dealer"}},fr:{gameThumbnai
|
|
|
1236
1236
|
/* ../casino-game-thumbnail/src/CasinoGameThumbnail.svelte generated by Svelte v3.48.0 */
|
|
1237
1237
|
function Ir(e,t,n){const r=e.slice();return r[109]=t[n],r[111]=n,r}function Fr(e,t,n){const r=e.slice();return r[106]=t[n],r}
|
|
1238
1238
|
// (556:8) {#if fav}
|
|
1239
|
-
function
|
|
1239
|
+
function $r(e){let t,n=!_r(/*userAgent*/e[37])&&!/*gamefavorite*/e[0]&&/*isLoggedIn*/e[15],r=n&&Dr(e);return{c(){r&&r.c(),t=b()},m(e,n){r&&r.m(e,n),d(e,t,n)},p(e,i){/*gamefavorite, isLoggedIn*/32769&i[0]&&(n=!_r(/*userAgent*/e[37])&&!/*gamefavorite*/e[0]&&/*isLoggedIn*/e[15]),n?r?r.p(e,i):(r=Dr(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&m(t)}}}
|
|
1240
1240
|
// (557:10) {#if !isMobile(userAgent) && !gamefavorite && isLoggedIn}
|
|
1241
|
-
function
|
|
1241
|
+
function Dr(t){let n,r,i;return{c(){n=p("div"),n.innerHTML='<svg version="1.1" class="UnfavoredIcon" part="UnfavoredIcon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="20px" y="20px" viewBox="0 0 512.001 512.001" style="enable-background:new 0 0 512.001 512.001;" xml:space="preserve"><path style="fill: white" d="M511.266,197.256c-1.764-5.431-6.458-9.388-12.108-10.209l-158.722-23.065L269.452,20.155\n c-2.527-5.12-7.741-8.361-13.451-8.361c-5.709,0-10.924,3.242-13.451,8.361l-70.988,143.828L12.843,187.047\n c-5.65,0.821-10.344,4.779-12.108,10.209c-1.765,5.43-0.293,11.391,3.795,15.376l114.848,111.955L92.27,482.67\n c-0.965,5.627,1.349,11.315,5.968,14.67c4.618,3.355,10.74,3.798,15.797,1.142L256,423.846l141.961,74.637\n c2.195,1.154,4.591,1.723,6.979,1.723c3.11,0,6.206-0.966,8.818-2.865c4.619-3.356,6.933-9.043,5.968-14.671L392.61,324.587\n l114.86-111.954C511.559,208.647,513.031,202.686,511.266,197.256z M366.023,308.608c-3.536,3.446-5.15,8.412-4.314,13.278\n l23.311,135.898l-122.038-64.162c-4.37-2.297-9.591-2.297-13.961,0l-122.045,64.163l23.304-135.9\n c0.834-4.866-0.779-9.83-4.313-13.276l-98.731-96.244l136.445-19.829c4.886-0.71,9.108-3.778,11.294-8.205L256,60.685\n l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z"></path></svg>',_(n,"class","FavIconContainer"),_(n,"part","FavIconContainer")},m(e,a){d(e,n,a),r||(i=w(n,"click",/*click_handler*/t[67]),r=!0)},p:e,d(e){e&&m(n),r=!1,i()}}}
|
|
1242
1242
|
// (573:8) {#if lang}
|
|
1243
|
-
function Or(e){let t,n,r,i,a=/*$_*/e[36]("gameThumbnail.playNow")+"";return{c(){t=p("button"),n=y(a),_(t,"class","GameInfoBtn"),_(t,"part","GameInfoBtn")},m(a,
|
|
1243
|
+
function Or(e){let t,n,r,i,a=/*$_*/e[36]("gameThumbnail.playNow")+"";return{c(){t=p("button"),n=y(a),_(t,"class","GameInfoBtn"),_(t,"part","GameInfoBtn")},m(a,s){d(a,t,s),h(t,n),r||(i=w(t,"click",/*click_handler_1*/e[68]),r=!0)},p(e,t){/*$_*/32&t[1]&&a!==(a=/*$_*/e[36]("gameThumbnail.playNow")+"")&&x(n,a)},d(e){e&&m(t),r=!1,i()}}}
|
|
1244
1244
|
// (587:77)
|
|
1245
1245
|
function Pr(t){let n;return{c(){n=p("div"),n.innerHTML='<svg version="1.1" class="FavoredIcon" part="FavoredIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.481 19.481" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 19.481 19.481"><path style="fill: white" d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"></path></svg>',_(n,"class","FavIconContainer"),_(n,"part","FavIconContainer")},m(e,t){d(e,n,t)},p:e,d(e){e&&m(n)}}}
|
|
1246
1246
|
// (581:4) {#if !isMobile(userAgent) && gamefavorite && isLoggedIn && favorites}
|
|
@@ -1251,85 +1251,85 @@ function Ar(e){let t,n,r=/*$_*/e[36]("gameThumbnail.new")+"";return{c(){t=p("spa
|
|
|
1251
1251
|
function Rr(e){let t,n;return{c(){t=p("span"),n=y(/*gametag*/e[8]),_(t,"class","GameExtraInfoLabel PopularGameTag"),_(t,"part","GameExtraInfoLabel PopularGameTag")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*gametag*/256&t[0]&&x(n,/*gametag*/e[8])},d(e){e&&m(t)}}}
|
|
1252
1252
|
// (601:6) {#if livegamedata}
|
|
1253
1253
|
function Hr(e){let t,n,r=!/*isopen*/e[23]&&/*starttime*/e[21]&&/*timeformat*/e[22]&&Br(e);function i(e,t){/*isopen*/
|
|
1254
|
-
return e[23]&&/*displaytype*/e[20]&&/*displaytype*/e[20]===Qr?Yr:/*isopen*/e[23]&&/*displaytype*/e[20]&&/*displaytype*/e[20]===ei?Ur:void 0}let a=i(e),
|
|
1254
|
+
return e[23]&&/*displaytype*/e[20]&&/*displaytype*/e[20]===Qr?Yr:/*isopen*/e[23]&&/*displaytype*/e[20]&&/*displaytype*/e[20]===ei?Ur:void 0}let a=i(e),s=a&&a(e);return{c(){r&&r.c(),t=v(),s&&s.c(),n=b()},m(e,i){r&&r.m(e,i),d(e,t,i),s&&s.m(e,i),d(e,n,i)},p(e,o){!/*isopen*/e[23]&&/*starttime*/e[21]&&/*timeformat*/e[22]?r?r.p(e,o):(r=Br(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),a===(a=i(e))&&s?s.p(e,o):(s&&s.d(1),s=a&&a(e),s&&(s.c(),s.m(n.parentNode,n)))},d(e){r&&r.d(e),e&&m(t),s&&s.d(e),e&&m(n)}}}
|
|
1255
1255
|
// (602:8) {#if !isopen && starttime && timeformat}
|
|
1256
|
-
function Br(e){let t,n,r,i,a,o,
|
|
1256
|
+
function Br(e){let t,n,r,i,a,s,o,l,c,u,f=/*$_*/e[36]("gameThumbnail.opens")+"",g=Mr.utc(/*starttime*/e[21]).local().format(/*timeformat*/e[22])+"",b=/*renderDealerName*/e[46](/*dealername*/e[35])+"",w=/*renderBetLimits*/e[45](/*min*/e[27],/*max*/e[28],/*currencySymbol*/e[26])+"";return{c(){t=p("div"),n=p("div"),r=y(f),i=v(),a=p("span"),s=y(g),o=v(),l=new E(!1),c=v(),u=new E(!1),_(n,"class","ClosedGame"),_(n,"part","ClosedGame"),l.a=c,u.a=null,_(t,"class","GameProp LiveProps"),_(t,"part","GameProp LiveProps")},m(e,m){d(e,t,m),h(t,n),h(n,r),h(n,i),h(n,a),h(a,s),h(t,o),l.m(b,t),h(t,c),u.m(w,t)},p(e,t){/*$_*/32&t[1]&&f!==(f=/*$_*/e[36]("gameThumbnail.opens")+"")&&x(r,f),/*starttime, timeformat*/6291456&t[0]&&g!==(g=Mr.utc(/*starttime*/e[21]).local().format(/*timeformat*/e[22])+"")&&x(s,g),/*dealername*/16&t[1]&&b!==(b=/*renderDealerName*/e[46](/*dealername*/e[35])+"")&&l.p(b),/*min, max, currencySymbol*/469762048&t[0]&&w!==(w=/*renderBetLimits*/e[45](/*min*/e[27],/*max*/e[28],/*currencySymbol*/e[26])+"")&&u.p(w)},d(e){e&&m(t)}}}
|
|
1257
1257
|
// (635:68)
|
|
1258
|
-
function Ur(e){let t,n,r,i,a,o
|
|
1259
|
-
/*div0_binding*/e[70](n),h(t,r),i.m(
|
|
1258
|
+
function Ur(e){let t,n,r,i,a,s,o=/*renderDealerName*/e[46](/*dealername*/e[35])+"",l=/*renderBetLimits*/e[45](/*min*/e[27],/*max*/e[28],/*currencySymbol*/e[26])+"",c=new Array(ni),u=[];for(let t=0;t<c.length;t+=1)u[t]=Vr(Ir(e,c,t));return{c(){t=p("div"),n=p("div");for(let e=0;e<u.length;e+=1)u[e].c();r=v(),i=new E(!1),a=v(),s=new E(!1),_(n,"class","LiveIcons"),_(n,"part","LiveIcons"),i.a=a,s.a=null,_(t,"class",/*roulettecontainerclassname*/e[31]),_(t,"part",/*roulettecontainerclassname*/e[31])},m(c,m){d(c,t,m),h(t,n);for(let e=0;e<u.length;e+=1)u[e].m(n,null);
|
|
1259
|
+
/*div0_binding*/e[70](n),h(t,r),i.m(o,t),h(t,a),s.m(l,t)},p(e,r){if(/*roulleteresults, isdouble*/1073750016&r[0]|/*renderSpan, colorsourcearray*/65538&r[1]){let t;for(c=new Array(ni),t=0;t<c.length;t+=1){const i=Ir(e,c,t);u[t]?u[t].p(i,r):(u[t]=Vr(i),u[t].c(),u[t].m(n,null))}for(;t<u.length;t+=1)u[t].d(1);u.length=c.length}/*dealername*/16&r[1]&&o!==(o=/*renderDealerName*/e[46](/*dealername*/e[35])+"")&&i.p(o),/*min, max, currencySymbol*/469762048&r[0]&&l!==(l=/*renderBetLimits*/e[45](/*min*/e[27],/*max*/e[28],/*currencySymbol*/e[26])+"")&&s.p(l),/*roulettecontainerclassname*/1&r[1]&&_(t,"class",/*roulettecontainerclassname*/e[31]),/*roulettecontainerclassname*/1&r[1]&&_(t,"part",/*roulettecontainerclassname*/e[31])},d(n){n&&m(t),f(u,n),
|
|
1260
1260
|
/*div0_binding*/e[70](null)}}}
|
|
1261
1261
|
// (614:8) {#if isopen && displaytype && displaytype === BLACKJACK}
|
|
1262
|
-
function Yr(e){let t,n,r,i,a,o
|
|
1263
|
-
return e[33]?Kr:Zr}let u=c(e),f=u(e);return{c(){t=p("div"),n=p("div"),f.c(),r=v(),i=new E(!1),a=v(),
|
|
1262
|
+
function Yr(e){let t,n,r,i,a,s,o=/*renderDealerName*/e[46](/*dealername*/e[35])+"",l=/*renderBetLimits*/e[45](/*min*/e[27],/*max*/e[28],/*currencySymbol*/e[26])+"";function c(e,t){/*istablefull*/
|
|
1263
|
+
return e[33]?Kr:Zr}let u=c(e),f=u(e);return{c(){t=p("div"),n=p("div"),f.c(),r=v(),i=new E(!1),a=v(),s=new E(!1),_(n,"class","LiveIcons"),_(n,"part","LiveIcons"),i.a=a,s.a=null,_(t,"class","GameProp LiveProps BlackjackDisplay"),_(t,"part","GameProp LiveProps BlackjackDisplay")},m(e,c){d(e,t,c),h(t,n),f.m(n,null),h(t,r),i.m(o,t),h(t,a),s.m(l,t)},p(e,t){u===(u=c(e))&&f?f.p(e,t):(f.d(1),f=u(e),f&&(f.c(),f.m(n,null))),/*dealername*/16&t[1]&&o!==(o=/*renderDealerName*/e[46](/*dealername*/e[35])+"")&&i.p(o),/*min, max, currencySymbol*/469762048&t[0]&&l!==(l=/*renderBetLimits*/e[45](/*min*/e[27],/*max*/e[28],/*currencySymbol*/e[26])+"")&&s.p(l)},d(e){e&&m(t),f.d()}}}
|
|
1264
1264
|
// (639:16) {#if roulleteresults && roulleteresults[i]}
|
|
1265
1265
|
function jr(e){let t;function n(e,t){/*isdouble*/
|
|
1266
1266
|
return e[30]?Wr:zr}let r=n(e),i=r(e);return{c(){i.c(),t=b()},m(e,n){i.m(e,n),d(e,t,n)},p(e,a){r===(r=n(e))&&i?i.p(e,a):(i.d(1),i=r(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&m(t)}}}
|
|
1267
1267
|
// (645:18) {:else}
|
|
1268
1268
|
function zr(e){let t,n,r=/*renderSpan*/e[47]("LatestResult "/*i*/+(/*i*/0===e[111]?"First":""),e[111],/*roulleteresults*/e[13][/*i*/e[111]],/*colorsourcearray*/e[32][/*roulleteresults*/e[13][/*i*/e[111]]])+"";return{c(){t=new E(!1),n=b(),t.a=n},m(e,i){t.m(r,e,i),d(e,n,i)},p(e,n){/*roulleteresults*/8192&n[0]|/*colorsourcearray*/2&n[1]&&r!==(r=/*renderSpan*/e[47]("LatestResult "/*i*/+(/*i*/0===e[111]?"First":""),e[111],/*roulleteresults*/e[13][/*i*/e[111]],/*colorsourcearray*/e[32][/*roulleteresults*/e[13][/*i*/e[111]]])+"")&&t.p(r)},d(e){e&&m(n),e&&t.d()}}}
|
|
1269
1269
|
// (640:18) {#if isdouble}
|
|
1270
|
-
function Wr(e){let t,n,r,i,a,
|
|
1270
|
+
function Wr(e){let t,n,r,i,a,s=/*renderSpan*/e[47]("LatestResult "+(/*i*/0===e[111]?"First":""),`first${/*i*/e[111]}${/*roulleteresults*/e[13][/*i*/e[111]][0]}`/*roulleteresults*/,e[13][/*i*/e[111]][0],/*colorsourcearray*/e[32][/*roulleteresults*/e[13][/*i*/e[111]][0]])+"",o=/*renderSpan*/e[47]("LatestResult "+(/*i*/0===e[111]?"First":""),`second${/*i*/e[111]}${/*roulleteresults*/e[13][/*i*/e[111]][1]}`/*roulleteresults*/,e[13][/*i*/e[111]][1],/*colorsourcearray*/e[32][/*roulleteresults*/e[13][/*i*/e[111]][1]])+"";return{c(){t=p("div"),n=new E(!1),r=v(),i=new E(!1),a=v(),n.a=r,i.a=a,_(t,"class","Double"),_(t,"part","Double")},m(e,l){d(e,t,l),n.m(s,t),h(t,r),i.m(o,t),h(t,a)},p(e,t){/*roulleteresults*/8192&t[0]|/*colorsourcearray*/2&t[1]&&s!==(s=/*renderSpan*/e[47]("LatestResult "+(/*i*/0===e[111]?"First":""),`first${/*i*/e[111]}${/*roulleteresults*/e[13][/*i*/e[111]][0]}`/*roulleteresults*/,e[13][/*i*/e[111]][0],/*colorsourcearray*/e[32][/*roulleteresults*/e[13][/*i*/e[111]][0]])+"")&&n.p(s),/*roulleteresults*/8192&t[0]|/*colorsourcearray*/2&t[1]&&o!==(o=/*renderSpan*/e[47]("LatestResult "+(/*i*/0===e[111]?"First":""),`second${/*i*/e[111]}${/*roulleteresults*/e[13][/*i*/e[111]][1]}`/*roulleteresults*/,e[13][/*i*/e[111]][1],/*colorsourcearray*/e[32][/*roulleteresults*/e[13][/*i*/e[111]][1]])+"")&&i.p(o)},d(e){e&&m(t)}}}
|
|
1271
1271
|
// (638:14) {#each new Array(numberofdisplayedresults) as garbage, i}
|
|
1272
1272
|
function Vr(e){let t,n=/*roulleteresults*/e[13]&&/*roulleteresults*/e[13][/*i*/e[111]]&&jr(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),d(e,t,r)},p(e,r){/*roulleteresults*/e[13]&&/*roulleteresults*/e[13][/*i*/e[111]]?n?n.p(e,r):(n=jr(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&m(t)}}}
|
|
1273
1273
|
// (621:14) {:else}
|
|
1274
|
-
function Zr(e){let t,n=/*seats*/e[25],r=[];for(let t=0;t<n.length;t+=1)r[t]=Xr(Fr(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=b()},m(e,n){for(let t=0;t<r.length;t+=1)r[t].m(e,n);d(e,t,n)},p(e,i){if(/*currentoccupiedseats, seats*/570425344&i[0]|/*contains*/8192&i[1]){let a;for(n=/*seats*/e[25],a=0;a<n.length;a+=1){const
|
|
1274
|
+
function Zr(e){let t,n=/*seats*/e[25],r=[];for(let t=0;t<n.length;t+=1)r[t]=Xr(Fr(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=b()},m(e,n){for(let t=0;t<r.length;t+=1)r[t].m(e,n);d(e,t,n)},p(e,i){if(/*currentoccupiedseats, seats*/570425344&i[0]|/*contains*/8192&i[1]){let a;for(n=/*seats*/e[25],a=0;a<n.length;a+=1){const s=Fr(e,n,a);r[a]?r[a].p(s,i):(r[a]=Xr(s),r[a].c(),r[a].m(t.parentNode,t))}for(;a<r.length;a+=1)r[a].d(1);r.length=n.length}},d(e){f(r,e),e&&m(t)}}}
|
|
1275
1275
|
// (617:14) {#if istablefull}
|
|
1276
1276
|
function Kr(e){let t,n,r=/*$_*/e[36]("gameThumbnail.full")+"";return{c(){t=p("span"),n=y(r),_(t,"class","FullTable"),_(t,"part","FullTable")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/32&t[1]&&r!==(r=/*$_*/e[36]("gameThumbnail.full")+"")&&x(n,r)},d(e){e&&m(t)}}}
|
|
1277
1277
|
// (622:16) {#each seats as seatData}
|
|
1278
|
-
function Xr(e){let t,n,r,i,a,o
|
|
1278
|
+
function Xr(e){let t,n,r,i,a,s,o;return{c(){t=p("span"),n=g("svg"),r=g("path"),i=g("path"),a=v(),_(r,"d","M11.58 6c-1.17 0-2.13.95-2.13 2.12v.4a8.82 8.82 0 00-2.92-.4c-1.54 0-2.45.22-2.92.4v-.4A2.136 2.136 0 001.48 6a1.33 1.33 0 00-.5 2.55c.14.07.24.21.24.37l.26 1.06c0 .96.73 1.75 1.65 1.85a.65.65 0 00.28 1.23.65.65 0 00.3-1.22h5.64a.65.65 0 00.3 1.22.65.65 0 00.28-1.23c.93-.1 1.65-.9 1.65-1.85l.27-1.06c0-.16.1-.3.24-.37A1.33 1.33 0 0011.58 6z"),_(i,"d","M4.34 7.5c.55-.1 1.27-.17 2.2-.17.91 0 1.63.07 2.18.17.21-.96.9-1.74 1.8-2.1V4a3.99 3.99 0 00-7.97 0v1.4c.9.36 1.58 1.14 1.79 2.1z"),_(n,"xmlns","http://www.w3.org/2000/svg"),_(n,"width","13"),_(n,"height","14"),_(n,"viewBox","0 0 13 14"),_(t,"class",s=/*contains*/e[44](/*currentoccupiedseats*/e[29],/*seatData*/e[106].toString())?"ClosedSeat":"OpenSeat"),_(t,"part",o=/*contains*/e[44](/*currentoccupiedseats*/e[29],/*seatData*/e[106].toString())?"ClosedSeat":"OpenSeat")},m(e,s){d(e,t,s),h(t,n),h(n,r),h(n,i),h(t,a)},p(e,n){/*currentoccupiedseats, seats*/570425344&n[0]&&s!==(s=/*contains*/e[44](/*currentoccupiedseats*/e[29],/*seatData*/e[106].toString())?"ClosedSeat":"OpenSeat")&&_(t,"class",s),/*currentoccupiedseats, seats*/570425344&n[0]&&o!==(o=/*contains*/e[44](/*currentoccupiedseats*/e[29],/*seatData*/e[106].toString())?"ClosedSeat":"OpenSeat")&&_(t,"part",o)},d(e){e&&m(t)}}}
|
|
1279
1279
|
// (658:2) {#if showgamename}
|
|
1280
|
-
function
|
|
1281
|
-
return 32773&t[0]&&(F=null),/*gamefavorite, isLoggedIn, favorites*/32773&t[0]&&(
|
|
1282
|
-
/*img_binding*/t[66](a),h(i,u),h(i,f),h(f,g),W&&W.m(g,null),h(g,b),h(g,S),h(S,T),h(g,E),V&&V.m(g,null),h(f,C),h(f,L),h(L,k),h(i,I),X&&X.m(i,null),h(i
|
|
1283
|
-
/*div4_binding*/,t[71](n),Y||(j=[w(i,"mouseenter",/*gameHover*/t[42]),w(i,"mouseleave",/*gameBlur*/t[43]),w(i,"touchstart",/*gameTouch*/t[40],{passive:!0}),w(i,"touchend",/*gameTouchEnd*/t[41],{passive:!0})],Y=!0)},p(e,t){/*gamethumbnail*/8&t[0]&&!l(a.src,
|
|
1284
|
-
/*img_binding*/,t[66](null),W&&W.d(),V&&V.d(),X&&X.d(),
|
|
1285
|
-
/*div4_binding*/,t[71](null),Y=!1,r(j)}}}const Qr="blackjack",ei="roulette",ti="doubleballroulette",ni=5;function ri(e,t,n){let r;u(e,wr,(e=>n(36,r=e)));let i,a,o,
|
|
1280
|
+
function qr(e){let t,n;return{c(){t=p("p"),n=y(/*gamename*/e[4]),_(t,"class","GameNameBelow"),_(t,"part","GameNameBelow"),_(t,"title",/*gamename*/e[4])},m(e,r){d(e,t,r),h(t,n)},p(e,r){/*gamename*/16&r[0]&&x(n,/*gamename*/e[4]),/*gamename*/16&r[0]&&_(t,"title",/*gamename*/e[4])},d(e){e&&m(t)}}}function Jr(t){let n,i,a,s,o,c,u,f,g,b,S,T,E,G,M,C,L,k,I,F,$,D,O,P,N,A,R,H,B,U,Y,j,z=/*gamevendor*/(t[5]?/*gamevendor*/t[5]:"-")+"",W=/*fav*/t[16]&&$r(t),V=/*lang*/t[1]&&Or(t);function Z(e,t){/*gamefavorite, isLoggedIn, favorites*/
|
|
1281
|
+
return 32773&t[0]&&(F=null),/*gamefavorite, isLoggedIn, favorites*/32773&t[0]&&($=null),null==F&&(F=!(_r(/*userAgent*/e[37])||/*gamefavorite*/!e[0]||/*isLoggedIn*/!e[15]||/*favorites*/!e[2])),F?Nr:(null==$&&($=!!(_r(/*userAgent*/e[37])&&/*gamefavorite*/e[0]&&/*isLoggedIn*/e[15]&&/*favorites*/e[2])),$?Pr:void 0)}let K=Z(t,[-1,-1,-1,-1]),X=K&&K(t),q=/*gameisnew*/t[7]&&Ar(t),J=/*gametag*/t[8]&&Rr(t),Q=/*livegamedata*/t[12]&&Hr(t),ee=/*showgamename*/t[10]&&qr(t);return{c(){n=p("div"),i=p("div"),a=p("img"),u=v(),f=p("div"),g=p("div"),W&&W.c(),b=v(),S=p("p"),T=y(/*gamename*/t[4]),E=v(),V&&V.c(),C=v(),L=p("span"),k=y(z),I=v(),X&&X.c(),D=v(),O=p("div"),q&&q.c(),P=v(),J&&J.c(),N=v(),Q&&Q.c(),H=v(),ee&&ee.c(),this.c=e,l(a.src,s=/*gamethumbnail*/t[3])||_(a,"src",s),_(a,"class",o=`GameBg GameBg-${/*gamecellsize*/t[9]} ${/*hover*/t[17]?"GameContainerHovered":""} ${/*loaded*/t[18]?"Loaded":""}`),_(a,"part",c="GameBg "+(/*hover*/t[17]?"GameContainerHovered":"")+" "+(/*loaded*/t[18]?"Loaded":"")),_(a,"alt",""),_(a,"loading","lazy"),_(S,"class","GameInfoName"),_(S,"part","GameInfoName"),_(S,"title",/*gamename*/t[4]),_(g,"class",G="GameInfo "+(/*hover*/t[17]?"GameHovered":"")),_(g,"part",M="GameInfo "+(/*hover*/t[17]?"GameHovered":"")),_(L,"class","GameInfoVendor"),_(L,"part","GameInfoVendor"),_(f,"class","GameInfoWrapper"),_(f,"part","GameInfoWrapper"),_(O,"class","GameExtraInfo"),_(O,"part","GameExtraInfo"),_(i,"class",A="GameInnerContainer "+(/*livegamedata*/t[12]&&!/*isopen*/t[23]&&/*openhours*/t[24].value||/*livegamedata*/t[12]&&/*istablefull*/t[33]?"GameInnerContainerUnavailable":"")),_(i,"part",R="GameInnerContainer "+(/*livegamedata*/t[12]&&!/*isopen*/t[23]||/*livegamedata*/t[12]&&/*istablefull*/t[33]?"GameInnerContainerUnavailable":"")),_(n,"class",B=`GameContainer ${/*extraclassname*/t[34]}`),_(n,"part",U=`GameContainer ${/*extraclassname*/t[34]}`)},m(e,r){d(e,n,r),h(n,i),h(i,a),
|
|
1282
|
+
/*img_binding*/t[66](a),h(i,u),h(i,f),h(f,g),W&&W.m(g,null),h(g,b),h(g,S),h(S,T),h(g,E),V&&V.m(g,null),h(f,C),h(f,L),h(L,k),h(i,I),X&&X.m(i,null),h(i,D),h(i,O),q&&q.m(O,null),h(O,P),J&&J.m(O,null),h(O,N),Q&&Q.m(O,null),h(n,H),ee&&ee.m(n,null)
|
|
1283
|
+
/*div4_binding*/,t[71](n),Y||(j=[w(i,"mouseenter",/*gameHover*/t[42]),w(i,"mouseleave",/*gameBlur*/t[43]),w(i,"touchstart",/*gameTouch*/t[40],{passive:!0}),w(i,"touchend",/*gameTouchEnd*/t[41],{passive:!0})],Y=!0)},p(e,t){/*gamethumbnail*/8&t[0]&&!l(a.src,s=/*gamethumbnail*/e[3])&&_(a,"src",s),/*gamecellsize, hover, loaded*/393728&t[0]&&o!==(o=`GameBg GameBg-${/*gamecellsize*/e[9]} ${/*hover*/e[17]?"GameContainerHovered":""} ${/*loaded*/e[18]?"Loaded":""}`)&&_(a,"class",o),/*hover, loaded*/393216&t[0]&&c!==(c="GameBg "+(/*hover*/e[17]?"GameContainerHovered":"")+" "+(/*loaded*/e[18]?"Loaded":""))&&_(a,"part",c),/*fav*/e[16]?W?W.p(e,t):(W=$r(e),W.c(),W.m(g,b)):W&&(W.d(1),W=null),/*gamename*/16&t[0]&&x(T,/*gamename*/e[4]),/*gamename*/16&t[0]&&_(S,"title",/*gamename*/e[4]),/*lang*/e[1]?V?V.p(e,t):(V=Or(e),V.c(),V.m(g,null)):V&&(V.d(1),V=null),/*hover*/131072&t[0]&&G!==(G="GameInfo "+(/*hover*/e[17]?"GameHovered":""))&&_(g,"class",G),/*hover*/131072&t[0]&&M!==(M="GameInfo "+(/*hover*/e[17]?"GameHovered":""))&&_(g,"part",M),/*gamevendor*/32&t[0]&&z!==(z=/*gamevendor*/(e[5]?/*gamevendor*/e[5]:"-")+"")&&x(k,z),K===(K=Z(e,t))&&X?X.p(e,t):(X&&X.d(1),X=K&&K(e),X&&(X.c(),X.m(i,D))),/*gameisnew*/e[7]?q?q.p(e,t):(q=Ar(e),q.c(),q.m(O,P)):q&&(q.d(1),q=null),/*gametag*/e[8]?J?J.p(e,t):(J=Rr(e),J.c(),J.m(O,N)):J&&(J.d(1),J=null),/*livegamedata*/e[12]?Q?Q.p(e,t):(Q=Hr(e),Q.c(),Q.m(O,null)):Q&&(Q.d(1),Q=null),/*livegamedata, isopen, openhours*/25169920&t[0]|/*istablefull*/4&t[1]&&A!==(A="GameInnerContainer "+(/*livegamedata*/e[12]&&!/*isopen*/e[23]&&/*openhours*/e[24].value||/*livegamedata*/e[12]&&/*istablefull*/e[33]?"GameInnerContainerUnavailable":""))&&_(i,"class",A),/*livegamedata, isopen*/8392704&t[0]|/*istablefull*/4&t[1]&&R!==(R="GameInnerContainer "+(/*livegamedata*/e[12]&&!/*isopen*/e[23]||/*livegamedata*/e[12]&&/*istablefull*/e[33]?"GameInnerContainerUnavailable":""))&&_(i,"part",R),/*showgamename*/e[10]?ee?ee.p(e,t):(ee=qr(e),ee.c(),ee.m(n,null)):ee&&(ee.d(1),ee=null),/*extraclassname*/8&t[1]&&B!==(B=`GameContainer ${/*extraclassname*/e[34]}`)&&_(n,"class",B),/*extraclassname*/8&t[1]&&U!==(U=`GameContainer ${/*extraclassname*/e[34]}`)&&_(n,"part",U)},i:e,o:e,d(e){e&&m(n)
|
|
1284
|
+
/*img_binding*/,t[66](null),W&&W.d(),V&&V.d(),X&&X.d(),q&&q.d(),J&&J.d(),Q&&Q.d(),ee&&ee.d()
|
|
1285
|
+
/*div4_binding*/,t[71](null),Y=!1,r(j)}}}const Qr="blackjack",ei="roulette",ti="doubleballroulette",ni=5;function ri(e,t,n){let r;u(e,wr,(e=>n(36,r=e)));let i,a,s,o,l,c,h,d,m,f,p,g,y,v,b,w,_,S,x,T,E,G,M,L,I,{session:F=""}=t,{userid:$=""}=t,{lang:D="en"}=t,{clientstyling:O=""}=t,{clientstylingurl:N=""}=t,{translationurl:A=""}=t,{favorites:R=""}=t,{gamethumbnail:H=""}=t,{gamename:B=""}=t,{gamevendor:U=""}=t,{gameid:Y=""}=t,{gameisnew:j=""}=t,{gametag:z=""}=t,{gamefunmode:W=!1}=t,{searchitem:V=!1}=t,{gamefavorite:Z=!1}=t,{gamecellsize:K=""}=t,{showfavoredcategory:X=!1}=t,{showgamename:q=!1}=t,{currency:J=""}=t,{gamepagemodalurl:Q="false"}=t,{endpoint:ee=""}=t,{livelobbyendpoint:te=""}=t,{connectlive:ne=""}=t,{visibilityconnect:re=""}=t,{integratedgameframedesktop:ie="false"}=t,{integratedgameframemobile:ae="false"}=t,se=!1,oe=!1,le=!1,ce=window.navigator.userAgent,ue="HH:mm",he={},de=[],me="EUR",fe="";const pe=[Qr],ge=[ei,ti],ye={"01":"Yellow","02":"Blue",10:"Green",40:"Red","05":"Purple",20:"Orange",X7:"Gold",X2:"Gold"},ve={1:"Red",3:"Red",5:"Red",7:"Red",9:"Red",12:"Red",14:"Red",16:"Red",18:"Red",19:"Red",21:"Red",23:"Red",25:"Red",27:"Red",30:"Red",32:"Red",34:"Red",36:"Red",2:"Black",4:"Black",6:"Black",8:"Black",10:"Black",11:"Black",13:"Black",15:"Black",17:"Black",20:"Black",22:"Black",24:"Black",26:"Black",28:"Black",29:"Black",31:"Black",33:"Black",35:"Black",0:"Green","00":"Green"};Object.keys(Lr).forEach((e=>{Cr(e,Lr[e])}));const be=e=>{e.data.type!==`AddFavoriteThumbnail_${Y}`||X||n(0,Z=!0),e.data.type!==`RemoveFavoriteThumbnail_${Y}`||X||n(0,Z=!1),"UserSessionID"===e.data.type&&(n(15,se=!0),e.data.session,i=e.data.userID),"CategoryUpdate"===e.data.type&&n(12,o=null)},we=e=>{window.postMessage({type:"SearchedItemClicked",gameId:e},window.location.href),
|
|
1286
1286
|
//Analytics event -- if game was searched
|
|
1287
|
-
"function"==typeof gtag&>ag("event","OpenGame",{context:"GameThumbnail--Searched",gameId:`${e}`,userId:`${i||"Not logged in"}`}),_r(ce)&&"true"==ae?window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:W,gamepagemodalurl:Q,isMobile:_r(ce),source:"GameThumbnail"},window.location.href):_r(ce)&&"false"==ae&&window.postMessage({type:"ShowGameModal",gameId:e,isMobile:_r(ce)},window.location.href),_r(ce)||"true"!=ie?_r(ce)||"false"!=ie||window.postMessage({type:"ShowGameModal",gameId:e,isMobile:_r(ce)},window.location.href):window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:W,gamepagemodalurl:Q,isMobile:_r(ce)},window.location.href)},_e=e=>{let t="thumbnail";Z?window.postMessage({type:"SetUnfavoredGame",id:e,triggerFactor:t},window.location.href):window.postMessage({type:"SetFavoredGame",id:e,triggerFactor:t},window.location.href)},Se=()=>{var e;e
|
|
1287
|
+
"function"==typeof gtag&>ag("event","OpenGame",{context:"GameThumbnail--Searched",gameId:`${e}`,userId:`${i||"Not logged in"}`}),_r(ce)&&"true"==ae?window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:W,gamepagemodalurl:Q,isMobile:_r(ce),source:"GameThumbnail"},window.location.href):_r(ce)&&"false"==ae&&window.postMessage({type:"ShowGameModal",gameId:e,isMobile:_r(ce)},window.location.href),_r(ce)||"true"!=ie?_r(ce)||"false"!=ie||window.postMessage({type:"ShowGameModal",gameId:e,isMobile:_r(ce)},window.location.href):window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:W,gamepagemodalurl:Q,isMobile:_r(ce)},window.location.href)},_e=e=>{let t="thumbnail";Z?window.postMessage({type:"SetUnfavoredGame",id:e,triggerFactor:t},window.location.href):window.postMessage({type:"SetFavoredGame",id:e,triggerFactor:t},window.location.href)},Se=()=>{var e;e=D,lr.set(e)},xe=()=>{te&&EventSource&&!l&&U&&Y&&(l=new EventSource(`${ee}/encoder/lobby/updates/${U}/${Y}`),l.addEventListener("message",Ee))},Te=()=>{l&&(l.close(),l=void 0)},Ee=async e=>{const{type:t,data:r}=e;let i;if("message"===t){if(r)try{i=JSON.parse(r)}catch(e){
|
|
1288
1288
|
// eslint-disable-next-line no-console
|
|
1289
1289
|
console.error("MESSAGE PARSING ERROR: ",e)}if(i){const{InternalTableId:e,MessageType:t,Results:// TakenSeats,
|
|
1290
1290
|
r,Seats:// Roads, // for baccarat
|
|
1291
|
-
a,Open:
|
|
1291
|
+
a,Open:s}=i;if(e)switch(t){case"SeatsUpdated":a&&Array.isArray(a)&&(n(29,y=a),n(12,o.currentOccupiedSeats=a,o),await P());break;case"RouletteResultsUpdated":r&&Array.isArray(r)&&(v=r,n(12,o.currentRouletteNumbers=r,o),await P());break;case"DoubleBallRouletteResultsUpdated":r&&Array.isArray(r)&&(b=r,n(12,o.currentDoubleBallRouletteNumbers=r,o),await P());break;case"TableOpened":case"TableClosed":n(23,d=s),n(12,o.isOpen=s,o),await P()}// default case
|
|
1292
1292
|
}}// default case
|
|
1293
|
-
},Ge=(e,t=",")=>null!=e?`${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,t):"",Me=(e,t)=>e.some((e=>e===t)),Ce=()=>{if(
|
|
1293
|
+
},Ge=(e,t=",")=>null!=e?`${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,t):"",Me=(e,t)=>e.some((e=>e===t)),Ce=()=>{if(o){if(n(23,d=o.isOpen),he=o.betLimit||{},n(24,m=o.openHours),n(25,de=(e=>{g=e.totalSeats||7,n(29,y=e.currentOccupiedSeats||[]);const t=[];for(let e=1;e<=g;e++)t.push(e);return{seats:t}})(o).seats),m&&m.value){const{value:{startTime:e,originalTimeFormat:t}}=m;/* , timeFormat: timeFormatRaw */n(21,h=e),n(22,ue=t||ue)}d&&n(20,c=(e=>{let t=null;if(e){const{vendorCategory:n}=e;if(n){const e=n.toLowerCase();Me(pe,e)?t=Qr:Me(ge,e)&&(t=ei)}// else if (contains(baccaratCategory, gameTypeToLower)) {
|
|
1294
1294
|
// GameComponent = 'baccarat';
|
|
1295
1295
|
}// } else if (contains(otherLiveGamesCategory, gameTypeToLower)) {
|
|
1296
1296
|
// GameComponent = 'poker';
|
|
1297
1297
|
// }
|
|
1298
|
-
return t})(
|
|
1298
|
+
return t})(o)),n(26,me=kr[J]),n(27,f=(he.min||{})[J]),n(28,p=(he.max||{})[J]),v=o.currentRouletteNumbers,b=o.currentDoubleBallRouletteNumbers,w=o.vendorCategory,n(30,_=w.toLowerCase()===ti),n(13,S=(_?b:v)||[]),n(31,x="GameProp LiveProps RoulleteProps"),n(31,x+=_?" Double":""),n(32,T=Me(ge,w.toLowerCase())?ve:ye),G=E,n(33,E=Array.isArray(y)&&y.length===g),o.dealer&&n(35,L=o.dealer.DealerName),I=o.numberOfPlayers,n(34,fe="ListGame"),o.isOpen&&o.currentRouletteNumbers&&n(34,fe+=" GameBackdrop"),d&&E&&f&&p&&o.currentOccupiedSeats?n(34,fe+=" GameContainerDimmed"):!1===d&&h&&n(34,fe+=" GameContainerFullyDimmed"),s&&(!G&&E?(n(34,fe+=" PulsatingRedShadow"),n(34,fe=fe.replace(" PulsatingGreenShadow",""))):G&&!E&&(n(34,fe+=" PulsatingGreenShadow"),n(34,fe=fe.replace(" PulsatingRedShadow",""))))}},Le=()=>{let e=new URL(N),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1)}))};C((()=>(window.addEventListener("message",be,!1),()=>{window.removeEventListener("message",be),l&&l.removeEventListener("message",Ee)})));return e.$$set=e=>{"session"in e&&n(48,F=e.session),"userid"in e&&n(49,$=e.userid),"lang"in e&&n(1,D=e.lang),"clientstyling"in e&&n(50,O=e.clientstyling),"clientstylingurl"in e&&n(51,N=e.clientstylingurl),"translationurl"in e&&n(52,A=e.translationurl),"favorites"in e&&n(2,R=e.favorites),"gamethumbnail"in e&&n(3,H=e.gamethumbnail),"gamename"in e&&n(4,B=e.gamename),"gamevendor"in e&&n(5,U=e.gamevendor),"gameid"in e&&n(6,Y=e.gameid),"gameisnew"in e&&n(7,j=e.gameisnew),"gametag"in e&&n(8,z=e.gametag),"gamefunmode"in e&&n(53,W=e.gamefunmode),"searchitem"in e&&n(54,V=e.searchitem),"gamefavorite"in e&&n(0,Z=e.gamefavorite),"gamecellsize"in e&&n(9,K=e.gamecellsize),"showfavoredcategory"in e&&n(55,X=e.showfavoredcategory),"showgamename"in e&&n(10,q=e.showgamename),"currency"in e&&n(56,J=e.currency),"gamepagemodalurl"in e&&n(57,Q=e.gamepagemodalurl),"endpoint"in e&&n(58,ee=e.endpoint),"livelobbyendpoint"in e&&n(59,te=e.livelobbyendpoint),"connectlive"in e&&n(60,ne=e.connectlive),"visibilityconnect"in e&&n(61,re=e.visibilityconnect),"integratedgameframedesktop"in e&&n(62,ie=e.integratedgameframedesktop),"integratedgameframemobile"in e&&n(63,ae=e.integratedgameframemobile)},e.$$.update=()=>{/*connectlive*/536870912&e.$$.dirty[1]&&ne&&("disconnect"===ne?Te():"connect"===ne&&xe()),/*visibilityconnect*/1073741824&e.$$.dirty[1]&&re&&("disconnect"===re?Te():"connect"===re&&"connect"===ne&&xe()),/*lang*/2&e.$$.dirty[0]&&D&&Se(),/*session, userid, endpoint*/134610944&e.$$.dirty[1]&&F&&$&&ee&&(n(15,se=!0),i=$),/*gamethumbnail*/8&e.$$.dirty[0]&&H&&a&&n(19,a.onload=()=>{n(18,le=!0)},a),/*customStylingContainer*/2048&e.$$.dirty[0]|/*clientstyling*/524288&e.$$.dirty[1]&&O&&s&&(()=>{let e=document.createElement("style");e.innerHTML=O,s.appendChild(e)})(),/*customStylingContainer*/2048&e.$$.dirty[0]|/*clientstylingurl*/1048576&e.$$.dirty[1]&&N&&s&&Le(),/*favorites*/4&e.$$.dirty[0]&&R&&"true"==R&&n(16,oe=!0),/*translationurl*/2097152&e.$$.dirty[1]&&A&&fetch(A).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Cr(t,e[t])}))})).catch((e=>{console.log(e)})),/*gamecellsize*/512&e.$$.dirty[0]|/*clientstylingurl*/1048576&e.$$.dirty[1]&&K&&N&&Le(),/*endpoint, livelobbyendpoint*/402653184&e.$$.dirty[1]&&ee&&te&&(()=>{let e=new URL(`${te.split("?")[0]}`);e.searchParams.append("platform",Sr(ce)),e.searchParams.append("language",D),
|
|
1299
1299
|
// let url:URL = new URL(`${endpoint}${livelobbyendpoint}`);
|
|
1300
|
-
fetch(e).then((e=>e.json())).then((e=>{const{details:t}=e[0];n(12,
|
|
1300
|
+
fetch(e).then((e=>e.json())).then((e=>{const{details:t}=e[0];n(12,o=t)}))})(),/*livegamedata*/4096&e.$$.dirty[0]&&o&&Ce(),/*roulletteref, roulleteresults*/24576&e.$$.dirty[0]&&M&&S&&(()=>{const e="FirstElementAnimated",t=M.getElementsByClassName("First")[0];t&&(t.classList.add(e),setTimeout((()=>{t.classList.remove(e)}),2e3))})()},[Z,D,R,H,B,U,Y,j,z,K,q,s,o,S,M,se,oe,!1,le,a,c,h,ue,d,m,de,me,f,p,y,_,x,T,E,fe,L,r,ce,we,_e,()=>{window.postMessage({type:"GameHoveredMobile"},window.location.href)},()=>{window.postMessage({type:"GameBlurMobile"},window.location.href)},()=>{window.postMessage({type:"GameHoveredPc"},window.location.href)},()=>{window.postMessage({type:"GameBlurPc"},window.location.href)},Me,(e,t,n)=>{let r,i;return null!=e&&null!=t&&(i=`\n <span>\n ${n}\n </span>\n ${Ge(e)}-${Ge(t)}`),I&&(r=`\n <svg fill="white" width="13" height="13" viewBox="0 0 13 14" xmlns="http://www.w3.org/2000/svg"><path d="M4 8.2a4.6 4.6 0 0 0 5 0c2.7.8 4 2.6 4 4.8H0c0-2.2 1.3-4 4-4.8zM6.6 8c2 0 3.8-1.7 3.8-4 0-2.1-1.7-4-3.8-4a3.9 3.9 0 0 0-3.8 4c0 2.2 1.7 4 3.8 4z"/></svg>\n <span class="NrOfPlayers">${I}</span>`),r||i?`\n <p class="LiveLimits">\n <span class="BetLimitLeft">\n ${i||""}\n </span>\n <span class="BetLimitRight">\n ${r||""}\n </span>\n </p>`:""},e=>e?`\n <p class="LiveLimits">\n <span class="DealerName">${r("gameThumbnail.dealer")}: ${e}</span>\n </p>\n `:"",(e,t,n,r="")=>{const i=`${e} ${r}`,a=t.toString().match(/first0|second0|0/g);return 0===t||a&&0!==a.length?`\n <span\n id=${t}\n class="${i}"\n >\n ${n}\n </span>\n `:`\n <span id=${t} class="${i}">\n ${n}\n </span>\n `},F,$,O,N,A,W,V,X,J,Q,ee,te,ne,re,ie,ae,ye,ve,function(e){k[e?"unshift":"push"]((()=>{a=e,n(19,a)}))},()=>_e(Y),()=>we(Y),()=>_e(Y),function(e){k[e?"unshift":"push"]((()=>{M=e,n(14,M)}))},function(e){k[e?"unshift":"push"]((()=>{s=e,n(11,s)}))}]}
|
|
1301
1301
|
/* ../casino-games-category-section/src/CasinoGamesCategorySection.svelte generated by Svelte v3.48.0 */
|
|
1302
|
-
function ii(e,t,n){const r=e.slice();return r[77]=t[n],r[79]=n,r}function ai(e,t,n){const r=e.slice();return r[77]=t[n],r[80]=t,r[79]=n,r}function
|
|
1302
|
+
function ii(e,t,n){const r=e.slice();return r[77]=t[n],r[79]=n,r}function ai(e,t,n){const r=e.slice();return r[77]=t[n],r[80]=t,r[79]=n,r}function si(e,t,n){const r=e.slice();return r[77]=t[n],r[79]=n,r}
|
|
1303
1303
|
// (589:4) {:else}
|
|
1304
|
-
function
|
|
1304
|
+
function oi(e){let t;function n(e,t){/*categoryData*/
|
|
1305
1305
|
return e[17]?hi:/*showFavGamesCategory*/e[27]?ui:void 0}let r=n(e),i=r&&r(e);return{c(){t=p("div"),i&&i.c()},m(e,n){d(e,t,n),i&&i.m(t,null)},p(e,a){r===(r=n(e))&&i?i.p(e,a):(i&&i.d(1),i=r&&r(e),i&&(i.c(),i.m(t,null)))},d(e){e&&m(t),i&&i.d()}}}
|
|
1306
1306
|
// (531:4) {#if searched}
|
|
1307
1307
|
function li(e){let t,n,r;function i(e,t){/*recentSearched*/
|
|
1308
|
-
return e[21]
|
|
1309
|
-
return e[18]?Oi
|
|
1308
|
+
return e[21]?$i:/*shownCategoryData*/e[18].length?Ii:Fi}let a=i(e),s=a(e);function o(e,t){/*shownCategoryData*/
|
|
1309
|
+
return e[18]?Oi:Di}let l=o(e),c=l(e);return{c(){t=p("div"),n=p("div"),s.c(),r=v(),c.c(),_(n,"class","CasinoGamesHeader Searched "+(_r(/*userAgent*/e[32])?"CasinoGamesHeaderMobile":"")),_(n,"part","CasinoGamesHeader Searched "+(_r(/*userAgent*/e[32])?"CasinoGamesHeaderMobile":"")),_(t,"class","CasinoGamesContainer"),_(t,"part","CasinoGamesContainer")},m(e,i){d(e,t,i),h(t,n),s.m(n,null),h(t,r),c.m(t,null)},p(e,r){a===(a=i(e))&&s?s.p(e,r):(s.d(1),s=a(e),s&&(s.c(),s.m(n,null))),l===(l=o(e))&&c?c.p(e,r):(c.d(1),c=l(e),c&&(c.c(),c.m(t,null)))},d(e){e&&m(t),s.d(),c.d()}}}
|
|
1310
1310
|
// (523:2) {#if hasErrors}
|
|
1311
1311
|
function ci(e){let t;function n(e,t){/*filteresPresent*/
|
|
1312
1312
|
return e[23]?Ri:Ai}let r=n(e),i=r(e);return{c(){i.c(),t=b()},m(e,n){i.m(e,n),d(e,t,n)},p(e,a){r!==(r=n(e))&&(i.d(1),i=r(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&m(t)}}}
|
|
1313
1313
|
// (652:39)
|
|
1314
|
-
function ui(e){let t,n,r,i,a,
|
|
1315
|
-
return e[15]?pi:/*favoriteGamesData*/e[30]?fi:mi}let l=
|
|
1316
|
-
/*ul_binding_1*/e[52](r)},p(e,u){/*casinomygames*/"true"!==e[12]?
|
|
1314
|
+
function ui(e){let t,n,r,i,a,s=/*casinomygames*/"true"!==e[12]&&di(e);function o(e,t){/*isLoading*/
|
|
1315
|
+
return e[15]?pi:/*favoriteGamesData*/e[30]?fi:mi}let l=o(e),c=l(e);return{c(){t=p("div"),s&&s.c(),n=v(),r=p("ul"),c.c(),_(r,"class",i=/*favoriteGamesData*/(0!=e[30].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}"),_(r,"part",a=/*favoriteGamesData*/(0!=e[30].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}"),_(t,"class","CasinoGamesContainer"),_(t,"part","CasinoGamesContainer")},m(i,a){d(i,t,a),s&&s.m(t,null),h(t,n),h(t,r),c.m(r,null),
|
|
1316
|
+
/*ul_binding_1*/e[52](r)},p(e,u){/*casinomygames*/"true"!==e[12]?s?s.p(e,u):(s=di(e),s.c(),s.m(t,n)):s&&(s.d(1),s=null),l===(l=o(e))&&c?c.p(e,u):(c.d(1),c=l(e),c&&(c.c(),c.m(r,null))),/*favoriteGamesData*/1073741824&u[0]&&i!==(i=/*favoriteGamesData*/(0!=e[30].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}")&&_(r,"class",i),/*favoriteGamesData*/1073741824&u[0]&&a!==(a=/*favoriteGamesData*/(0!=e[30].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}")&&_(r,"part",a)},d(n){n&&m(t),s&&s.d(),c.d(),
|
|
1317
1317
|
/*ul_binding_1*/e[52](null)}}}
|
|
1318
1318
|
// (591:8) {#if categoryData}
|
|
1319
1319
|
function hi(e){let t,n,r=/*casinomygames*/"true"!==e[12]&&Ei(e);function i(e,t){/*isLoading*/
|
|
1320
|
-
return e[15]?Li:/*shownCategoryData*/0!==e[18].length?Ci:Mi}let a=i(e),
|
|
1320
|
+
return e[15]?Li:/*shownCategoryData*/0!==e[18].length?Ci:Mi}let a=i(e),s=a(e);return{c(){t=p("div"),r&&r.c(),n=v(),s.c(),_(t,"class","CasinoGamesContainer"),_(t,"part","CasinoGamesContainer")},m(e,i){d(e,t,i),r&&r.m(t,null),h(t,n),s.m(t,null)},p(e,o){/*casinomygames*/"true"!==e[12]?r?r.p(e,o):(r=Ei(e),r.c(),r.m(t,n)):r&&(r.d(1),r=null),a===(a=i(e))&&s?s.p(e,o):(s.d(1),s=a(e),s&&(s.c(),s.m(t,null)))},d(e){e&&m(t),r&&r.d(),s.d()}}}
|
|
1321
1321
|
// (654:14) {#if casinomygames !== 'true'}
|
|
1322
|
-
function di(e){let t,n,r,i,a,o,
|
|
1323
|
-
/*h3_binding_1*/e[51](n)},p(e,t){/*$_*/1&t[1]&&c!==(c=/*$_*/e[31]("gamesCategorySection.favorites")+"")&&x(r,c),/*favoriteGamesData*/1073741824&t[0]&&u!==(u=/*favoriteGamesData*/e[30].items.length+"")&&x(
|
|
1322
|
+
function di(e){let t,n,r,i,a,s,o,l,c=/*$_*/e[31]("gamesCategorySection.favorites")+"",u=/*favoriteGamesData*/e[30].items.length+"";return{c(){t=p("div"),n=p("h3"),r=y(c),i=v(),a=p("span"),s=y("("),o=y(u),l=y(")"),_(a,"class","CategoryFavName"),_(n,"class","CategoryName"),_(n,"part","CategoryName"),_(t,"class","CasinoGamesHeader"),_(t,"part","CasinoGamesHeader")},m(c,u){d(c,t,u),h(t,n),h(n,r),h(n,i),h(n,a),h(a,s),h(a,o),h(a,l),
|
|
1323
|
+
/*h3_binding_1*/e[51](n)},p(e,t){/*$_*/1&t[1]&&c!==(c=/*$_*/e[31]("gamesCategorySection.favorites")+"")&&x(r,c),/*favoriteGamesData*/1073741824&t[0]&&u!==(u=/*favoriteGamesData*/e[30].items.length+"")&&x(o,u)},d(n){n&&m(t)
|
|
1324
1324
|
/*h3_binding_1*/,e[51](null)}}}
|
|
1325
1325
|
// (758:18) {:else}
|
|
1326
1326
|
function mi(e){let t,n,r=/*$_*/e[31]("gamesCategorySection.waiting")+"";return{c(){t=p("p"),n=y(r)},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/1&t[1]&&r!==(r=/*$_*/e[31]("gamesCategorySection.waiting")+"")&&x(n,r)},d(e){e&&m(t)}}}
|
|
1327
1327
|
// (667:18) {#if favoriteGamesData}
|
|
1328
|
-
function fi(e){let t,n=/*favoriteGamesData*/e[30].items,r=[];for(let t=0;t<n.length;t+=1)r[t]=Ti(ii(e,n,t));let i=null;return n.length||(i=gi(e)),{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=b(),i&&i.c()},m(e,n){for(let t=0;t<r.length;t+=1)r[t].m(e,n);d(e,t,n),i&&i.m(e,n)},p(e,a){if(/*favoriteGamesData, session, userid, lang, favorites, showFavGamesCategory, intersectingIndexes, visibilityconnect, currency, clientstyling, clientstylingurl, endpoint, livecasino, gamepagemodalurl, integratedgameframedesktop, integratedgameframemobile*/2013270015&a[0]|/*addGameTag, userAgent, $_*/7&a[1]){let
|
|
1328
|
+
function fi(e){let t,n=/*favoriteGamesData*/e[30].items,r=[];for(let t=0;t<n.length;t+=1)r[t]=Ti(ii(e,n,t));let i=null;return n.length||(i=gi(e)),{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=b(),i&&i.c()},m(e,n){for(let t=0;t<r.length;t+=1)r[t].m(e,n);d(e,t,n),i&&i.m(e,n)},p(e,a){if(/*favoriteGamesData, session, userid, lang, favorites, showFavGamesCategory, intersectingIndexes, visibilityconnect, currency, clientstyling, clientstylingurl, endpoint, livecasino, gamepagemodalurl, integratedgameframedesktop, integratedgameframemobile*/2013270015&a[0]|/*addGameTag, userAgent, $_*/7&a[1]){let s;for(n=/*favoriteGamesData*/e[30].items,s=0;s<n.length;s+=1){const i=ii(e,n,s);r[s]?r[s].p(i,a):(r[s]=Ti(i),r[s].c(),r[s].m(t.parentNode,t))}for(;s<r.length;s+=1)r[s].d(1);r.length=n.length,!n.length&&i?i.p(e,a):n.length?i&&(i.d(1),i=null):(i=gi(e),i.c(),i.m(t.parentNode,t))}},d(e){f(r,e),e&&m(t),i&&i.d(e)}}}
|
|
1329
1329
|
// (664:16) {#if isLoading}
|
|
1330
1330
|
function pi(t){let n;return{c(){n=p("div"),_(n,"class","lds-dual-ring"),_(n,"part","lds-dual-ring")},m(e,t){d(e,n,t)},p:e,d(e){e&&m(n)}}}
|
|
1331
1331
|
// (738:20) {:else}
|
|
1332
|
-
function gi(e){let t,n,r,i,a,o,
|
|
1332
|
+
function gi(e){let t,n,r,i,a,s,o,l,c,u,f=/*$_*/e[31]("gamesCategorySection.noFavoritesTitle")+"";let b=function(e,t){return _r(/*userAgent*/e[32])?vi:yi}(e),w=b(e);return{c(){t=p("p"),n=g("svg"),r=g("path"),i=v(),a=p("span"),s=y(f),o=v(),w.c(),l=v(),T(r,"fill","white"),_(r,"d","M511.266,197.256c-1.764-5.431-6.458-9.388-12.108-10.209l-158.722-23.065L269.452,20.155\n c-2.527-5.12-7.741-8.361-13.451-8.361c-5.709,0-10.924,3.242-13.451,8.361l-70.988,143.828L12.843,187.047\n c-5.65,0.821-10.344,4.779-12.108,10.209c-1.765,5.43-0.293,11.391,3.795,15.376l114.848,111.955L92.27,482.67\n c-0.965,5.627,1.349,11.315,5.968,14.67c4.618,3.355,10.74,3.798,15.797,1.142L256,423.846l141.961,74.637\n c2.195,1.154,4.591,1.723,6.979,1.723c3.11,0,6.206-0.966,8.818-2.865c4.619-3.356,6.933-9.043,5.968-14.671L392.61,324.587\n l114.86-111.954C511.559,208.647,513.031,202.686,511.266,197.256z M366.023,308.608c-3.536,3.446-5.15,8.412-4.314,13.278\n l23.311,135.898l-122.038-64.162c-4.37-2.297-9.591-2.297-13.961,0l-122.045,64.163l23.304-135.9\n c0.834-4.866-0.779-9.83-4.313-13.276l-98.731-96.244l136.445-19.829c4.886-0.71,9.108-3.778,11.294-8.205L256,60.685\n l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z"),_(n,"version","1.1"),_(n,"class","UnfavoredIcon"),_(n,"part","UnfavoredIcon"),_(n,"xmlns","http://www.w3.org/2000/svg"),_(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),_(n,"x","50px"),_(n,"y","50px"),_(n,"viewBox","0 0 512.001 512.001"),T(n,"enable-background","new 0 0 512.001 512.001"),_(n,"xml:space","preserve"),_(a,"class","NoFavoriteText NoFavoriteTextHighlight"),_(a,"part","NoFavoriteText NoFavoriteTextHighlight"),_(t,"class",c="NoFavoriteGames "+(_r(/*userAgent*/e[32])?"NoFavoriteGamesMobile":"")),_(t,"part",u="NoFavoriteGames "+(_r(/*userAgent*/e[32])?"NoFavoriteGamesMobile":""))},m(e,c){d(e,t,c),h(t,n),h(n,r),h(t,i),h(t,a),h(a,s),h(t,o),w.m(t,null),h(t,l)},p(e,t){/*$_*/1&t[1]&&f!==(f=/*$_*/e[31]("gamesCategorySection.noFavoritesTitle")+"")&&x(s,f),w.p(e,t)},d(e){e&&m(t),w.d()}}}
|
|
1333
1333
|
// (753:24) {:else}
|
|
1334
1334
|
function yi(e){let t,n,r=/*$_*/e[31]("gamesCategorySection.noFavorites")+"";return{c(){t=p("span"),n=y(r),_(t,"class","NoFavoriteText"),_(t,"part","NoFavoriteText")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/1&t[1]&&r!==(r=/*$_*/e[31]("gamesCategorySection.noFavorites")+"")&&x(n,r)},d(e){e&&m(t)}}}
|
|
1335
1335
|
// (751:24) {#if isMobile(userAgent)}
|
|
@@ -1340,88 +1340,88 @@ function bi(e){let t,n=/*gameprops*/e[77].gameModel.isFavorite&&wi(e);return{c()
|
|
|
1340
1340
|
function wi(e){let t,n=
|
|
1341
1341
|
// (671:26) {#if intersecting || nativeLoading}
|
|
1342
1342
|
function(e){let t,n,r;function i(e,r){/*favoriteGamesData*/
|
|
1343
|
-
return 1073741824&r[0]&&(n=null),null==t&&(t=!!_r(/*userAgent*/e[32])),t?Si:(null==n&&(n=!!/*gameprops*/e[77].gameModel.platform.includes("PC")),n?_i:void 0)}let a=i(e,[-1,-1,-1]),
|
|
1343
|
+
return 1073741824&r[0]&&(n=null),null==t&&(t=!!_r(/*userAgent*/e[32])),t?Si:(null==n&&(n=!!/*gameprops*/e[77].gameModel.platform.includes("PC")),n?_i:void 0)}let a=i(e,[-1,-1,-1]),s=a&&a(e);return{c(){s&&s.c(),r=b()},m(e,t){s&&s.m(e,t),d(e,r,t)},p(e,t){a===(a=i(e,t))&&s?s.p(e,t):(s&&s.d(1),s=a&&a(e),s&&(s.c(),s.m(r.parentNode,r)))},d(e){s&&s.d(e),e&&m(r)}}}
|
|
1344
1344
|
// (704:82)
|
|
1345
|
-
(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),d(e,t,r)},p(e,t){n.p(e,t)},d(e){n&&n.d(e),e&&m(t)}}}function _i(e){let t,n,r,i,a,o,
|
|
1345
|
+
(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),d(e,t,r)},p(e,t){n.p(e,t)},d(e){n&&n.d(e),e&&m(t)}}}function _i(e){let t,n,r,i,a,s,o,l,c,u,h,f,g,y;return{c(){t=p("casino-game-thumbnail"),S(t,"class",n=""+(Bi+(/*gameprops*/e[77].cellSize?/*gameprops*/e[77].cellSize:"1x1"))),S(t,"part",r=""+(Bi+(/*gameprops*/e[77].cellSize?/*gameprops*/e[77].cellSize:"1x1"))),S(t,"session",/*session*/e[2]),S(t,"userid",/*userid*/e[3]),S(t,"lang",/*lang*/e[1]),S(t,"favorites",/*favorites*/e[4]),S(t,"gamethumbnail",i=/*gameprops*/e[77].gameModel.thumbnail),S(t,"gamename",a=/*gameprops*/e[77].gameModel.name),S(t,"gamevendor",s=/*gameprops*/e[77].gameModel.vendor.name),S(t,"gameisnew",o=/*gameprops*/e[77].gameModel.isNew),S(t,"gametag",l=/*gameprops*/e[77].gameModel.advancedTags?.length>0&&/*addGameTag*/e[33](/*gameprops*/e[77].advancedTags)),S(t,"gamecellsize",c=/*gameprops*/e[77].cellSize),S(t,"gameid",u=/*gameprops*/e[77].gameModel.id),S(t,"gamefunmode",h=/*gameprops*/e[77].gameModel.hasFunMode),S(t,"gamefavorite",f=/*gameprops*/e[77].gameModel.isFavorite),S(t,"showfavoredcategory",/*showFavGamesCategory*/e[27]),S(t,"connectlive",g=/*intersectingIndexes*/1==e[28][/*gameprops*/e[77].id]?"connect":"disconnect"),S(t,"visibilityconnect",/*visibilityconnect*/e[29]),S(t,"currency",/*currency*/e[7]),S(t,"livelobbyendpoint",y=/*gameprops*/e[77].gameModel.details?/*gameprops*/e[77].gameModel.launchUrl:""),S(t,"clientstyling",/*clientstyling*/e[5]),S(t,"clientstylingurl",/*clientstylingurl*/e[6]),S(t,"endpoint",/*endpoint*/e[0]),S(t,"livecasino",/*livecasino*/e[8]),S(t,"gamepagemodalurl",/*gamepagemodalurl*/e[9]),S(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[10]),S(t,"integratedgameframemobile",/*integratedgameframemobile*/e[11])},m(e,n){d(e,t,n)},p(e,d){/*favoriteGamesData*/1073741824&d[0]&&n!==(n=""+(Bi+(/*gameprops*/e[77].cellSize?/*gameprops*/e[77].cellSize:"1x1")))&&S(t,"class",n),/*favoriteGamesData*/1073741824&d[0]&&r!==(r=""+(Bi+(/*gameprops*/e[77].cellSize?/*gameprops*/e[77].cellSize:"1x1")))&&S(t,"part",r),/*session*/4&d[0]&&S(t,"session",/*session*/e[2]),/*userid*/8&d[0]&&S(t,"userid",/*userid*/e[3]),/*lang*/2&d[0]&&S(t,"lang",/*lang*/e[1]),/*favorites*/16&d[0]&&S(t,"favorites",/*favorites*/e[4]),/*favoriteGamesData*/1073741824&d[0]&&i!==(i=/*gameprops*/e[77].gameModel.thumbnail)&&S(t,"gamethumbnail",i),/*favoriteGamesData*/1073741824&d[0]&&a!==(a=/*gameprops*/e[77].gameModel.name)&&S(t,"gamename",a),/*favoriteGamesData*/1073741824&d[0]&&s!==(s=/*gameprops*/e[77].gameModel.vendor.name)&&S(t,"gamevendor",s),/*favoriteGamesData*/1073741824&d[0]&&o!==(o=/*gameprops*/e[77].gameModel.isNew)&&S(t,"gameisnew",o),/*favoriteGamesData*/1073741824&d[0]&&l!==(l=/*gameprops*/e[77].gameModel.advancedTags?.length>0&&/*addGameTag*/e[33](/*gameprops*/e[77].advancedTags))&&S(t,"gametag",l),/*favoriteGamesData*/1073741824&d[0]&&c!==(c=/*gameprops*/e[77].cellSize)&&S(t,"gamecellsize",c),/*favoriteGamesData*/1073741824&d[0]&&u!==(u=/*gameprops*/e[77].gameModel.id)&&S(t,"gameid",u),/*favoriteGamesData*/1073741824&d[0]&&h!==(h=/*gameprops*/e[77].gameModel.hasFunMode)&&S(t,"gamefunmode",h),/*favoriteGamesData*/1073741824&d[0]&&f!==(f=/*gameprops*/e[77].gameModel.isFavorite)&&S(t,"gamefavorite",f),/*showFavGamesCategory*/134217728&d[0]&&S(t,"showfavoredcategory",/*showFavGamesCategory*/e[27]),/*intersectingIndexes, favoriteGamesData*/1342177280&d[0]&&g!==(g=/*intersectingIndexes*/1==e[28][/*gameprops*/e[77].id]?"connect":"disconnect")&&S(t,"connectlive",g),/*visibilityconnect*/536870912&d[0]&&S(t,"visibilityconnect",/*visibilityconnect*/e[29]),/*currency*/128&d[0]&&S(t,"currency",/*currency*/e[7]),/*favoriteGamesData*/1073741824&d[0]&&y!==(y=/*gameprops*/e[77].gameModel.details?/*gameprops*/e[77].gameModel.launchUrl:"")&&S(t,"livelobbyendpoint",y),/*clientstyling*/32&d[0]&&S(t,"clientstyling",/*clientstyling*/e[5]),/*clientstylingurl*/64&d[0]&&S(t,"clientstylingurl",/*clientstylingurl*/e[6]),/*endpoint*/1&d[0]&&S(t,"endpoint",/*endpoint*/e[0]),/*livecasino*/256&d[0]&&S(t,"livecasino",/*livecasino*/e[8]),/*gamepagemodalurl*/512&d[0]&&S(t,"gamepagemodalurl",/*gamepagemodalurl*/e[9]),/*integratedgameframedesktop*/1024&d[0]&&S(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[10]),/*integratedgameframemobile*/2048&d[0]&&S(t,"integratedgameframemobile",/*integratedgameframemobile*/e[11])},d(e){e&&m(t)}}}
|
|
1346
1346
|
// (672:28) {#if isMobile(userAgent)}
|
|
1347
1347
|
function Si(e){let t,n=/*gameprops*/e[77].gameModel.platform.includes("iPad")||/*gameprops*/e[77].gameModel.platform.includes("iPhone")||/*gameprops*/e[77].gameModel.platform.includes("Android"),r=n&&xi(e);return{c(){r&&r.c(),t=b()},m(e,n){r&&r.m(e,n),d(e,t,n)},p(e,i){/*favoriteGamesData*/1073741824&i[0]&&(n=/*gameprops*/e[77].gameModel.platform.includes("iPad")||/*gameprops*/e[77].gameModel.platform.includes("iPhone")||/*gameprops*/e[77].gameModel.platform.includes("Android")),n?r?r.p(e,i):(r=xi(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&m(t)}}}
|
|
1348
1348
|
// (673:30) {#if (gameprops.gameModel.platform.includes("iPad") || gameprops.gameModel.platform.includes("iPhone") || gameprops.gameModel.platform.includes("Android"))}
|
|
1349
|
-
function xi(e){let t,n,r,i,a,o,
|
|
1349
|
+
function xi(e){let t,n,r,i,a,s,o,l,c,u,h,f,g,y;return{c(){t=p("casino-game-thumbnail"),S(t,"class",n=""+(Bi+(/*gameprops*/e[77].cellSize?/*gameprops*/e[77].cellSize:"1x1"))),S(t,"part",r=""+(Bi+(/*gameprops*/e[77].cellSize?/*gameprops*/e[77].cellSize:"1x1"))),S(t,"session",/*session*/e[2]),S(t,"userid",/*userid*/e[3]),S(t,"lang",/*lang*/e[1]),S(t,"favorites",/*favorites*/e[4]),S(t,"gamethumbnail",i=/*gameprops*/e[77].gameModel.thumbnail),S(t,"gamename",a=/*gameprops*/e[77].gameModel.name),S(t,"gamevendor",s=/*gameprops*/e[77].gameModel.vendor.name),S(t,"gameisnew",o=/*gameprops*/e[77].gameModel.isNew),S(t,"gametag",l=/*gameprops*/e[77].gameModel.advancedTags?.length>0&&/*addGameTag*/e[33](/*gameprops*/e[77].advancedTags)),S(t,"gamecellsize",c=/*gameprops*/e[77].cellSize),S(t,"gameid",u=/*gameprops*/e[77].gameModel.id),S(t,"gamefunmode",h=/*gameprops*/e[77].gameModel.hasFunMode),S(t,"gamefavorite",f=/*gameprops*/e[77].gameModel.isFavorite),S(t,"showfavoredcategory",/*showFavGamesCategory*/e[27]),S(t,"connectlive",g=/*intersectingIndexes*/1==e[28][/*gameprops*/e[77].id]?"connect":"disconnect"),S(t,"visibilityconnect",/*visibilityconnect*/e[29]),S(t,"currency",/*currency*/e[7]),S(t,"livelobbyendpoint",y=/*gameprops*/e[77].gameModel.details?/*gameprops*/e[77].gameModel.launchUrl:""),S(t,"clientstyling",/*clientstyling*/e[5]),S(t,"clientstylingurl",/*clientstylingurl*/e[6]),S(t,"endpoint",/*endpoint*/e[0]),S(t,"livecasino",/*livecasino*/e[8]),S(t,"gamepagemodalurl",/*gamepagemodalurl*/e[9]),S(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[10]),S(t,"integratedgameframemobile",/*integratedgameframemobile*/e[11])},m(e,n){d(e,t,n)},p(e,d){/*favoriteGamesData*/1073741824&d[0]&&n!==(n=""+(Bi+(/*gameprops*/e[77].cellSize?/*gameprops*/e[77].cellSize:"1x1")))&&S(t,"class",n),/*favoriteGamesData*/1073741824&d[0]&&r!==(r=""+(Bi+(/*gameprops*/e[77].cellSize?/*gameprops*/e[77].cellSize:"1x1")))&&S(t,"part",r),/*session*/4&d[0]&&S(t,"session",/*session*/e[2]),/*userid*/8&d[0]&&S(t,"userid",/*userid*/e[3]),/*lang*/2&d[0]&&S(t,"lang",/*lang*/e[1]),/*favorites*/16&d[0]&&S(t,"favorites",/*favorites*/e[4]),/*favoriteGamesData*/1073741824&d[0]&&i!==(i=/*gameprops*/e[77].gameModel.thumbnail)&&S(t,"gamethumbnail",i),/*favoriteGamesData*/1073741824&d[0]&&a!==(a=/*gameprops*/e[77].gameModel.name)&&S(t,"gamename",a),/*favoriteGamesData*/1073741824&d[0]&&s!==(s=/*gameprops*/e[77].gameModel.vendor.name)&&S(t,"gamevendor",s),/*favoriteGamesData*/1073741824&d[0]&&o!==(o=/*gameprops*/e[77].gameModel.isNew)&&S(t,"gameisnew",o),/*favoriteGamesData*/1073741824&d[0]&&l!==(l=/*gameprops*/e[77].gameModel.advancedTags?.length>0&&/*addGameTag*/e[33](/*gameprops*/e[77].advancedTags))&&S(t,"gametag",l),/*favoriteGamesData*/1073741824&d[0]&&c!==(c=/*gameprops*/e[77].cellSize)&&S(t,"gamecellsize",c),/*favoriteGamesData*/1073741824&d[0]&&u!==(u=/*gameprops*/e[77].gameModel.id)&&S(t,"gameid",u),/*favoriteGamesData*/1073741824&d[0]&&h!==(h=/*gameprops*/e[77].gameModel.hasFunMode)&&S(t,"gamefunmode",h),/*favoriteGamesData*/1073741824&d[0]&&f!==(f=/*gameprops*/e[77].gameModel.isFavorite)&&S(t,"gamefavorite",f),/*showFavGamesCategory*/134217728&d[0]&&S(t,"showfavoredcategory",/*showFavGamesCategory*/e[27]),/*intersectingIndexes, favoriteGamesData*/1342177280&d[0]&&g!==(g=/*intersectingIndexes*/1==e[28][/*gameprops*/e[77].id]?"connect":"disconnect")&&S(t,"connectlive",g),/*visibilityconnect*/536870912&d[0]&&S(t,"visibilityconnect",/*visibilityconnect*/e[29]),/*currency*/128&d[0]&&S(t,"currency",/*currency*/e[7]),/*favoriteGamesData*/1073741824&d[0]&&y!==(y=/*gameprops*/e[77].gameModel.details?/*gameprops*/e[77].gameModel.launchUrl:"")&&S(t,"livelobbyendpoint",y),/*clientstyling*/32&d[0]&&S(t,"clientstyling",/*clientstyling*/e[5]),/*clientstylingurl*/64&d[0]&&S(t,"clientstylingurl",/*clientstylingurl*/e[6]),/*endpoint*/1&d[0]&&S(t,"endpoint",/*endpoint*/e[0]),/*livecasino*/256&d[0]&&S(t,"livecasino",/*livecasino*/e[8]),/*gamepagemodalurl*/512&d[0]&&S(t,"gamepagemodalurl",/*gamepagemodalurl*/e[9]),/*integratedgameframedesktop*/1024&d[0]&&S(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[10]),/*integratedgameframemobile*/2048&d[0]&&S(t,"integratedgameframemobile",/*integratedgameframemobile*/e[11])},d(e){e&&m(t)}}}
|
|
1350
1350
|
// (668:20) {#each favoriteGamesData.items as gameprops, index}
|
|
1351
1351
|
function Ti(e){let t,n=/*gameprops*/e[77].gameModel&&bi(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),d(e,t,r)},p(e,r){/*gameprops*/e[77].gameModel?n?n.p(e,r):(n=bi(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&m(t)}}}
|
|
1352
1352
|
// (593:12) {#if casinomygames !== 'true'}
|
|
1353
|
-
function Ei(e){let t,n,r,i,a=/*categoryData*/e[17].name+"",
|
|
1354
|
-
/*h3_binding*/e[47](n),h(t,i),
|
|
1355
|
-
/*h3_binding*/,e[47](null),
|
|
1353
|
+
function Ei(e){let t,n,r,i,a=/*categoryData*/e[17].name+"",s=/*showLoadCategory*/e[19]&&Gi(e);return{c(){t=p("div"),n=p("h3"),r=y(a),i=v(),s&&s.c(),_(n,"class","CategoryName"),_(n,"part","CategoryName"),_(t,"class","CasinoGamesHeader"),_(t,"part","CasinoGamesHeader")},m(a,o){d(a,t,o),h(t,n),h(n,r),
|
|
1354
|
+
/*h3_binding*/e[47](n),h(t,i),s&&s.m(t,null)},p(e,n){/*categoryData*/131072&n[0]&&a!==(a=/*categoryData*/e[17].name+"")&&x(r,a),/*showLoadCategory*/e[19]?s?s.p(e,n):(s=Gi(e),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},d(n){n&&m(t)
|
|
1355
|
+
/*h3_binding*/,e[47](null),s&&s.d()}}}
|
|
1356
1356
|
// (598:14) {#if showLoadCategory}
|
|
1357
|
-
function Gi(e){let t,n,r,i,a,o,
|
|
1357
|
+
function Gi(e){let t,n,r,i,a,s,o,l,c=/*$_*/e[31]("gamesCategorySection.viewAll")+"",u=/*categoryData*/e[17].games.total+"";return{c(){t=p("a"),n=p("span"),r=y(c),i=y(" ("),a=y(u),s=y(")"),_(n,"class","CategoryLoadMore"),_(n,"part","CategoryLoadMore"),_(t,"class","CategoryNameLink"),_(t,"part","CategoryNameLink")},m(c,u){d(c,t,u),h(t,n),h(n,r),h(n,i),h(n,a),h(n,s),o||(l=w(t,"click",/*click_handler*/e[48]),o=!0)},p(e,t){/*$_*/1&t[1]&&c!==(c=/*$_*/e[31]("gamesCategorySection.viewAll")+"")&&x(r,c),/*categoryData*/131072&t[0]&&u!==(u=/*categoryData*/e[17].games.total+"")&&x(a,u)},d(e){e&&m(t),o=!1,l()}}}
|
|
1358
1358
|
// (647:14) {:else}
|
|
1359
1359
|
function Mi(t){let n;return{c(){n=p("p"),n.textContent="You don't have any games in this category.",_(n,"class","NoSearchResults"),_(n,"part","NoSearchResults")},m(e,t){d(e,n,t)},p:e,d(e){e&&m(n)}}}
|
|
1360
1360
|
// (611:14) {#if shownCategoryData.length !== 0}
|
|
1361
1361
|
function Ci(e){let t,n,r,i=/*shownCategoryData*/e[18],a=[];for(let t=0;t<i.length;t+=1)a[t]=ki(ai(e,i,t));return{c(){t=p("ul");for(let e=0;e<a.length;e+=1)a[e].c();_(t,"class",n=/*favoriteGamesData*/(0===e[30].items.length&&/*showFavGamesCategory*/e[27]?"":"CasinoGamesGrid")+" GamesListIncreasedGap"),_(t,"part",r=/*favoriteGamesData*/(0===e[30].items.length&&/*showFavGamesCategory*/e[27]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")},m(n,r){d(n,t,r);for(let e=0;e<a.length;e+=1)a[e].m(t,null);
|
|
1362
|
-
/*ul_binding*/e[50](t)},p(e,
|
|
1362
|
+
/*ul_binding*/e[50](t)},p(e,s){if(/*session, userid, lang, shownCategoryData, favorites, intersectingIndexes, visibilityconnect, currency, clientstyling, clientstylingurl, endpoint, livecasino, gamepagemodalurl, integratedgameframedesktop, integratedgameframemobile, thumbnailContainer*/805588991&s[0]|/*addGameTag*/4&s[1]){let n;for(i=/*shownCategoryData*/e[18],n=0;n<i.length;n+=1){const r=ai(e,i,n);a[n]?a[n].p(r,s):(a[n]=ki(r),a[n].c(),a[n].m(t,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=i.length}/*favoriteGamesData, showFavGamesCategory*/1207959552&s[0]&&n!==(n=/*favoriteGamesData*/(0===e[30].items.length&&/*showFavGamesCategory*/e[27]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")&&_(t,"class",n),/*favoriteGamesData, showFavGamesCategory*/1207959552&s[0]&&r!==(r=/*favoriteGamesData*/(0===e[30].items.length&&/*showFavGamesCategory*/e[27]?"":"CasinoGamesGrid")+" GamesListIncreasedGap")&&_(t,"part",r)},d(n){n&&m(t),f(a,n),
|
|
1363
1363
|
/*ul_binding*/e[50](null)}}}
|
|
1364
1364
|
// (608:12) {#if isLoading}
|
|
1365
1365
|
function Li(t){let n;return{c(){n=p("div"),_(n,"class","lds-dual-ring"),_(n,"part","lds-dual-ring")},m(e,t){d(e,n,t)},p:e,d(e){e&&m(n)}}}
|
|
1366
1366
|
// (614:20) {#if intersecting || nativeLoading}
|
|
1367
1367
|
// (613:18) {#each shownCategoryData as gameprops, index}
|
|
1368
|
-
function ki(e){let t,n=function(e){let t,n,r,i,a,o,
|
|
1368
|
+
function ki(e){let t,n=function(e){let t,n,r,i,a,s,o,l,c,u,h,f,g,y,v=/*index*/e[79];const b=()=>/*casino_game_thumbnail_binding*/e[49](t,v),w=()=>/*casino_game_thumbnail_binding*/e[49](null,v);return{c(){t=p("casino-game-thumbnail"),S(t,"session",/*session*/e[2]),S(t,"userid",/*userid*/e[3]),S(t,"lang",/*lang*/e[1]),S(t,"class",n=""+(Bi+(/*gameprops*/e[77].cellSize?/*gameprops*/e[77].cellSize:"1x1"))),S(t,"part",r=""+(Bi+(/*gameprops*/e[77].cellSize?/*gameprops*/e[77].cellSize:"1x1"))),S(t,"favorites",/*favorites*/e[4]),S(t,"gamethumbnail",i=/*gameprops*/e[77].thumbnail),S(t,"gamename",a=/*gameprops*/e[77].name),S(t,"gamevendor",s=/*gameprops*/e[77].vendor.name),S(t,"gameisnew",o=/*gameprops*/e[77].isNew),S(t,"gametag",l=/*gameprops*/e[77].advancedTags?.length>0&&/*addGameTag*/e[33](/*gameprops*/e[77].advancedTags)),S(t,"gamecellsize",c=/*gameprops*/e[77].cellSize),S(t,"gameid",u=/*gameprops*/e[77].id),S(t,"gamefunmode",h=/*gameprops*/e[77].hasFunMode),S(t,"gamefavorite",f=/*gameprops*/e[77].isFavorite),S(t,"connectlive",g=/*intersectingIndexes*/1==e[28][/*gameprops*/e[77].id]?"connect":"disconnect"),S(t,"visibilityconnect",/*visibilityconnect*/e[29]),S(t,"currency",/*currency*/e[7]),S(t,"livelobbyendpoint",y=/*gameprops*/e[77].details?/*gameprops*/e[77].href:""),S(t,"clientstyling",/*clientstyling*/e[5]),S(t,"clientstylingurl",/*clientstylingurl*/e[6]),S(t,"endpoint",/*endpoint*/e[0]),S(t,"livecasino",/*livecasino*/e[8]),S(t,"gamepagemodalurl",/*gamepagemodalurl*/e[9]),S(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[10]),S(t,"integratedgameframemobile",/*integratedgameframemobile*/e[11])},m(e,n){d(e,t,n),b()},p(d,m){e=d,/*session*/4&m[0]&&S(t,"session",/*session*/e[2]),/*userid*/8&m[0]&&S(t,"userid",/*userid*/e[3]),/*lang*/2&m[0]&&S(t,"lang",/*lang*/e[1]),/*shownCategoryData*/262144&m[0]&&n!==(n=""+(Bi+(/*gameprops*/e[77].cellSize?/*gameprops*/e[77].cellSize:"1x1")))&&S(t,"class",n),/*shownCategoryData*/262144&m[0]&&r!==(r=""+(Bi+(/*gameprops*/e[77].cellSize?/*gameprops*/e[77].cellSize:"1x1")))&&S(t,"part",r),/*favorites*/16&m[0]&&S(t,"favorites",/*favorites*/e[4]),/*shownCategoryData*/262144&m[0]&&i!==(i=/*gameprops*/e[77].thumbnail)&&S(t,"gamethumbnail",i),/*shownCategoryData*/262144&m[0]&&a!==(a=/*gameprops*/e[77].name)&&S(t,"gamename",a),/*shownCategoryData*/262144&m[0]&&s!==(s=/*gameprops*/e[77].vendor.name)&&S(t,"gamevendor",s),/*shownCategoryData*/262144&m[0]&&o!==(o=/*gameprops*/e[77].isNew)&&S(t,"gameisnew",o),/*shownCategoryData*/262144&m[0]&&l!==(l=/*gameprops*/e[77].advancedTags?.length>0&&/*addGameTag*/e[33](/*gameprops*/e[77].advancedTags))&&S(t,"gametag",l),/*shownCategoryData*/262144&m[0]&&c!==(c=/*gameprops*/e[77].cellSize)&&S(t,"gamecellsize",c),/*shownCategoryData*/262144&m[0]&&u!==(u=/*gameprops*/e[77].id)&&S(t,"gameid",u),/*shownCategoryData*/262144&m[0]&&h!==(h=/*gameprops*/e[77].hasFunMode)&&S(t,"gamefunmode",h),/*shownCategoryData*/262144&m[0]&&f!==(f=/*gameprops*/e[77].isFavorite)&&S(t,"gamefavorite",f),/*intersectingIndexes, shownCategoryData*/268697600&m[0]&&g!==(g=/*intersectingIndexes*/1==e[28][/*gameprops*/e[77].id]?"connect":"disconnect")&&S(t,"connectlive",g),/*visibilityconnect*/536870912&m[0]&&S(t,"visibilityconnect",/*visibilityconnect*/e[29]),/*currency*/128&m[0]&&S(t,"currency",/*currency*/e[7]),/*shownCategoryData*/262144&m[0]&&y!==(y=/*gameprops*/e[77].details?/*gameprops*/e[77].href:"")&&S(t,"livelobbyendpoint",y),/*clientstyling*/32&m[0]&&S(t,"clientstyling",/*clientstyling*/e[5]),/*clientstylingurl*/64&m[0]&&S(t,"clientstylingurl",/*clientstylingurl*/e[6]),/*endpoint*/1&m[0]&&S(t,"endpoint",/*endpoint*/e[0]),/*livecasino*/256&m[0]&&S(t,"livecasino",/*livecasino*/e[8]),/*gamepagemodalurl*/512&m[0]&&S(t,"gamepagemodalurl",/*gamepagemodalurl*/e[9]),/*integratedgameframedesktop*/1024&m[0]&&S(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[10]),/*integratedgameframemobile*/2048&m[0]&&S(t,"integratedgameframemobile",/*integratedgameframemobile*/e[11]),v!==/*index*/e[79]&&(w(),v=/*index*/e[79],b())},d(e){e&&m(t),w()}}}(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),d(e,t,r)},p(e,t){n.p(e,t)},d(e){n&&n.d(e),e&&m(t)}}}
|
|
1369
1369
|
// (543:12) {:else}
|
|
1370
1370
|
function Ii(e){let t,n,r=/*$_*/e[31]("gamesCategorySection.searchedItems")+"";return{c(){t=p("h3"),n=y(r),_(t,"class","StatusText"),_(t,"part","StatusText")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/1&t[1]&&r!==(r=/*$_*/e[31]("gamesCategorySection.searchedItems")+"")&&x(n,r)},d(e){e&&m(t)}}}
|
|
1371
1371
|
// (539:12) {#if !shownCategoryData.length}
|
|
1372
1372
|
function Fi(e){let t,n,r=/*$_*/e[31]("gamesCategorySection.noResults")+"";return{c(){t=p("h3"),n=y(r),_(t,"class","StatusText"),_(t,"part","StatusText")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/1&t[1]&&r!==(r=/*$_*/e[31]("gamesCategorySection.noResults")+"")&&x(n,r)},d(e){e&&m(t)}}}
|
|
1373
1373
|
// (534:10) {#if recentSearched}
|
|
1374
|
-
function
|
|
1374
|
+
function $i(e){let t,n,r=/*$_*/e[31]("gamesCategorySection.recentSearchedItems")+"";return{c(){t=p("h3"),n=y(r),_(t,"class","StatusText"),_(t,"part","StatusText")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/1&t[1]&&r!==(r=/*$_*/e[31]("gamesCategorySection.recentSearchedItems")+"")&&x(n,r)},d(e){e&&m(t)}}}
|
|
1375
1375
|
// (585:8) {:else}
|
|
1376
|
-
function
|
|
1376
|
+
function Di(t){let n;return{c(){n=p("p"),n.textContent="Waiting",_(n,"class","SearchWaiting"),_(n,"part","SearchWaiting")},m(e,t){d(e,n,t)},p:e,d(e){e&&m(n)}}}
|
|
1377
1377
|
// (550:8) {#if shownCategoryData}
|
|
1378
|
-
function Oi(e){let t,n,r=!/*showItems*/e[24]&&Pi(e),i=/*shownCategoryData*/e[18],a=[];for(let t=0;t<i.length;t+=1)a[t]=Ni(
|
|
1378
|
+
function Oi(e){let t,n,r=!/*showItems*/e[24]&&Pi(e),i=/*shownCategoryData*/e[18],a=[];for(let t=0;t<i.length;t+=1)a[t]=Ni(si(e,i,t));return{c(){r&&r.c(),t=v(),n=p("ul");for(let e=0;e<a.length;e+=1)a[e].c();_(n,"class","CasinoGamesGrid SearchedGamesGrid GamesListIncreasedGap"),_(n,"part","CasinoGamesGrid SearchedGamesGrid GamesListIncreasedGap")},m(e,i){r&&r.m(e,i),d(e,t,i),d(e,n,i);for(let e=0;e<a.length;e+=1)a[e].m(n,null)},p(e,s){if(/*showItems*/e[24]?r&&(r.d(1),r=null):r?r.p(e,s):(r=Pi(e),r.c(),r.m(t.parentNode,t)),/*shownCategoryData, session, userid, lang, searchItem, favorites, currency, clientstyling, clientstylingurl, endpoint, livecasino, gamepagemodalurl, integratedgameframedesktop, integratedgameframemobile*/4460543&s[0]|/*addGameTag*/4&s[1]){let t;for(i=/*shownCategoryData*/e[18],t=0;t<i.length;t+=1){const r=si(e,i,t);a[t]?a[t].p(r,s):(a[t]=Ni(r),a[t].c(),a[t].m(n,null))}for(;t<a.length;t+=1)a[t].d(1);a.length=i.length}},d(e){r&&r.d(e),e&&m(t),e&&m(n),f(a,e)}}}
|
|
1379
1379
|
// (551:10) {#if !showItems}
|
|
1380
1380
|
function Pi(e){let t,n,r,i,a=/*$_*/e[31]("gamesCategorySection.noRecentSearch")+"";return{c(){t=p("p"),n=y(a),_(t,"class",r="NoSearchResults NoRecentSearches NoRecentSearchesCenter "+(_r(/*userAgent*/e[32])?"NoRecentSearchesMobile":"")),_(t,"part",i="NoSearchResults NoRecentSearches NoRecentSearchesCenter "+(_r(/*userAgent*/e[32])?"NoRecentSearchesMobile":""))},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/1&t[1]&&a!==(a=/*$_*/e[31]("gamesCategorySection.noRecentSearch")+"")&&x(n,a)},d(e){e&&m(t)}}}
|
|
1381
1381
|
// (555:12) {#each shownCategoryData as gameprops, index}
|
|
1382
|
-
function Ni(e){let t,n,r,i,a,o,
|
|
1382
|
+
function Ni(e){let t,n,r,i,a,s,o,l,c,u,h,f,g;return{c(){t=p("casino-game-thumbnail"),S(t,"class",n=""+(Bi+(/*gameprops*/e[77].cellSize?/*gameprops*/e[77].cellSize:"1x1"))),S(t,"part",r=""+(Bi+(/*gameprops*/e[77].cellSize?/*gameprops*/e[77].cellSize:"1x1"))),S(t,"session",/*session*/e[2]),S(t,"userid",/*userid*/e[3]),S(t,"lang",/*lang*/e[1]),S(t,"searchitem",/*searchItem*/e[22]),S(t,"favorites",/*favorites*/e[4]),S(t,"gamethumbnail",i=/*gameprops*/e[77].thumbnail),S(t,"gamename",a=/*gameprops*/e[77].name),S(t,"gamevendor",s=/*gameprops*/e[77].vendor.name),S(t,"gameisnew",o=/*gameprops*/e[77].isNew),S(t,"gametag",l=/*gameprops*/e[77].advancedTags?.length>0&&/*addGameTag*/e[33](/*gameprops*/e[77].advancedTags)),S(t,"gamecellsize",c=/*gameprops*/e[77].cellSize),S(t,"gameid",u=/*gameprops*/e[77].id),S(t,"gamefunmode",h=/*gameprops*/e[77].hasFunMode),S(t,"gamefavorite",f=/*gameprops*/e[77].isFavorite),S(t,"currency",/*currency*/e[7]),S(t,"livelobbyendpoint",g=/*gameprops*/e[77].details?/*gameprops*/e[77].href:""),S(t,"clientstyling",/*clientstyling*/e[5]),S(t,"clientstylingurl",/*clientstylingurl*/e[6]),S(t,"endpoint",/*endpoint*/e[0]),S(t,"livecasino",/*livecasino*/e[8]),S(t,"gamepagemodalurl",/*gamepagemodalurl*/e[9]),S(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[10]),S(t,"integratedgameframemobile",/*integratedgameframemobile*/e[11])},m(e,n){d(e,t,n)},p(e,d){/*shownCategoryData*/262144&d[0]&&n!==(n=""+(Bi+(/*gameprops*/e[77].cellSize?/*gameprops*/e[77].cellSize:"1x1")))&&S(t,"class",n),/*shownCategoryData*/262144&d[0]&&r!==(r=""+(Bi+(/*gameprops*/e[77].cellSize?/*gameprops*/e[77].cellSize:"1x1")))&&S(t,"part",r),/*session*/4&d[0]&&S(t,"session",/*session*/e[2]),/*userid*/8&d[0]&&S(t,"userid",/*userid*/e[3]),/*lang*/2&d[0]&&S(t,"lang",/*lang*/e[1]),/*searchItem*/4194304&d[0]&&S(t,"searchitem",/*searchItem*/e[22]),/*favorites*/16&d[0]&&S(t,"favorites",/*favorites*/e[4]),/*shownCategoryData*/262144&d[0]&&i!==(i=/*gameprops*/e[77].thumbnail)&&S(t,"gamethumbnail",i),/*shownCategoryData*/262144&d[0]&&a!==(a=/*gameprops*/e[77].name)&&S(t,"gamename",a),/*shownCategoryData*/262144&d[0]&&s!==(s=/*gameprops*/e[77].vendor.name)&&S(t,"gamevendor",s),/*shownCategoryData*/262144&d[0]&&o!==(o=/*gameprops*/e[77].isNew)&&S(t,"gameisnew",o),/*shownCategoryData*/262144&d[0]&&l!==(l=/*gameprops*/e[77].advancedTags?.length>0&&/*addGameTag*/e[33](/*gameprops*/e[77].advancedTags))&&S(t,"gametag",l),/*shownCategoryData*/262144&d[0]&&c!==(c=/*gameprops*/e[77].cellSize)&&S(t,"gamecellsize",c),/*shownCategoryData*/262144&d[0]&&u!==(u=/*gameprops*/e[77].id)&&S(t,"gameid",u),/*shownCategoryData*/262144&d[0]&&h!==(h=/*gameprops*/e[77].hasFunMode)&&S(t,"gamefunmode",h),/*shownCategoryData*/262144&d[0]&&f!==(f=/*gameprops*/e[77].isFavorite)&&S(t,"gamefavorite",f),/*currency*/128&d[0]&&S(t,"currency",/*currency*/e[7]),/*shownCategoryData*/262144&d[0]&&g!==(g=/*gameprops*/e[77].details?/*gameprops*/e[77].href:"")&&S(t,"livelobbyendpoint",g),/*clientstyling*/32&d[0]&&S(t,"clientstyling",/*clientstyling*/e[5]),/*clientstylingurl*/64&d[0]&&S(t,"clientstylingurl",/*clientstylingurl*/e[6]),/*endpoint*/1&d[0]&&S(t,"endpoint",/*endpoint*/e[0]),/*livecasino*/256&d[0]&&S(t,"livecasino",/*livecasino*/e[8]),/*gamepagemodalurl*/512&d[0]&&S(t,"gamepagemodalurl",/*gamepagemodalurl*/e[9]),/*integratedgameframedesktop*/1024&d[0]&&S(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[10]),/*integratedgameframemobile*/2048&d[0]&&S(t,"integratedgameframemobile",/*integratedgameframemobile*/e[11])},d(e){e&&m(t)}}}
|
|
1383
1383
|
// (527:4) {:else}
|
|
1384
1384
|
function Ai(e){let t;return{c(){t=p("p"),t.textContent="500 Error - Internal Server Error.",_(t,"class","SearchLoading"),_(t,"part","SearchLoading")},m(e,n){d(e,t,n)},d(e){e&&m(t)}}}
|
|
1385
1385
|
// (525:4) {#if filteresPresent}
|
|
1386
1386
|
function Ri(e){let t;return{c(){t=p("p"),t.textContent="404 Error - No result found.",_(t,"class","SearchLoading"),_(t,"part","SearchLoading")},m(e,n){d(e,t,n)},d(e){e&&m(t)}}}function Hi(t){let n;function r(e,t){/*hasErrors*/
|
|
1387
|
-
return e[16]?ci:/*searched*/e[20]?li:
|
|
1387
|
+
return e[16]?ci:/*searched*/e[20]?li:oi}let i=r(t),a=i(t);return{c(){n=p("div"),a.c(),this.c=e,_(n,"class","CasinoGamesCategorySectionContainer"),_(n,"part","CasinoGamesCategorySectionContainer")},m(e,r){d(e,n,r),a.m(n,null),
|
|
1388
1388
|
/*div_binding*/t[53](n)},p(e,t){i===(i=r(e))&&a?a.p(e,t):(a.d(1),a=i(e),a&&(a.c(),a.m(n,null)))},i:e,o:e,d(e){e&&m(n),a.d(),
|
|
1389
|
-
/*div_binding*/t[53](null)}}}!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",class extends j{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GameContainer{width:100%;height:100%;position:relative}.GameInnerContainer{position:relative;width:100%;height:100%;overflow:hidden;border-radius:5px}.GameInnerContainer .GameBg{width:100%;height:100%;object-fit:unset;transition:all 150ms ease-in-out}.GameInnerContainer .GameBg.GameBg-1x2,.GameInnerContainer .GameBg.GameBg-2x1,.GameInnerContainer .GameBg.GameBg-2x2{object-fit:cover}.GameInnerContainer .GameInfoWrapper{display:none;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.65);z-index:15}.GameInnerContainer .GameInfoWrapper .GameInfo{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center}.GameInnerContainer .GameInfoWrapper .GameInfoName{color:white;margin-bottom:10px;text-align:center;font-size:14px}.GameInnerContainer .GameInfoWrapper .GameInfoBtn{appearance:none;padding:6px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-size:16px;border:2px solid var(--emfe-w-color-primary-600, #99034F);border-radius:5px;cursor:pointer;transition:border 150ms ease-in-out}.GameInnerContainer .GameInfoWrapper .GameInfoBtn:hover{border:2px solid var(--emfe-w-color-primary-100, #F1BED9)}.GameInnerContainer .GameInfoWrapper .GameInfoVendor{display:block;position:absolute;bottom:8px;right:8px;color:white;font-size:12px;font-weight:normal}.GameInnerContainer:hover{cursor:pointer}.GameInnerContainer:hover .GameInfoWrapper{display:block}.GameInnerContainer:hover .GameBg{filter:blur(5px) grayscale(1)}.GameInnerContainer .GameExtraInfo{display:block;position:absolute;width:100%;height:100%;top:8px;left:8px;z-index:0}.GameInnerContainer .GameExtraInfoLabel{font-size:11px;padding:3px;background-color:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-weight:bold;text-transform:uppercase;border-radius:5px}.GameNameBelow{color:var(--emfe-w-color-white, #FFFFFF);position:relative;bottom:-5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.FavoredIcon,.UnfavoredIcon{width:20px;height:20px}.FavIconContainer{position:absolute;top:10px;right:10px;cursor:pointer;z-index:15}@media(min-width: 1100px){.GamesWrapper .ListGame:hover .GamePlayNowText{z-index:4}}.ListGame:hover .OpenSeat,.ListGame:hover .ClosedSeat,.ListGame:hover .LiveLimits,.ListGame:hover .LatestResult,.ListGame:hover .FullTable,.ListGame:active .OpenSeat,.ListGame:active .ClosedSeat,.ListGame:active .LiveLimits,.ListGame:active .LatestResult,.ListGame:active .FullTable{opacity:0.2}.ListGame.GameBackdrop .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(0deg, rgb(0, 0, 0) 15%, rgba(0, 0, 0, 0) 100%)}.ListGame .GameInnerContainer{z-index:0}.ListGame .GameInnerContainer .GameBg{z-index:5}.ListGame .GameInnerContainer .GameExtraInfo{z-index:10}.ListGame .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.ListGame .GameInnerContainer.GameInnerContainerUnavailable::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.9)}.ListGame .GameInnerContainer .ListGame.GameContainerDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.4);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .ListGame.GameContainerFullyDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.8);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .LiveProps{display:flex;flex-direction:column;position:absolute;bottom:8px;left:-8px;right:0;width:100%;padding:0;background:linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.99) 100%);color:var(--emfe-w-color-white, #FFFFFF);opacity:1;font-size:14px}.ListGame .GameInnerContainer .ListGame:hover .LiveProps,.ListGame .GameInnerContainer .ListGameLink:hover .LiveProps{opacity:0}@keyframes red-pulse{0%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}15%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}30%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}50%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}65%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}80%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}100%{box-shadow:0 0 0 0 rgba(255, 0, 0, 0.75)}}@keyframes green-pulse{0%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}15%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}30%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}50%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}65%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}80%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}100%{box-shadow:0 0 0 0 rgba(86, 168, 10, 0.75)}}@keyframes flip-open{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .silde-in-from-left{-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes flip-closed-seat{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow,.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{overflow:auto}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow{animation:green-pulse 2s linear}.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{animation:red-pulse 2s linear}.ListGame .GameInnerContainer .LiveIcons{position:relative;display:flex;padding:0 16px;box-sizing:border-box;flex-direction:row;align-items:center;justify-content:flex-start;min-height:auto;margin-bottom:5px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons{min-height:auto}}.ListGame .GameInnerContainer .LiveIcons:first-child{margin-left:0}.ListGame .GameInnerContainer .LiveIcons:last-child{margin-right:0}.ListGame .GameInnerContainer .LiveIcons.Black,.ListGame .GameInnerContainer .LiveIcons.Red,.ListGame .GameInnerContainer .LiveIcons.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;padding:2px;margin:0 1px;margin-right:6px;font-size:14px;text-align:center}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;font-size:14px;margin:0 2px;margin-right:5px;padding:2px}}.ListGame .GameInnerContainer .LiveIcons .LatestResult.FirstElementAnimated{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{min-width:24px;padding:4px}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black{background:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red{background:red}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{background:#56A80A}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{padding:4px}}.ListGame .GameInnerContainer .LiveIcons .Double{display:flex;flex-direction:column}.ListGame .GameInnerContainer .LiveIcons .Double .LatestResult:first-child{margin-bottom:10px}.ListGame .GameInnerContainer .LiveIcons .Double:first-child .LatestResult{margin-left:0;margin-bottom:0}.ListGame .GameInnerContainer .LiveIcons .Double:last-child .LatestResult{margin-right:0}.ListGame .GameInnerContainer .LiveIcons .Black,.ListGame .GameInnerContainer .LiveIcons .Red,.ListGame .GameInnerContainer .LiveIcons .Green{background-color:transparent}.ListGame .GameInnerContainer .LiveIcons .Black{color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .Red{color:red}.ListGame .GameInnerContainer .LiveIcons .Green{color:#56A80A}.ListGame .GameInnerContainer .Blue{color:#4d90a7}.ListGame .GameInnerContainer .Red{background-color:red}.ListGame .GameInnerContainer .Black{background-color:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .Green{background-color:#56A80A}.ListGame .GameInnerContainer .White{background-color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .Yellow{background-color:#eeca3d}.ListGame .GameInnerContainer .Gold{background-color:#866d0c}.ListGame .GameInnerContainer .Orange{background-color:#574708}.ListGame .GameInnerContainer .Purple{background-color:#330033}.ListGame .GameInnerContainer .Tie{background-color:var(--emfe-w-color-white, #FFFFFF);background-image:linear-gradient(135deg, var(--emfe-w-color-white, #FFFFFF) 25%, transparent 25%, transparent 50%, #212121 50%, var(--emfe-w-color-white, #FFFFFF) 75%, transparent 75%, var(--emfe-w-color-white, #FFFFFF))}.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{display:inline-block;width:16px;height:16px;margin-right:4px}@media(min-width: 768px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}@media(min-width: 1100px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}.ListGame .GameInnerContainer .OpenSeat svg,.ListGame .GameInnerContainer .ClosedSeat svg{width:100%;height:100%}.ListGame .GameInnerContainer .OpenSeat{animation:flip-closed-seat 2s both;-webkit-animation:flip-closed-seat 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .ClosedSeat{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .OpenSeat svg{fill:transparent;stroke:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .ClosedSeat svg{fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable{display:flex;position:relative;z-index:10;height:20px;padding:1px 4px 1px 0;align-items:center;border-radius:3px;font-size:12px;white-space:normal;text-transform:uppercase;-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.ListGame .GameInnerContainer .FullTable svg{width:100%;height:100%;fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable.ClosedSeat{margin-right:-3px}.ListGame .GameInnerContainer .PlayersDisplay{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;padding:2px 10px;background:linear-gradient(to bottom, rgba(33, 33, 33, 0.9) 0%, rgba(33, 33, 33, 0.1) 100%);color:var(--emfe-w-color-white, #FFFFFF)}@media(min-width: 1100px){.ListGame .GameInnerContainer .PlayersDisplay{padding:2px 16px}}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon{width:14px;height:14px;margin-right:4px}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon svg{fill:var(--emfe-w-color-white, #FFFFFF);width:100%;height:100%}.ListGame .GameInnerContainer .ClosedGame{opacity:1;z-index:10;padding:8px 10px;color:var(--emfe-w-color-white, #FFFFFF);font-size:18px}@media(min-width: 1100px){.ListGame .GameInnerContainer .ClosedGame{padding:8px 16px}}.ListGame .GameInnerContainer .ClosedGame span{font-size:18px}.ListGame .GameInnerContainer .LiveLimits{opacity:1;display:flex;flex-direction:row;justify-content:space-between;padding:2px 20px 5px 20px;background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);font-weight:normal;font-size:12px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveLimits{padding:2px 18px 5px 18px}}.ListGame .GameInnerContainer .LiveLimits span{font-size:12px}.ListGame .GameInnerContainer .Players{display:inline-block;width:19px;height:19px}</style>',Y(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},ri,qr,a,{session:48,userid:49,lang:1,clientstyling:50,clientstylingurl:51,translationurl:52,favorites:2,gamethumbnail:3,gamename:4,gamevendor:5,gameid:6,gameisnew:7,gametag:8,gamefunmode:53,searchitem:54,gamefavorite:0,gamecellsize:9,showfavoredcategory:55,showgamename:10,currency:56,gamepagemodalurl:57,endpoint:58,livelobbyendpoint:59,connectlive:60,visibilityconnect:61,integratedgameframedesktop:62,integratedgameframemobile:63,MONEY_WHEEL_COLOR_MAP:64,ROULETTE_COLOR_MAP:65},null,[-1,-1,-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["session","userid","lang","clientstyling","clientstylingurl","translationurl","favorites","gamethumbnail","gamename","gamevendor","gameid","gameisnew","gametag","gamefunmode","searchitem","gamefavorite","gamecellsize","showfavoredcategory","showgamename","currency","gamepagemodalurl","endpoint","livelobbyendpoint","connectlive","visibilityconnect","integratedgameframedesktop","integratedgameframemobile","MONEY_WHEEL_COLOR_MAP","ROULETTE_COLOR_MAP"]}get session(){return this.$$.ctx[48]}set session(e){this.$$set({session:e}),H()}get userid(){return this.$$.ctx[49]}set userid(e){this.$$set({userid:e}),H()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),H()}get clientstyling(){return this.$$.ctx[50]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[51]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get translationurl(){return this.$$.ctx[52]}set translationurl(e){this.$$set({translationurl:e}),H()}get favorites(){return this.$$.ctx[2]}set favorites(e){this.$$set({favorites:e}),H()}get gamethumbnail(){return this.$$.ctx[3]}set gamethumbnail(e){this.$$set({gamethumbnail:e}),H()}get gamename(){return this.$$.ctx[4]}set gamename(e){this.$$set({gamename:e}),H()}get gamevendor(){return this.$$.ctx[5]}set gamevendor(e){this.$$set({gamevendor:e}),H()}get gameid(){return this.$$.ctx[6]}set gameid(e){this.$$set({gameid:e}),H()}get gameisnew(){return this.$$.ctx[7]}set gameisnew(e){this.$$set({gameisnew:e}),H()}get gametag(){return this.$$.ctx[8]}set gametag(e){this.$$set({gametag:e}),H()}get gamefunmode(){return this.$$.ctx[53]}set gamefunmode(e){this.$$set({gamefunmode:e}),H()}get searchitem(){return this.$$.ctx[54]}set searchitem(e){this.$$set({searchitem:e}),H()}get gamefavorite(){return this.$$.ctx[0]}set gamefavorite(e){this.$$set({gamefavorite:e}),H()}get gamecellsize(){return this.$$.ctx[9]}set gamecellsize(e){this.$$set({gamecellsize:e}),H()}get showfavoredcategory(){return this.$$.ctx[55]}set showfavoredcategory(e){this.$$set({showfavoredcategory:e}),H()}get showgamename(){return this.$$.ctx[10]}set showgamename(e){this.$$set({showgamename:e}),H()}get currency(){return this.$$.ctx[56]}set currency(e){this.$$set({currency:e}),H()}get gamepagemodalurl(){return this.$$.ctx[57]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),H()}get endpoint(){return this.$$.ctx[58]}set endpoint(e){this.$$set({endpoint:e}),H()}get livelobbyendpoint(){return this.$$.ctx[59]}set livelobbyendpoint(e){this.$$set({livelobbyendpoint:e}),H()}get connectlive(){return this.$$.ctx[60]}set connectlive(e){this.$$set({connectlive:e}),H()}get visibilityconnect(){return this.$$.ctx[61]}set visibilityconnect(e){this.$$set({visibilityconnect:e}),H()}get integratedgameframedesktop(){return this.$$.ctx[62]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),H()}get integratedgameframemobile(){return this.$$.ctx[63]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),H()}get MONEY_WHEEL_COLOR_MAP(){return this.$$.ctx[64]}get ROULETTE_COLOR_MAP(){return this.$$.ctx[65]}});const Bi="game-tile-";function Ui(e,t,n){let r;u(e,wr,(e=>n(31,r=e)));let i,a,o,s,l,c,h,d,m,f,{categoryindex:p=""}=t,{endpoint:g=""}=t,{datasource:y=""}=t,{lang:v=""}=t,{session:b=""}=t,{userid:w=""}=t,{favorites:_=""}=t,{clientstyling:S=""}=t,{clientstylingurl:x=""}=t,{translationurl:T=""}=t,{currency:E=""}=t,{categoryid:G=""}=t,{categorygames:M=0}=t,{livecasino:L="false"}=t,{visiblegames:I=""}=t,{gamepagemodalurl:F="false"}=t,{integratedgameframedesktop:D="false"}=t,{integratedgameframemobile:$="false"}=t,{casinomygames:O="false"}=t,{once:P=!0}=t,{top:N=0}=t,{bottom:A=0}=t,{left:R=0}=t,{right:H=0}=t,B=!0,U=!1,Y=!0,j=window.navigator.userAgent,z=[],W=!0,V=40,Z=!1,K=!1,X=!1,J=!1,q=!1,Q=!0,ee=!1,te=!1,ne=new Array(1e4),re={},ie="",ae={items:[],count:0,name:""};Object.keys(Gr).forEach((e=>{Er(e,Gr[e])})),void 0!==document.hidden?
|
|
1389
|
+
/*div_binding*/t[53](null)}}}!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",class extends j{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GameContainer{width:100%;height:100%;position:relative}.GameInnerContainer{position:relative;width:100%;height:100%;overflow:hidden;border-radius:5px}.GameInnerContainer .GameBg{width:100%;height:100%;object-fit:unset;transition:all 150ms ease-in-out}.GameInnerContainer .GameBg.GameBg-1x2,.GameInnerContainer .GameBg.GameBg-2x1,.GameInnerContainer .GameBg.GameBg-2x2{object-fit:cover}.GameInnerContainer .GameInfoWrapper{display:none;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.65);z-index:15}.GameInnerContainer .GameInfoWrapper .GameInfo{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center}.GameInnerContainer .GameInfoWrapper .GameInfoName{color:white;margin-bottom:10px;text-align:center;font-size:14px}.GameInnerContainer .GameInfoWrapper .GameInfoBtn{appearance:none;padding:6px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-size:16px;border:2px solid var(--emfe-w-color-primary-600, #99034F);border-radius:5px;cursor:pointer;transition:border 150ms ease-in-out}.GameInnerContainer .GameInfoWrapper .GameInfoBtn:hover{border:2px solid var(--emfe-w-color-primary-100, #F1BED9)}.GameInnerContainer .GameInfoWrapper .GameInfoVendor{display:block;position:absolute;bottom:8px;right:8px;color:white;font-size:12px;font-weight:normal}.GameInnerContainer:hover{cursor:pointer}.GameInnerContainer:hover .GameInfoWrapper{display:block}.GameInnerContainer:hover .GameBg{filter:blur(5px) grayscale(1)}.GameInnerContainer .GameExtraInfo{display:block;position:absolute;width:100%;height:100%;top:8px;left:8px;z-index:0}.GameInnerContainer .GameExtraInfoLabel{font-size:11px;padding:3px;background-color:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-weight:bold;text-transform:uppercase;border-radius:5px}.GameNameBelow{color:var(--emfe-w-color-white, #FFFFFF);position:relative;bottom:-5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.FavoredIcon,.UnfavoredIcon{width:20px;height:20px}.FavIconContainer{position:absolute;top:10px;right:10px;cursor:pointer;z-index:15}@media(min-width: 1100px){.GamesWrapper .ListGame:hover .GamePlayNowText{z-index:4}}.ListGame:hover .OpenSeat,.ListGame:hover .ClosedSeat,.ListGame:hover .LiveLimits,.ListGame:hover .LatestResult,.ListGame:hover .FullTable,.ListGame:active .OpenSeat,.ListGame:active .ClosedSeat,.ListGame:active .LiveLimits,.ListGame:active .LatestResult,.ListGame:active .FullTable{opacity:0.2}.ListGame.GameBackdrop .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(0deg, rgb(0, 0, 0) 15%, rgba(0, 0, 0, 0) 100%)}.ListGame .GameInnerContainer{z-index:0}.ListGame .GameInnerContainer .GameBg{z-index:5}.ListGame .GameInnerContainer .GameExtraInfo{z-index:10}.ListGame .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.ListGame .GameInnerContainer.GameInnerContainerUnavailable::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.9)}.ListGame .GameInnerContainer .ListGame.GameContainerDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.4);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .ListGame.GameContainerFullyDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.8);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .LiveProps{display:flex;flex-direction:column;position:absolute;bottom:8px;left:-8px;right:0;width:100%;padding:0;background:linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.99) 100%);color:var(--emfe-w-color-white, #FFFFFF);opacity:1;font-size:14px}.ListGame .GameInnerContainer .ListGame:hover .LiveProps,.ListGame .GameInnerContainer .ListGameLink:hover .LiveProps{opacity:0}@keyframes red-pulse{0%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}15%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}30%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}50%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}65%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}80%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}100%{box-shadow:0 0 0 0 rgba(255, 0, 0, 0.75)}}@keyframes green-pulse{0%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}15%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}30%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}50%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}65%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}80%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}100%{box-shadow:0 0 0 0 rgba(86, 168, 10, 0.75)}}@keyframes flip-open{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .silde-in-from-left{-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes flip-closed-seat{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow,.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{overflow:auto}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow{animation:green-pulse 2s linear}.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{animation:red-pulse 2s linear}.ListGame .GameInnerContainer .LiveIcons{position:relative;display:flex;padding:0 16px;box-sizing:border-box;flex-direction:row;align-items:center;justify-content:flex-start;min-height:auto;margin-bottom:5px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons{min-height:auto}}.ListGame .GameInnerContainer .LiveIcons:first-child{margin-left:0}.ListGame .GameInnerContainer .LiveIcons:last-child{margin-right:0}.ListGame .GameInnerContainer .LiveIcons.Black,.ListGame .GameInnerContainer .LiveIcons.Red,.ListGame .GameInnerContainer .LiveIcons.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;padding:2px;margin:0 1px;margin-right:6px;font-size:14px;text-align:center}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;font-size:14px;margin:0 2px;margin-right:5px;padding:2px}}.ListGame .GameInnerContainer .LiveIcons .LatestResult.FirstElementAnimated{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{min-width:24px;padding:4px}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black{background:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red{background:red}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{background:#56A80A}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{padding:4px}}.ListGame .GameInnerContainer .LiveIcons .Double{display:flex;flex-direction:column}.ListGame .GameInnerContainer .LiveIcons .Double .LatestResult:first-child{margin-bottom:10px}.ListGame .GameInnerContainer .LiveIcons .Double:first-child .LatestResult{margin-left:0;margin-bottom:0}.ListGame .GameInnerContainer .LiveIcons .Double:last-child .LatestResult{margin-right:0}.ListGame .GameInnerContainer .LiveIcons .Black,.ListGame .GameInnerContainer .LiveIcons .Red,.ListGame .GameInnerContainer .LiveIcons .Green{background-color:transparent}.ListGame .GameInnerContainer .LiveIcons .Black{color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .Red{color:red}.ListGame .GameInnerContainer .LiveIcons .Green{color:#56A80A}.ListGame .GameInnerContainer .Blue{color:#4d90a7}.ListGame .GameInnerContainer .Red{background-color:red}.ListGame .GameInnerContainer .Black{background-color:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .Green{background-color:#56A80A}.ListGame .GameInnerContainer .White{background-color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .Yellow{background-color:#eeca3d}.ListGame .GameInnerContainer .Gold{background-color:#866d0c}.ListGame .GameInnerContainer .Orange{background-color:#574708}.ListGame .GameInnerContainer .Purple{background-color:#330033}.ListGame .GameInnerContainer .Tie{background-color:var(--emfe-w-color-white, #FFFFFF);background-image:linear-gradient(135deg, var(--emfe-w-color-white, #FFFFFF) 25%, transparent 25%, transparent 50%, #212121 50%, var(--emfe-w-color-white, #FFFFFF) 75%, transparent 75%, var(--emfe-w-color-white, #FFFFFF))}.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{display:inline-block;width:16px;height:16px;margin-right:4px}@media(min-width: 768px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}@media(min-width: 1100px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}.ListGame .GameInnerContainer .OpenSeat svg,.ListGame .GameInnerContainer .ClosedSeat svg{width:100%;height:100%}.ListGame .GameInnerContainer .OpenSeat{animation:flip-closed-seat 2s both;-webkit-animation:flip-closed-seat 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .ClosedSeat{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .OpenSeat svg{fill:transparent;stroke:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .ClosedSeat svg{fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable{display:flex;position:relative;z-index:10;height:20px;padding:1px 4px 1px 0;align-items:center;border-radius:3px;font-size:12px;white-space:normal;text-transform:uppercase;-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.ListGame .GameInnerContainer .FullTable svg{width:100%;height:100%;fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable.ClosedSeat{margin-right:-3px}.ListGame .GameInnerContainer .PlayersDisplay{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;padding:2px 10px;background:linear-gradient(to bottom, rgba(33, 33, 33, 0.9) 0%, rgba(33, 33, 33, 0.1) 100%);color:var(--emfe-w-color-white, #FFFFFF)}@media(min-width: 1100px){.ListGame .GameInnerContainer .PlayersDisplay{padding:2px 16px}}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon{width:14px;height:14px;margin-right:4px}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon svg{fill:var(--emfe-w-color-white, #FFFFFF);width:100%;height:100%}.ListGame .GameInnerContainer .ClosedGame{opacity:1;z-index:10;padding:8px 10px;color:var(--emfe-w-color-white, #FFFFFF);font-size:18px}@media(min-width: 1100px){.ListGame .GameInnerContainer .ClosedGame{padding:8px 16px}}.ListGame .GameInnerContainer .ClosedGame span{font-size:18px}.ListGame .GameInnerContainer .LiveLimits{opacity:1;display:flex;flex-direction:row;justify-content:space-between;padding:2px 20px 5px 20px;background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);font-weight:normal;font-size:12px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveLimits{padding:2px 18px 5px 18px}}.ListGame .GameInnerContainer .LiveLimits span{font-size:12px}.ListGame .GameInnerContainer .Players{display:inline-block;width:19px;height:19px}</style>',Y(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},ri,Jr,a,{session:48,userid:49,lang:1,clientstyling:50,clientstylingurl:51,translationurl:52,favorites:2,gamethumbnail:3,gamename:4,gamevendor:5,gameid:6,gameisnew:7,gametag:8,gamefunmode:53,searchitem:54,gamefavorite:0,gamecellsize:9,showfavoredcategory:55,showgamename:10,currency:56,gamepagemodalurl:57,endpoint:58,livelobbyendpoint:59,connectlive:60,visibilityconnect:61,integratedgameframedesktop:62,integratedgameframemobile:63,MONEY_WHEEL_COLOR_MAP:64,ROULETTE_COLOR_MAP:65},null,[-1,-1,-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["session","userid","lang","clientstyling","clientstylingurl","translationurl","favorites","gamethumbnail","gamename","gamevendor","gameid","gameisnew","gametag","gamefunmode","searchitem","gamefavorite","gamecellsize","showfavoredcategory","showgamename","currency","gamepagemodalurl","endpoint","livelobbyendpoint","connectlive","visibilityconnect","integratedgameframedesktop","integratedgameframemobile","MONEY_WHEEL_COLOR_MAP","ROULETTE_COLOR_MAP"]}get session(){return this.$$.ctx[48]}set session(e){this.$$set({session:e}),H()}get userid(){return this.$$.ctx[49]}set userid(e){this.$$set({userid:e}),H()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),H()}get clientstyling(){return this.$$.ctx[50]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[51]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get translationurl(){return this.$$.ctx[52]}set translationurl(e){this.$$set({translationurl:e}),H()}get favorites(){return this.$$.ctx[2]}set favorites(e){this.$$set({favorites:e}),H()}get gamethumbnail(){return this.$$.ctx[3]}set gamethumbnail(e){this.$$set({gamethumbnail:e}),H()}get gamename(){return this.$$.ctx[4]}set gamename(e){this.$$set({gamename:e}),H()}get gamevendor(){return this.$$.ctx[5]}set gamevendor(e){this.$$set({gamevendor:e}),H()}get gameid(){return this.$$.ctx[6]}set gameid(e){this.$$set({gameid:e}),H()}get gameisnew(){return this.$$.ctx[7]}set gameisnew(e){this.$$set({gameisnew:e}),H()}get gametag(){return this.$$.ctx[8]}set gametag(e){this.$$set({gametag:e}),H()}get gamefunmode(){return this.$$.ctx[53]}set gamefunmode(e){this.$$set({gamefunmode:e}),H()}get searchitem(){return this.$$.ctx[54]}set searchitem(e){this.$$set({searchitem:e}),H()}get gamefavorite(){return this.$$.ctx[0]}set gamefavorite(e){this.$$set({gamefavorite:e}),H()}get gamecellsize(){return this.$$.ctx[9]}set gamecellsize(e){this.$$set({gamecellsize:e}),H()}get showfavoredcategory(){return this.$$.ctx[55]}set showfavoredcategory(e){this.$$set({showfavoredcategory:e}),H()}get showgamename(){return this.$$.ctx[10]}set showgamename(e){this.$$set({showgamename:e}),H()}get currency(){return this.$$.ctx[56]}set currency(e){this.$$set({currency:e}),H()}get gamepagemodalurl(){return this.$$.ctx[57]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),H()}get endpoint(){return this.$$.ctx[58]}set endpoint(e){this.$$set({endpoint:e}),H()}get livelobbyendpoint(){return this.$$.ctx[59]}set livelobbyendpoint(e){this.$$set({livelobbyendpoint:e}),H()}get connectlive(){return this.$$.ctx[60]}set connectlive(e){this.$$set({connectlive:e}),H()}get visibilityconnect(){return this.$$.ctx[61]}set visibilityconnect(e){this.$$set({visibilityconnect:e}),H()}get integratedgameframedesktop(){return this.$$.ctx[62]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),H()}get integratedgameframemobile(){return this.$$.ctx[63]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),H()}get MONEY_WHEEL_COLOR_MAP(){return this.$$.ctx[64]}get ROULETTE_COLOR_MAP(){return this.$$.ctx[65]}});const Bi="game-tile-";function Ui(e,t,n){let r;u(e,wr,(e=>n(31,r=e)));let i,a,s,o,l,c,h,d,m,f,{categoryindex:p=""}=t,{endpoint:g=""}=t,{datasource:y=""}=t,{lang:v=""}=t,{session:b=""}=t,{userid:w=""}=t,{favorites:_=""}=t,{clientstyling:S=""}=t,{clientstylingurl:x=""}=t,{translationurl:T=""}=t,{currency:E=""}=t,{categoryid:G=""}=t,{categorygames:M=0}=t,{livecasino:L="false"}=t,{visiblegames:I=""}=t,{gamepagemodalurl:F="false"}=t,{integratedgameframedesktop:$="false"}=t,{integratedgameframemobile:D="false"}=t,{casinomygames:O="false"}=t,{once:P=!0}=t,{top:N=0}=t,{bottom:A=0}=t,{left:R=0}=t,{right:H=0}=t,B=!0,U=!1,Y=!0,j=window.navigator.userAgent,z=[],W=!0,V=40,Z=!1,K=!1,X=!1,q=!1,J=!1,Q=!0,ee=!1,te=!1,ne=new Array(1e4),re={},ie="",ae={items:[],count:0,name:""};Object.keys(Gr).forEach((e=>{Er(e,Gr[e])})),void 0!==document.hidden?
|
|
1390
1390
|
// Opera 12.10 and Firefox 18 and later support
|
|
1391
1391
|
m="hidden":void 0!==document.msHidden?m="msHidden":void 0!==document.webkitHidden&&(m="webkitHidden");
|
|
1392
1392
|
// IntersectionObserver used for loading more games
|
|
1393
|
-
let
|
|
1393
|
+
let se=new IntersectionObserver((e=>{e.forEach((async e=>{let t=e.target.gameid,r=e.target.elems_index;// eslint-disable-line
|
|
1394
1394
|
// eslint-disable-line
|
|
1395
1395
|
e.isIntersecting?(1.2*r>V&&ce(G),n(28,re[t]=1,re)):n(28,re[t]=0,re)}))}));
|
|
1396
1396
|
// Start favored games section
|
|
1397
|
-
const
|
|
1397
|
+
const oe=(e,t,r,i=[])=>{n(15,B=!0);let a="",s="";(G.match(/\$/g)||[]).length>1?(a=G.split("$").slice(0,2).join("$"),s=new URL(`${g}/casino/groups/${y}/${a}/subGroups`)):s=new URL(`${g}/casino/groups/${y}/${G}`);let o=JSON.parse(sessionStorage.getItem("vendorFiltersByCategory"));return new Promise(((e,i)=>{if(s.searchParams.delete("pagination"),s.searchParams.append("expand","games(vendor)"),s.searchParams.append("fields","id,name,games"),s.searchParams.append("platform",Sr(j)),s.searchParams.append("pagination",`games(offset=${t},limit=${r})`),s.searchParams.append("language",v),
|
|
1398
1398
|
// if vendor filters are active, get filtered games
|
|
1399
|
-
window.postMessage({type:"CategoryVendors",categoryid:G},window.location.href),
|
|
1399
|
+
window.postMessage({type:"CategoryVendors",categoryid:G},window.location.href),o&&o[G])if(o[G].length&&!1===Y&&!1===ee){let e="";n(23,J=!0),o[G].forEach((t=>{e+=e?`, id=${t}`:`id=${t}`})),s.searchParams.append("filter",`games(vendor(${e}))`)}else n(23,J=!1);fetch(s).then((e=>e.json())).then((t=>{n(15,B=!1),(G.match(/\$/g)||[]).length>1&&(t=t.items.filter((e=>{if(e.id==G)return e}))[0]),n(46,f=!0),n(16,U=!1),l=t.games.total,e(t)}),(e=>{n(16,U=!0),console.error(e),i(e)}))}))},le=e=>{if(e.data)switch(e.data.type){case"MostPlayedData":"MOSTPLAYED"==G&&(n(20,Z=!1),Y=!1,n(19,W=!1),n(18,z=e.data.mostPlayedGames),n(17,s={id:"MOSTPLAYED",name:"Most Played Games",games:{count:e.data.mostPlayedGames.length,total:e.data.mostPlayedGames.length,items:e.data.mostPlayedGames}})),n(15,B=!1);break;case"LastPlayedData":"LASTPLAYED"==G&&(n(20,Z=!1),Y=!1,n(19,W=!1),n(18,z=e.data.lastPlayedGames),n(17,s={id:"LASTPLAYED",name:"Last Played Games",games:{count:e.data.lastPlayedGames.length,total:e.data.lastPlayedGames.length,items:e.data.lastPlayedGames}})),n(15,B=!1);break;case"CustomOperatorData":e.data.operatordetail;break;case"RecentSearchData":n(20,Z=!0),n(21,K=!0),e.data.searchData.length>0?(n(18,z=e.data.searchData),n(24,Q=!0),z&&z.forEach((e=>{e.isFavorite=ue(e.id)}))):(n(18,z=[]),n(24,Q=!1));break;case"OutOfRecentSearches":n(20,Z=!1),n(21,K=!1);break;case"SearchData":n(20,Z=!0),n(21,K=!1),n(18,z=e.data.searchData.items||[]),n(22,q=!0),e.data.receivedFavoriteResults&&(h=e.data.receivedFavoriteResults.items),z&&z.forEach((e=>{e.isFavorite=ue(e.id)}));break;case`CategoryData_${G}`:n(20,Z=!1),Y=!0,n(19,W=!0),n(22,q=!1),te=!1,e.data.receivedFavoriteResults&&(h=e.data.receivedFavoriteResults.items),oe(e.data.categoryId,0,e.data.visiblegames).then((e=>{n(17,s=e),n(18,z=s.games.items),z&&z.forEach((e=>{e.isFavorite=ue(e.id)}))}));break;case"CategoryChange":V=20;break;case"CategoryUpdate":n(20,Z=!1),Y=!1,n(22,q=!1),te=!0,n(35,G=e.data.itemId),"MOSTPLAYED"!==G&&n(19,W=!1),"true"!==O&&oe(0,0,V).then((e=>{n(17,s=e),s.games.items.forEach((e=>{e.isFavorite=ue(e.id)})),n(18,z=s.games.items),n(19,W=!1),
|
|
1400
1400
|
// @TODO: replace this quick fix - when there are only a few category games, the view scrolls to the footer
|
|
1401
|
-
z.length<10&&(X=!0,setTimeout((()=>{window.postMessage({type:"WidgetTopReference",scrollTop:X},window.location.href)}),500))}));break;case"FavoriteUpdate":Y=!0,n(18,z=
|
|
1401
|
+
z.length<10&&(X=!0,setTimeout((()=>{window.postMessage({type:"WidgetTopReference",scrollTop:X},window.location.href)}),500))}));break;case"FavoriteUpdate":Y=!0,n(18,z=s.games.items),z.forEach((e=>{e.isFavorite=ue(e.id)}));break;case"UpdateCategoryFavoriteGames":if(e.data.receivedFavoriteResults){if(h=e.data.receivedFavoriteResults.items,e.data.favStadalone)return;ee?Y||window.postMessage({type:"CategoryUpdate",itemId:G},window.location.href):window.postMessage({type:"FavoriteUpdate"},window.location.href)}break;case"ShowFavoriteSection":let t;Y=!1,e.data&&(t=e.data.receivedFavoriteResults.items,t.length&&t.forEach((e=>{e.gameModel&&(e.gameModel.isFavorite=!!e.gameModel)})),n(30,ae.items=
|
|
1402
1402
|
// separate favorites array into mobile and desktop favorites
|
|
1403
1403
|
function(e,t){let n=window.navigator.userAgent;
|
|
1404
1404
|
// make sure to display favored games specific to the platform used
|
|
1405
|
-
return _r(n)?e.filter((e=>{if(e.gameModel&&(e.gameModel.platform.includes("iPad")||e.gameModel.platform.includes("iPhone")||e.gameModel.platform.includes("Android")))return e})):e.filter((e=>{if(e.gameModel&&e.gameModel.platform.includes("PC"))return e}))}(t,ae.items),ae),n(30,ae.name="Favorites",ae),n(27,ee=!0),n(15,B=!1));break;case"UserSessionID":i=e.data.session,a=e.data.userID,"true"==_&&a&&a.length&&i&&i.length>0&&((e,t)=>{n(15,B=!0);let r={method:"GET",headers:{"X-SessionID":t}};new Promise(((t,i)=>{fetch(e,r).then((e=>e.json())).then((e=>{n(15,B=!1),h=e?e.items:[],z.forEach((e=>{e.isFavorite=ue(e.id)}));let r=z;n(18,z=void 0),n(18,z=r),t(h)})).catch((e=>{console.error(e),i(e)}))}))})(`${g}/player/${a}/favorites/`,i)}},ce=e=>{V+=1,V<=l&&
|
|
1405
|
+
return _r(n)?e.filter((e=>{if(e.gameModel&&(e.gameModel.platform.includes("iPad")||e.gameModel.platform.includes("iPhone")||e.gameModel.platform.includes("Android")))return e})):e.filter((e=>{if(e.gameModel&&e.gameModel.platform.includes("PC"))return e}))}(t,ae.items),ae),n(30,ae.name="Favorites",ae),n(27,ee=!0),n(15,B=!1));break;case"UserSessionID":i=e.data.session,a=e.data.userID,"true"==_&&a&&a.length&&i&&i.length>0&&((e,t)=>{n(15,B=!0);let r={method:"GET",headers:{"X-SessionID":t}};new Promise(((t,i)=>{fetch(e,r).then((e=>e.json())).then((e=>{n(15,B=!1),h=e?e.items:[],z.forEach((e=>{e.isFavorite=ue(e.id)}));let r=z;n(18,z=void 0),n(18,z=r),t(h)})).catch((e=>{console.error(e),i(e)}))}))})(`${g}/player/${a}/favorites/`,i)}},ce=e=>{V+=1,V<=l&&oe(0,0,V).then((e=>{n(17,s=e),
|
|
1406
1406
|
// @TODO categoryData type fix
|
|
1407
1407
|
/**
|
|
1408
1408
|
* This check is needed to prevent requests with less items
|
|
1409
1409
|
* that started before but ended after the last request to add items to list
|
|
1410
1410
|
* This could also use abort controller instead but refactoring is needed
|
|
1411
1411
|
*/
|
|
1412
|
-
|
|
1412
|
+
s.games.items.length>z.length&&(n(18,z=s.games.items),z.forEach((e=>{e.isFavorite=ue(e.id)})))}))},ue=e=>!!h&&-1!==h.findIndex((t=>t.id==e)),he=e=>{window.postMessage({type:"CategoryChange",itemId:e},window.location.href)};
|
|
1413
1413
|
// @TODO categoryId type
|
|
1414
|
-
C((()=>(window.addEventListener("visibilitychange",(e=>{document[m]?n(29,ie="disconnect"):n(29,ie="connect")})),window.addEventListener("message",le,!1),"FAVORITES"===G&&window.postMessage({type:"GetFavoredGame"},window.location.href),()=>{window.removeEventListener("message",le),window.removeEventListener("visibilitychange",le)})));return e.$$set=e=>{"categoryindex"in e&&n(36,p=e.categoryindex),"endpoint"in e&&n(0,g=e.endpoint),"datasource"in e&&n(37,y=e.datasource),"lang"in e&&n(1,v=e.lang),"session"in e&&n(2,b=e.session),"userid"in e&&n(3,w=e.userid),"favorites"in e&&n(4,_=e.favorites),"clientstyling"in e&&n(5,S=e.clientstyling),"clientstylingurl"in e&&n(6,x=e.clientstylingurl),"translationurl"in e&&n(38,T=e.translationurl),"currency"in e&&n(7,E=e.currency),"categoryid"in e&&n(35,G=e.categoryid),"categorygames"in e&&n(39,M=e.categorygames),"livecasino"in e&&n(8,L=e.livecasino),"visiblegames"in e&&n(40,I=e.visiblegames),"gamepagemodalurl"in e&&n(9,F=e.gamepagemodalurl),"integratedgameframedesktop"in e&&n(10
|
|
1414
|
+
C((()=>(window.addEventListener("visibilitychange",(e=>{document[m]?n(29,ie="disconnect"):n(29,ie="connect")})),window.addEventListener("message",le,!1),"FAVORITES"===G&&window.postMessage({type:"GetFavoredGame"},window.location.href),()=>{window.removeEventListener("message",le),window.removeEventListener("visibilitychange",le)})));return e.$$set=e=>{"categoryindex"in e&&n(36,p=e.categoryindex),"endpoint"in e&&n(0,g=e.endpoint),"datasource"in e&&n(37,y=e.datasource),"lang"in e&&n(1,v=e.lang),"session"in e&&n(2,b=e.session),"userid"in e&&n(3,w=e.userid),"favorites"in e&&n(4,_=e.favorites),"clientstyling"in e&&n(5,S=e.clientstyling),"clientstylingurl"in e&&n(6,x=e.clientstylingurl),"translationurl"in e&&n(38,T=e.translationurl),"currency"in e&&n(7,E=e.currency),"categoryid"in e&&n(35,G=e.categoryid),"categorygames"in e&&n(39,M=e.categorygames),"livecasino"in e&&n(8,L=e.livecasino),"visiblegames"in e&&n(40,I=e.visiblegames),"gamepagemodalurl"in e&&n(9,F=e.gamepagemodalurl),"integratedgameframedesktop"in e&&n(10,$=e.integratedgameframedesktop),"integratedgameframemobile"in e&&n(11,D=e.integratedgameframemobile),"casinomygames"in e&&n(12,O=e.casinomygames),"once"in e&&n(41,P=e.once),"top"in e&&n(42,N=e.top),"bottom"in e&&n(43,A=e.bottom),"left"in e&&n(44,R=e.left),"right"in e&&n(45,H=e.right)},e.$$.update=()=>{/*thumbnailContainer*/16384&e.$$.dirty[0]|/*dataloaded*/32768&e.$$.dirty[1]&&f&&ne&&te&&ne.forEach(((e,t)=>{e&&(
|
|
1415
1415
|
// Hack to make sure that I can identify the thumbnail index
|
|
1416
|
-
e.elems_index=t,
|
|
1416
|
+
e.elems_index=t,se.observe(e))})),/*lang*/2&e.$$.dirty[0]|/*categoryid*/16&e.$$.dirty[1]&&v&&G&&(()=>{
|
|
1417
1417
|
// showFavGamesCategory vs categoryData
|
|
1418
1418
|
// favoriteGamesData vs shownCategoryData
|
|
1419
|
-
switch(G){case"FAVORITES":n(27,ee=!0);break;case"MOSTPLAYED":case"LASTPLAYED":"false"===O&&n(27,ee=!1)}})(),/*translationurl*/128&e.$$.dirty[1]&&T&&fetch(T).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Er(t,e[t])}))})).catch((e=>{console.log(e)})),/*clientstyling, customStylingContainer*/8224&e.$$.dirty[0]&&S&&d&&(()=>{let e=document.createElement("style");e.innerHTML=S,d.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/8256&e.$$.dirty[0]&&x&&d&&(()=>{let e=new URL(x),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{d.appendChild(t)}),1)}))})()},[g,v,b,w,_,S,x,E,L,F,
|
|
1419
|
+
switch(G){case"FAVORITES":n(27,ee=!0);break;case"MOSTPLAYED":case"LASTPLAYED":"false"===O&&n(27,ee=!1)}})(),/*translationurl*/128&e.$$.dirty[1]&&T&&fetch(T).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Er(t,e[t])}))})).catch((e=>{console.log(e)})),/*clientstyling, customStylingContainer*/8224&e.$$.dirty[0]&&S&&d&&(()=>{let e=document.createElement("style");e.innerHTML=S,d.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/8256&e.$$.dirty[0]&&x&&d&&(()=>{let e=new URL(x),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{d.appendChild(t)}),1)}))})()},[g,v,b,w,_,S,x,E,L,F,$,D,O,d,ne,B,U,s,z,W,Z,K,q,J,Q,o,c,ee,re,ie,ae,r,j,e=>{if(0===(null==e?void 0:e.length))return"";let t,n,r=99999999999;const i=new Date(Date.now());return e.forEach(((a,s)=>{const o=new Date(a.schedules[0].startTime),l=new Date(a.schedules[0].endTime);Mr(l).diff(i)<r&&(r=Mr(l).diff(i),n=s),Mr(i).isAfter(o)&&Mr(i).isBefore(l)&&(t=e[n].name)})),t},he,G,p,y,T,M,I,P,N,A,R,H,f,function(e){k[e?"unshift":"push"]((()=>{c=e,n(26,c)}))},e=>he(s.id),function(e,t){k[e?"unshift":"push"]((()=>{ne[t]=e,n(14,ne)}))},function(e){k[e?"unshift":"push"]((()=>{o=e,n(25,o)}))},function(e){k[e?"unshift":"push"]((()=>{c=e,n(26,c)}))},function(e){k[e?"unshift":"push"]((()=>{o=e,n(25,o)}))},function(e){k[e?"unshift":"push"]((()=>{d=e,n(13,d)}))}]}
|
|
1420
1420
|
/* src/CasinoLastPlayedSection.svelte generated by Svelte v3.48.0 */
|
|
1421
1421
|
function Yi(e){let t;return{c(){t=p("casino-games-category-section"),S(t,"session",/*session*/e[4]),S(t,"userid",/*userid*/e[5]),S(t,"endpoint",/*endpoint*/e[0]),S(t,"datasource",/*datasource*/e[1]),S(t,"lang",/*lang*/e[3]),S(t,"currency",/*currency*/e[2]),S(t,"favorites",/*favorites*/e[13]),S(t,"categoryid","LASTPLAYED"),S(t,"categoryindex","1"),S(t,"categorygames","9"),S(t,"class","CategoryContainer"),S(t,"clientstyling",/*clientstyling*/e[6]),S(t,"clientstylingurl",/*clientstylingurl*/e[7]),S(t,"livecasino",/*livecasino*/e[8]),S(t,"visiblegames",/*visiblegames*/e[12]),S(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),S(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[10]),S(t,"integratedgameframemobile",/*integratedgameframemobile*/e[9]),S(t,"casinomygames",/*casinomygames*/e[14])},m(e,n){d(e,t,n)},p(e,n){/*session*/16&n[0]&&S(t,"session",/*session*/e[4]),/*userid*/32&n[0]&&S(t,"userid",/*userid*/e[5]),/*endpoint*/1&n[0]&&S(t,"endpoint",/*endpoint*/e[0]),/*datasource*/2&n[0]&&S(t,"datasource",/*datasource*/e[1]),/*lang*/8&n[0]&&S(t,"lang",/*lang*/e[3]),/*currency*/4&n[0]&&S(t,"currency",/*currency*/e[2]),/*favorites*/8192&n[0]&&S(t,"favorites",/*favorites*/e[13]),/*clientstyling*/64&n[0]&&S(t,"clientstyling",/*clientstyling*/e[6]),/*clientstylingurl*/128&n[0]&&S(t,"clientstylingurl",/*clientstylingurl*/e[7]),/*livecasino*/256&n[0]&&S(t,"livecasino",/*livecasino*/e[8]),/*visiblegames*/4096&n[0]&&S(t,"visiblegames",/*visiblegames*/e[12]),/*gamepagemodalurl*/2048&n[0]&&S(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),/*integratedgameframedesktop*/1024&n[0]&&S(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[10]),/*integratedgameframemobile*/512&n[0]&&S(t,"integratedgameframemobile",/*integratedgameframemobile*/e[9]),/*casinomygames*/16384&n[0]&&S(t,"casinomygames",/*casinomygames*/e[14])},d(e){e&&m(t)}}}
|
|
1422
|
-
// (
|
|
1422
|
+
// (135:4) {#if lastPlayedEmpty}
|
|
1423
1423
|
function ji(e){let t,n,r=/*$_*/e[17]("LastPlayedTranslations.noRecentGames")+"";return{c(){t=p("p"),n=y(r),_(t,"class","SearchLoading")},m(e,r){d(e,t,r),h(t,n)},p(e,t){/*$_*/131072&t[0]&&r!==(r=/*$_*/e[17]("LastPlayedTranslations.noRecentGames")+"")&&x(n,r)},d(e){e&&m(t)}}}function zi(t){let n,r;function i(e,t){/*lastPlayedEmpty*/
|
|
1424
|
-
return e[16]?ji:Yi}let a=i(t),
|
|
1425
|
-
/*div1_binding*/t[
|
|
1426
|
-
/*div1_binding*/t[20](null)}}}function Wi(e,t,n){let r;u(e,wr,(e=>n(17,r=e)));let i,a,{endpoint:o=""}=t,{datasource:s=""}=t,{currency:l=""}=t,{lang:c=""}=t,{session:h=""}=t,{userid:d=""}=t,{clientstyling:m=""}=t,{clientstylingurl:f=""}=t,{translationurl:p=""}=t,{livecasino:g="false"}=t,{integratedgameframemobile:y="false"}=t,{integratedgameframedesktop:v="false"}=t,{gamepagemodalurl:b="false"}=t,{visiblegames:w=""}=t,{favorites:_=""}=t,{lastplayedperiod:S=""}=t,{casinomygames:x="false"}=t,T=window.navigator.userAgent,E=!1,G=[];Object.keys(Tr).forEach((e=>{xr(e,Tr[e])}));const M=()=>{var e;(e={device:Sr(T),period:S||"Last30Days"},new Promise(((t,n)=>{let r=new URL(`${o}/player/${d}/games/last-played`);e.limit&&r.searchParams.append("limit","10"),e.order&&r.searchParams.append("order",e.order);let a=e.device;a?"PC"===a?r.searchParams.append("device","Desktop"):r.searchParams.append("device","Mobile"):r.searchParams.append("device","All"),e.period&&r.searchParams.append("period","Last30Days"),i=g?r:r.href,fetch(i).then((e=>e.json())).then((e=>{e.items=e.items.filter((t=>{let n=!0;return"OddsMatrix2"==t.gameCode&&(e.count--,n=!1),n})),t(e),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:e},window.location.href)})).catch((e=>{console.error(e),n(e)}))}))).then((e=>{if(window.postMessage({type:"GetFavoredGame"},window.location.href),e.count>0){let t=[];e.items.forEach((e=>{let n=new URL(`${o}/casino/games/${e.gameId}`);n.searchParams.append("datasource",s),t.push(fetch(n.href).then((e=>e.json())))})),Promise.all(t).then((e=>{G=e.map((e=>e[0])),window.postMessage({type:"LastPlayedData",lastPlayedGames:G},window.location.href)}))}else n(16,E=!0)}))},C=()=>{var e;e=c,lr.set(e)};return e.$$set=e=>{"endpoint"in e&&n(0,o=e.endpoint),"datasource"in e&&n(1,s=e.datasource),"currency"in e&&n(2,l=e.currency),"lang"in e&&n(3,c=e.lang),"session"in e&&n(4,h=e.session),"userid"in e&&n(5,d=e.userid),"clientstyling"in e&&n(6,m=e.clientstyling),"clientstylingurl"in e&&n(7,f=e.clientstylingurl),"translationurl"in e&&n(18,p=e.translationurl),"livecasino"in e&&n(8,g=e.livecasino),"integratedgameframemobile"in e&&n(9,y=e.integratedgameframemobile),"integratedgameframedesktop"in e&&n(10,v=e.integratedgameframedesktop),"gamepagemodalurl"in e&&n(11,b=e.gamepagemodalurl),"visiblegames"in e&&n(12,w=e.visiblegames),"favorites"in e&&n(13,_=e.favorites),"lastplayedperiod"in e&&n(19,S=e.lastplayedperiod),"casinomygames"in e&&n(14,x=e.casinomygames)},e.$$.update=()=>{/*endpoint, userid, lang*/41&e.$$.dirty[0]&&o&&d&&c&&M(),/*translationurl*/262144&e.$$.dirty[0]&&p&&(()=>{let e=translationUrl;fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{xr(t,e[t])}))})).catch((e=>{console.log(e)}))})(),/*clientstyling, customStylingContainer*/32832&e.$$.dirty[0]&&m&&a&&(()=>{let e=document.createElement("style");e.innerHTML=m,a.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/32896&e.$$.dirty[0]&&f&&a&&(()=>{let e=document.createElement("style");fetch(new URL(f)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{a.appendChild(e)}),1)}))})(),/*lang*/8&e.$$.dirty[0]&&c&&C()},[o,s,l,c,h,d,m,f,g,y,v,b,w,_,x,a,E,r,p,S,function(e){k[e?"unshift":"push"]((()=>{a=e,n(15,a)}))}]}!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",class extends j{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CategoryName,.StatusText{color:var(--emfe-w-color-white, #FFFFFF);font-size:22px;font-weight:500}.CategoryLoadMore{font-size:14px;color:var(--emfe-w-color-white, #FFFFFF)}.NoSearchResults{color:var(--emfe-w-color-white, #FFFFFF);text-align:center;width:100%;padding-left:5px;font-size:16px}.NoRecentSearches{padding-bottom:30px}.NoRecentSearchesCenter{text-align:center}.NoFavoriteGames{color:var(--emfe-w-color-white, #FFFFFF);font-size:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 20px;height:20vh}.NoFavoriteGames .UnfavoredIcon{width:50px;height:50px}.NoFavoriteGames .NoFavoriteText{text-align:center}.NoFavoriteGames .NoFavoriteTextHighlight{font-weight:600;font-size:18px;padding:15px 0}.NoFavoriteGamesMobile{height:50vh}.SearchWaiting{grid-column:1/-1;color:var(--emfe-w-color-white, #FFFFFF);font-size:13px;text-align:center}.CasinoGamesHeader{width:100%;display:flex;align-items:center;justify-content:space-between;padding:8px 5px 0;margin-bottom:16px}.CasinoGamesHeader .CategoryNameLink{display:block;cursor:pointer}.CasinoGamesHeader .CategoryLoadMore{font-weight:normal}.CasinoGamesHeader.Searched{justify-content:center}.CasinoGamesContainer{width:100%;margin-top:24px;padding-bottom:16px}.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}.CasinoGamesGrid .game-tile-2x1{grid-row:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-2x1{grid-row:span 1}}.CasinoGamesGrid .game-tile-2x2{grid-row:span 2;grid-column:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-2x2{grid-row:span 1;grid-column:span 1}}.CasinoGamesGrid .game-tile-1x2{grid-column:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-1x2{grid-column:span 1}}.CasinoGamesGrid.GamesListIncreasedGap{gap:28px}@media screen and (max-width: 385px){.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}}@media screen and (max-width: 480px){.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}}@media screen and (min-width: 1100px){.CasinoGamesGrid{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}.SearchLoading{display:block;padding:50px;color:var(--emfe-w-color-white, #FFFFFF)}.lds-dual-ring{display:block;width:80px;height:80px;margin:0 auto}.lds-dual-ring:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}</style>',Y(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Ui,Hi,a,{categoryindex:36,endpoint:0,datasource:37,lang:1,session:2,userid:3,favorites:4,clientstyling:5,clientstylingurl:6,translationurl:38,currency:7,categoryid:35,categorygames:39,livecasino:8,visiblegames:40,gamepagemodalurl:9,integratedgameframedesktop:10,integratedgameframemobile:11,casinomygames:12,once:41,top:42,bottom:43,left:44,right:45},null,[-1,-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["categoryindex","endpoint","datasource","lang","session","userid","favorites","clientstyling","clientstylingurl","translationurl","currency","categoryid","categorygames","livecasino","visiblegames","gamepagemodalurl","integratedgameframedesktop","integratedgameframemobile","casinomygames","once","top","bottom","left","right"]}get categoryindex(){return this.$$.ctx[36]}set categoryindex(e){this.$$set({categoryindex:e}),H()}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),H()}get datasource(){return this.$$.ctx[37]}set datasource(e){this.$$set({datasource:e}),H()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),H()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),H()}get userid(){return this.$$.ctx[3]}set userid(e){this.$$set({userid:e}),H()}get favorites(){return this.$$.ctx[4]}set favorites(e){this.$$set({favorites:e}),H()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get translationurl(){return this.$$.ctx[38]}set translationurl(e){this.$$set({translationurl:e}),H()}get currency(){return this.$$.ctx[7]}set currency(e){this.$$set({currency:e}),H()}get categoryid(){return this.$$.ctx[35]}set categoryid(e){this.$$set({categoryid:e}),H()}get categorygames(){return this.$$.ctx[39]}set categorygames(e){this.$$set({categorygames:e}),H()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),H()}get visiblegames(){return this.$$.ctx[40]}set visiblegames(e){this.$$set({visiblegames:e}),H()}get gamepagemodalurl(){return this.$$.ctx[9]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),H()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),H()}get integratedgameframemobile(){return this.$$.ctx[11]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),H()}get casinomygames(){return this.$$.ctx[12]}set casinomygames(e){this.$$set({casinomygames:e}),H()}get once(){return this.$$.ctx[41]}set once(e){this.$$set({once:e}),H()}get top(){return this.$$.ctx[42]}set top(e){this.$$set({top:e}),H()}get bottom(){return this.$$.ctx[43]}set bottom(e){this.$$set({bottom:e}),H()}get left(){return this.$$.ctx[44]}set left(e){this.$$set({left:e}),H()}get right(){return this.$$.ctx[45]}set right(e){this.$$set({right:e}),H()}});class Vi extends j{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoLastPlayedSection{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}</style>',Y(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Wi,zi,a,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,translationurl:18,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,visiblegames:12,favorites:13,lastplayedperiod:19,casinomygames:14},null,[-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","translationurl","livecasino","integratedgameframemobile","integratedgameframedesktop","gamepagemodalurl","visiblegames","favorites","lastplayedperiod","casinomygames"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),H()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),H()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),H()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),H()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),H()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),H()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),H()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),H()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),H()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),H()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),H()}get visiblegames(){return this.$$.ctx[12]}set visiblegames(e){this.$$set({visiblegames:e}),H()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),H()}get lastplayedperiod(){return this.$$.ctx[19]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),H()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),H()}}return!customElements.get("casino-last-played-section")&&customElements.define("casino-last-played-section",Vi),Vi}));
|
|
1424
|
+
return e[16]?ji:Yi}let a=i(t),s=a(t);return{c(){n=p("div"),r=p("div"),s.c(),this.c=e,_(r,"class","CasinoLastPlayedSection"),_(n,"class","CasinoGamesCategorySectionContainer")},m(e,i){d(e,n,i),h(n,r),s.m(r,null),
|
|
1425
|
+
/*div1_binding*/t[23](n)},p(e,t){a===(a=i(e))&&s?s.p(e,t):(s.d(1),s=a(e),s&&(s.c(),s.m(r,null)))},i:e,o:e,d(e){e&&m(n),s.d(),
|
|
1426
|
+
/*div1_binding*/t[23](null)}}}function Wi(e,t,n){let r;u(e,wr,(e=>n(17,r=e)));let i,a,{endpoint:s=""}=t,{datasource:o=""}=t,{currency:l=""}=t,{lang:c=""}=t,{session:h=""}=t,{userid:d=""}=t,{clientstyling:m=""}=t,{clientstylingurl:f=""}=t,{translationurl:p=""}=t,{livecasino:g="false"}=t,{integratedgameframemobile:y="false"}=t,{integratedgameframedesktop:v="false"}=t,{gamepagemodalurl:b="false"}=t,{visiblegames:w=""}=t,{favorites:_=""}=t,{lastplayedperiod:S="Last30Days"}=t,{lastplayedorder:x=""}=t,{lastplayedlimit:T=""}=t,{casinomygames:E="false"}=t,{lastplayedunique:G="true"}=t,M=window.navigator.userAgent,C=!1,L=[];Object.keys(Tr).forEach((e=>{xr(e,Tr[e])}));const I=()=>{new Promise(((e,t)=>{let n=new URL(`${s}/player/${d}/games/last-played`);n.searchParams.append("unique",G),n.searchParams.append("limit",T),n.searchParams.append("order",x),n.searchParams.append("period",S),"PC"===Sr(M)?n.searchParams.append("device","Desktop"):n.searchParams.append("device","Mobile"),i=g?n:n.href,fetch(i).then((e=>e.json())).then((t=>{t.items=t.items.filter((e=>{let n=!0;return"OddsMatrix2"==e.gameCode&&(t.count--,n=!1),n})),e(t),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:t},window.location.href)})).catch((e=>{console.error(e),t(e)}))})).then((e=>{if(window.postMessage({type:"GetFavoredGame"},window.location.href),e.count>0){let t=[];e.items.forEach((e=>{let n=new URL(`${s}/casino/games/${e.gameId}`);n.searchParams.append("datasource",o),t.push(fetch(n.href).then((e=>e.json())))})),Promise.all(t).then((e=>{L=e.map((e=>e[0])),window.postMessage({type:"LastPlayedData",lastPlayedGames:L},window.location.href)}))}else n(16,C=!0)}))},F=()=>{var e;e=c,lr.set(e)};return e.$$set=e=>{"endpoint"in e&&n(0,s=e.endpoint),"datasource"in e&&n(1,o=e.datasource),"currency"in e&&n(2,l=e.currency),"lang"in e&&n(3,c=e.lang),"session"in e&&n(4,h=e.session),"userid"in e&&n(5,d=e.userid),"clientstyling"in e&&n(6,m=e.clientstyling),"clientstylingurl"in e&&n(7,f=e.clientstylingurl),"translationurl"in e&&n(18,p=e.translationurl),"livecasino"in e&&n(8,g=e.livecasino),"integratedgameframemobile"in e&&n(9,y=e.integratedgameframemobile),"integratedgameframedesktop"in e&&n(10,v=e.integratedgameframedesktop),"gamepagemodalurl"in e&&n(11,b=e.gamepagemodalurl),"visiblegames"in e&&n(12,w=e.visiblegames),"favorites"in e&&n(13,_=e.favorites),"lastplayedperiod"in e&&n(19,S=e.lastplayedperiod),"lastplayedorder"in e&&n(20,x=e.lastplayedorder),"lastplayedlimit"in e&&n(21,T=e.lastplayedlimit),"casinomygames"in e&&n(14,E=e.casinomygames),"lastplayedunique"in e&&n(22,G=e.lastplayedunique)},e.$$.update=()=>{/*endpoint, userid, lang*/41&e.$$.dirty[0]&&s&&d&&c&&I(),/*translationurl*/262144&e.$$.dirty[0]&&p&&(()=>{let e=translationUrl;fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{xr(t,e[t])}))})).catch((e=>{console.log(e)}))})(),/*clientstyling, customStylingContainer*/32832&e.$$.dirty[0]&&m&&a&&(()=>{let e=document.createElement("style");e.innerHTML=m,a.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/32896&e.$$.dirty[0]&&f&&a&&(()=>{let e=document.createElement("style");fetch(new URL(f)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{a.appendChild(e)}),1)}))})(),/*lang*/8&e.$$.dirty[0]&&c&&F()},[s,o,l,c,h,d,m,f,g,y,v,b,w,_,E,a,C,r,p,S,x,T,G,function(e){k[e?"unshift":"push"]((()=>{a=e,n(15,a)}))}]}!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",class extends j{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CategoryName,.StatusText{color:var(--emfe-w-color-white, #FFFFFF);font-size:22px;font-weight:500}.CategoryLoadMore{font-size:14px;color:var(--emfe-w-color-white, #FFFFFF)}.NoSearchResults{color:var(--emfe-w-color-white, #FFFFFF);text-align:center;width:100%;padding-left:5px;font-size:16px}.NoRecentSearches{padding-bottom:30px}.NoRecentSearchesCenter{text-align:center}.NoFavoriteGames{color:var(--emfe-w-color-white, #FFFFFF);font-size:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 20px;height:20vh}.NoFavoriteGames .UnfavoredIcon{width:50px;height:50px}.NoFavoriteGames .NoFavoriteText{text-align:center}.NoFavoriteGames .NoFavoriteTextHighlight{font-weight:600;font-size:18px;padding:15px 0}.NoFavoriteGamesMobile{height:50vh}.SearchWaiting{grid-column:1/-1;color:var(--emfe-w-color-white, #FFFFFF);font-size:13px;text-align:center}.CasinoGamesHeader{width:100%;display:flex;align-items:center;justify-content:space-between;padding:8px 5px 0;margin-bottom:16px}.CasinoGamesHeader .CategoryNameLink{display:block;cursor:pointer}.CasinoGamesHeader .CategoryLoadMore{font-weight:normal}.CasinoGamesHeader.Searched{justify-content:center}.CasinoGamesContainer{width:100%;margin-top:24px;padding-bottom:16px}.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}.CasinoGamesGrid .game-tile-2x1{grid-row:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-2x1{grid-row:span 1}}.CasinoGamesGrid .game-tile-2x2{grid-row:span 2;grid-column:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-2x2{grid-row:span 1;grid-column:span 1}}.CasinoGamesGrid .game-tile-1x2{grid-column:span 2}@media screen and (max-width: 375px){.CasinoGamesGrid .game-tile-1x2{grid-column:span 1}}.CasinoGamesGrid.GamesListIncreasedGap{gap:28px}@media screen and (max-width: 385px){.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}}@media screen and (max-width: 480px){.CasinoGamesGrid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}}@media screen and (min-width: 1100px){.CasinoGamesGrid{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}.SearchLoading{display:block;padding:50px;color:var(--emfe-w-color-white, #FFFFFF)}.lds-dual-ring{display:block;width:80px;height:80px;margin:0 auto}.lds-dual-ring:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}</style>',Y(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Ui,Hi,a,{categoryindex:36,endpoint:0,datasource:37,lang:1,session:2,userid:3,favorites:4,clientstyling:5,clientstylingurl:6,translationurl:38,currency:7,categoryid:35,categorygames:39,livecasino:8,visiblegames:40,gamepagemodalurl:9,integratedgameframedesktop:10,integratedgameframemobile:11,casinomygames:12,once:41,top:42,bottom:43,left:44,right:45},null,[-1,-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["categoryindex","endpoint","datasource","lang","session","userid","favorites","clientstyling","clientstylingurl","translationurl","currency","categoryid","categorygames","livecasino","visiblegames","gamepagemodalurl","integratedgameframedesktop","integratedgameframemobile","casinomygames","once","top","bottom","left","right"]}get categoryindex(){return this.$$.ctx[36]}set categoryindex(e){this.$$set({categoryindex:e}),H()}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),H()}get datasource(){return this.$$.ctx[37]}set datasource(e){this.$$set({datasource:e}),H()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),H()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),H()}get userid(){return this.$$.ctx[3]}set userid(e){this.$$set({userid:e}),H()}get favorites(){return this.$$.ctx[4]}set favorites(e){this.$$set({favorites:e}),H()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get translationurl(){return this.$$.ctx[38]}set translationurl(e){this.$$set({translationurl:e}),H()}get currency(){return this.$$.ctx[7]}set currency(e){this.$$set({currency:e}),H()}get categoryid(){return this.$$.ctx[35]}set categoryid(e){this.$$set({categoryid:e}),H()}get categorygames(){return this.$$.ctx[39]}set categorygames(e){this.$$set({categorygames:e}),H()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),H()}get visiblegames(){return this.$$.ctx[40]}set visiblegames(e){this.$$set({visiblegames:e}),H()}get gamepagemodalurl(){return this.$$.ctx[9]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),H()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),H()}get integratedgameframemobile(){return this.$$.ctx[11]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),H()}get casinomygames(){return this.$$.ctx[12]}set casinomygames(e){this.$$set({casinomygames:e}),H()}get once(){return this.$$.ctx[41]}set once(e){this.$$set({once:e}),H()}get top(){return this.$$.ctx[42]}set top(e){this.$$set({top:e}),H()}get bottom(){return this.$$.ctx[43]}set bottom(e){this.$$set({bottom:e}),H()}get left(){return this.$$.ctx[44]}set left(e){this.$$set({left:e}),H()}get right(){return this.$$.ctx[45]}set right(e){this.$$set({right:e}),H()}});class Vi extends j{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoLastPlayedSection{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}</style>',Y(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Wi,zi,a,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,translationurl:18,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,visiblegames:12,favorites:13,lastplayedperiod:19,lastplayedorder:20,lastplayedlimit:21,casinomygames:14,lastplayedunique:22},null,[-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","translationurl","livecasino","integratedgameframemobile","integratedgameframedesktop","gamepagemodalurl","visiblegames","favorites","lastplayedperiod","lastplayedorder","lastplayedlimit","casinomygames","lastplayedunique"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),H()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),H()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),H()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),H()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),H()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),H()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),H()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),H()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),H()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),H()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),H()}get visiblegames(){return this.$$.ctx[12]}set visiblegames(e){this.$$set({visiblegames:e}),H()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),H()}get lastplayedperiod(){return this.$$.ctx[19]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),H()}get lastplayedorder(){return this.$$.ctx[20]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),H()}get lastplayedlimit(){return this.$$.ctx[21]}set lastplayedlimit(e){this.$$set({lastplayedlimit:e}),H()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),H()}get lastplayedunique(){return this.$$.ctx[22]}set lastplayedunique(e){this.$$set({lastplayedunique:e}),H()}}return!customElements.get("casino-last-played-section")&&customElements.define("casino-last-played-section",Vi),Vi}));
|
|
1427
1427
|
//# sourceMappingURL=casino-last-played-section.js.map
|