@everymatrix/casino-calendar 1.20.2 → 1.20.4

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.
@@ -5,14 +5,14 @@
5
5
  */function f(t,e){t.appendChild(e)}function y(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function m(t){const e=w("style");return function(t,e){f(t.head||t,e),e.sheet}(y(t),e),e.sheet}function g(t,e,n){t.insertBefore(e,n||null)}function b(t){t.parentNode&&t.parentNode.removeChild(t)}function v(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function w(t){return document.createElement(t)}function E(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function _(t){return document.createTextNode(t)}function T(){return _(" ")}function x(){return _("")}function C(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function B(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function A(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:B(t,e,n)}function H(t,e){e=""+e,t.data!==e&&(t.data=e)}function S(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}
6
6
  // unfortunately this can't be a constant as that wouldn't be tree-shakeable
7
7
  // so we cache the result instead
8
- let P;function L(){if(void 0===P){P=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(t){P=!0}}return P}function I(t){const e={};for(const n of t)e[n.name]=n.value;return e}
8
+ let P;function L(){if(void 0===P){P=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(t){P=!0}}return P}function $(t){const e={};for(const n of t)e[n.name]=n.value;return e}
9
9
  // we need to store the information for multiple documents because a Svelte application could also contain iframes
10
10
  // https://github.com/sveltejs/svelte/issues/3624
11
- const $=new Map;let M,O=0;
11
+ const I=new Map;let M,O=0;
12
12
  // https://github.com/darkskyapp/string-hash/blob/master/index.js
13
- function N(t,e,n,r,i,o,s,a=0){const l=16.666/r;let c="{\n";for(let t=0;t<=1;t+=l){const r=e+(n-e)*o(t);c+=100*t+`%{${s(r,1-r)}}\n`}const u=c+`100% {${s(n,1-n)}}\n}`,h=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${a}`,d=y(t),{stylesheet:p,rules:f}=$.get(d)||function(t,e){const n={stylesheet:m(e),rules:{}};return $.set(t,n),n}(d,t);f[h]||(f[h]=!0,p.insertRule(`@keyframes ${h} ${u}`,p.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${h} ${r}ms linear ${i}ms 1 both`,O+=1,h}function R(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),i=n.length-r.length;i&&(t.style.animation=r.join(", "),O-=i,O||h((()=>{O||($.forEach((t=>{const{ownerNode:e}=t.stylesheet;
13
+ function R(t,e,n,r,i,o,s,a=0){const l=16.666/r;let c="{\n";for(let t=0;t<=1;t+=l){const r=e+(n-e)*o(t);c+=100*t+`%{${s(r,1-r)}}\n`}const u=c+`100% {${s(n,1-n)}}\n}`,h=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${a}`,d=y(t),{stylesheet:p,rules:f}=I.get(d)||function(t,e){const n={stylesheet:m(e),rules:{}};return I.set(t,n),n}(d,t);f[h]||(f[h]=!0,p.insertRule(`@keyframes ${h} ${u}`,p.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${h} ${r}ms linear ${i}ms 1 both`,O+=1,h}function N(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),i=n.length-r.length;i&&(t.style.animation=r.join(", "),O-=i,O||h((()=>{O||(I.forEach((t=>{const{ownerNode:e}=t.stylesheet;
14
14
  // there is no ownerNode if it runs on jsdom.
15
- e&&b(e)})),$.clear())})))}function D(t){M=t}
15
+ e&&b(e)})),I.clear())})))}function D(t){M=t}
16
16
  /**
17
17
  * The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
18
18
  * It must be called during the component's initialisation (but doesn't need to live *inside* the component;
@@ -60,12 +60,12 @@ for(let t=0;t<G.length;t+=1){const e=G[t];W.has(e)||(
60
60
  W.add(e),e())}G.length=0}while(F.length);for(;j.length;)j.pop()();V=!1,W.clear(),D(t)}function q(t){if(null!==t.fragment){t.update(),i(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(X)}}
61
61
  /**
62
62
  * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
63
- */function J(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,r,e),i}(`${e?"intro":"outro"}${n}`))}const Q=new Set;let tt;function et(t,e){t&&t.i&&(Q.delete(t),t.i(e))}function nt(t,e,n,r){if(t&&t.o){if(Q.has(t))return;Q.add(t),tt.c.push((()=>{Q.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const rt={duration:0};function it(n,r,s,a){const l={direction:"both"};let c=r(n,s,l),f=a?0:1,y=null,m=null,g=null;function b(){g&&R(n,g)}function v(t,e){const n=t.b-f;return e*=Math.abs(n),{a:f,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function w(r){const{delay:o=0,duration:s=300,easing:a=e,tick:l=t,css:w}=c||rt,E={start:u()+o,b:r};r||(
63
+ */function J(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,r,e),i}(`${e?"intro":"outro"}${n}`))}const Q=new Set;let tt;function et(t,e){t&&t.i&&(Q.delete(t),t.i(e))}function nt(t,e,n,r){if(t&&t.o){if(Q.has(t))return;Q.add(t),tt.c.push((()=>{Q.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const rt={duration:0};function it(n,r,s,a){const l={direction:"both"};let c=r(n,s,l),f=a?0:1,y=null,m=null,g=null;function b(){g&&N(n,g)}function v(t,e){const n=t.b-f;return e*=Math.abs(n),{a:f,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function w(r){const{delay:o=0,duration:s=300,easing:a=e,tick:l=t,css:w}=c||rt,E={start:u()+o,b:r};r||(
64
64
  // @ts-ignore todo: improve typings
65
65
  E.group=tt,tt.r+=1),y||m?m=E:(
66
66
  // if this is an intro, and there's a delay, we need to do
67
67
  // an initial tick and/or apply CSS animation immediately
68
- w&&(b(),g=N(n,f,r,s,o,a,w)),r&&l(0,1),y=v(E,s),X((()=>J(n,r,"start"))),function(t){let e;0===d.size&&h(p),new Promise((n=>{d.add(e={c:t,f:n})}))}((t=>{if(m&&t>m.start&&(y=v(m,s),m=null,J(n,y.b,"start"),w&&(b(),g=N(n,f,y.b,y.duration,0,a,c.css))),y)if(t>=y.end)l(f=y.b,1-f),J(n,y.b,"end"),m||(
68
+ w&&(b(),g=R(n,f,r,s,o,a,w)),r&&l(0,1),y=v(E,s),X((()=>J(n,r,"start"))),function(t){let e;0===d.size&&h(p),new Promise((n=>{d.add(e={c:t,f:n})}))}((t=>{if(m&&t>m.start&&(y=v(m,s),m=null,J(n,y.b,"start"),w&&(b(),g=R(n,f,y.b,y.duration,0,a,c.css))),y)if(t>=y.end)l(f=y.b,1-f),J(n,y.b,"end"),m||(
69
69
  // we're done
70
70
  y.b?
71
71
  // intro — we can tidy up immediately
@@ -128,7 +128,7 @@ wt.prototype.append=function(t,e){t=gt(t),e=bt(e);var n=this.map[t];this.map[t]=
128
128
  // Search for a '_' parameter in the query string
129
129
  var o=/([?&])_=[^&]*/;if(o.test(this.url))
130
130
  // If it already exists then set the value with the current time
131
- this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Ht(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function St(t,e){if(!(this instanceof St))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new wt(e.headers),this.url=e.url||"",this._initBody(t)}At.prototype.clone=function(){return new At(this,{body:this._bodyInit})},Ct.call(At.prototype),Ct.call(St.prototype),St.prototype.clone=function(){return new St(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new wt(this.headers),url:this.url})},St.error=function(){var t=new St(null,{status:200,statusText:""});return t.status=0,t.type="error",t};var Pt=[301,302,303,307,308];St.redirect=function(t,e){if(-1===Pt.indexOf(e))throw new RangeError("Invalid status code");return new St(null,{status:e,headers:{location:t}})};var Lt=ct.DOMException;try{new Lt}catch(t){(Lt=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),Lt.prototype.constructor=Lt}function It(t,e){return new Promise((function(n,r){var i=new At(t,e);if(i.signal&&i.signal.aborted)return r(new Lt("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}if(o.onload=function(){var t,e,r={statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",e=new wt,
131
+ this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Ht(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function St(t,e){if(!(this instanceof St))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new wt(e.headers),this.url=e.url||"",this._initBody(t)}At.prototype.clone=function(){return new At(this,{body:this._bodyInit})},Ct.call(At.prototype),Ct.call(St.prototype),St.prototype.clone=function(){return new St(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new wt(this.headers),url:this.url})},St.error=function(){var t=new St(null,{status:200,statusText:""});return t.status=0,t.type="error",t};var Pt=[301,302,303,307,308];St.redirect=function(t,e){if(-1===Pt.indexOf(e))throw new RangeError("Invalid status code");return new St(null,{status:e,headers:{location:t}})};var Lt=ct.DOMException;try{new Lt}catch(t){(Lt=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),Lt.prototype.constructor=Lt}function $t(t,e){return new Promise((function(n,r){var i=new At(t,e);if(i.signal&&i.signal.aborted)return r(new Lt("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}if(o.onload=function(){var t,e,r={statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",e=new wt,
132
132
  // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
133
133
  // https://github.com/github/fetch/issues/748
134
134
  // https://github.com/zloirock/core-js/issues/751
@@ -137,11 +137,11 @@ t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf(
137
137
  // Only if the status is out of a normal range
138
138
  i.url.startsWith("file://")&&(o.status<200||o.status>599)?r.status=200:r.status=o.status,r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var s="response"in o?o.response:o.responseText;setTimeout((function(){n(new St(s,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},o.onabort=function(){setTimeout((function(){r(new Lt("Aborted","AbortError"))}),0)},o.open(i.method,function(t){try{return""===t&&ct.location.href?ct.location.href:t}catch(e){return t}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(dt?o.responseType="blob":ft&&(o.responseType="arraybuffer")),e&&"object"==typeof e.headers&&!(e.headers instanceof wt||ct.Headers&&e.headers instanceof ct.Headers)){var a=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){a.push(gt(t)),o.setRequestHeader(t,bt(e.headers[t]))})),i.headers.forEach((function(t,e){-1===a.indexOf(e)&&o.setRequestHeader(e,t)}))}else i.headers.forEach((function(t,e){o.setRequestHeader(e,t)}));i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){
139
139
  // DONE (success or failure)
140
- 4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}It.polyfill=!0,ct.fetch||(ct.fetch=It,ct.Headers=wt,ct.Request=At,ct.Response=St);
140
+ 4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}$t.polyfill=!0,ct.fetch||(ct.fetch=$t,ct.Headers=wt,ct.Request=At,ct.Response=St);
141
141
  // the whatwg-fetch polyfill installs the fetch() function
142
142
  // on the global object (window or self)
143
143
  // Return that as the export for use in Webpack, Browserify etc.
144
- var $t=self.fetch.bind(self),Mt=function(t,e){return Mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Mt(t,e)};
144
+ var It=self.fetch.bind(self),Mt=function(t,e){return Mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Mt(t,e)};
145
145
  /******************************************************************************
146
146
  Copyright (c) Microsoft Corporation.
147
147
 
@@ -156,7 +156,7 @@ var $t=self.fetch.bind(self),Mt=function(t,e){return Mt=Object.setPrototypeOf||{
156
156
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
157
157
  PERFORMANCE OF THIS SOFTWARE.
158
158
  ***************************************************************************** */
159
- /* global Reflect, Promise, SuppressedError, Symbol */function Ot(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Mt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function Nt(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Rt(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Dt(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function kt(t){return"function"==typeof t}function Ft(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}"function"==typeof SuppressedError&&SuppressedError;var Ut=Ft((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function Gt(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var jt=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var t,e,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Nt(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);var l=this.initialTeardown;if(kt(l))try{l()}catch(t){i=t instanceof Ut?t.errors:[t]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=Nt(c),h=u.next();!h.done;h=u.next()){var d=h.value;try{Xt(d)}catch(t){i=null!=i?i:[],t instanceof Ut?i=Dt(Dt([],Rt(i)),Rt(t.errors)):i.push(t)}}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new Ut(i)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Xt(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Gt(e,t)},t.prototype.remove=function(e){var n=this._finalizers;n&&Gt(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),zt=jt.EMPTY;function Vt(t){return t instanceof jt||t&&"closed"in t&&kt(t.remove)&&kt(t.add)&&kt(t.unsubscribe)}function Xt(t){kt(t)?t():t.unsubscribe()}var Wt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Kt={setTimeout:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Kt.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Dt([t,e],Rt(n))):setTimeout.apply(void 0,Dt([t,e],Rt(n)))},clearTimeout:function(t){var e=Kt.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Yt(){}var Zt=null;function qt(t){if(Wt.useDeprecatedSynchronousErrorHandling){var e=!Zt;if(e&&(Zt={errorThrown:!1,error:null}),t(),e){var n=Zt,r=n.errorThrown,i=n.error;if(Zt=null,r)throw i}}else t()}var Jt=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,Vt(e)&&e.add(n)):n.destination=ie,n}return Ot(e,t),e.create=function(t,e,n){return new ne(t,e,n)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(jt),Qt=Function.prototype.bind;function te(t,e){return Qt.call(t,e)}var ee=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){re(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){re(t)}else re(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){re(t)}},t}(),ne=function(t){function e(e,n,r){var i,o,s=t.call(this)||this;kt(e)||!e?i={next:null!=e?e:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&Wt.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},i={next:e.next&&te(e.next,o),error:e.error&&te(e.error,o),complete:e.complete&&te(e.complete,o)}):i=e;return s.destination=new ee(i),s}return Ot(e,t),e}(Jt);function re(t){var e;e=t,Kt.setTimeout((function(){throw e}))}var ie={closed:!0,next:Yt,error:function(t){throw t},complete:Yt},oe="function"==typeof Symbol&&Symbol.observable||"@@observable";function se(t){return t}var ae=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r,i=this,o=(r=t)&&r instanceof Jt||function(t){return t&&kt(t.next)&&kt(t.error)&&kt(t.complete)}(r)&&Vt(r)?t:new ne(t,e,n);return qt((function(){var t=i,e=t.operator,n=t.source;o.add(e?e.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=le(e))((function(e,r){var i=new ne({next:function(e){try{t(e)}catch(t){r(t),i.unsubscribe()}},error:r,complete:e});n.subscribe(i)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[oe]=function(){return this},t.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?se:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)})(this)},t.prototype.toPromise=function(t){var e=this;return new(t=le(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function le(t){var e;return null!==(e=null!=t?t:Wt.Promise)&&void 0!==e?e:Promise}var ce=Ft((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),ue=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return Ot(e,t),e.prototype.lift=function(t){var e=new he(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new ce},e.prototype.next=function(t){var e=this;qt((function(){var n,r;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=Nt(e.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(t)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},e.prototype.error=function(t){var e=this;qt((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var n=e.observers;n.length;)n.shift().error(t)}}))},e.prototype.complete=function(){var t=this;qt((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?zt:(this.currentObservers=null,o.push(t),new jt((function(){e.currentObservers=null,Gt(o,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e.thrownError,i=e.isStopped;n?t.error(r):i&&t.complete()},e.prototype.asObservable=function(){var t=new ae;return t.source=this,t},e.create=function(t,e){return new he(t,e)},e}(ae),he=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return Ot(e,t),e.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},e.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:zt},e}(ue),de={now:function(){return(de.delegate||Date).now()},delegate:void 0},pe=function(t){function e(e,n,r){void 0===e&&(e=1/0),void 0===n&&(n=1/0),void 0===r&&(r=de);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,n),i}return Ot(e,t),e.prototype.next=function(e){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,a=n._windowTime;r||(i.push(e),!o&&i.push(s.now()+a)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!t.closed;i+=n?1:2)t.next(r[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,n=t._timestampProvider,r=t._buffer,i=t._infiniteTimeWindow,o=(i?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var s=n.now(),a=0,l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}},e}(ue);let fe=[],ye={};
159
+ /* global Reflect, Promise, SuppressedError, Symbol */function Ot(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Mt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function Rt(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Nt(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Dt(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function kt(t){return"function"==typeof t}function Ft(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}"function"==typeof SuppressedError&&SuppressedError;var Ut=Ft((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function Gt(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var jt=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var t,e,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Rt(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);var l=this.initialTeardown;if(kt(l))try{l()}catch(t){i=t instanceof Ut?t.errors:[t]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=Rt(c),h=u.next();!h.done;h=u.next()){var d=h.value;try{Xt(d)}catch(t){i=null!=i?i:[],t instanceof Ut?i=Dt(Dt([],Nt(i)),Nt(t.errors)):i.push(t)}}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new Ut(i)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Xt(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Gt(e,t)},t.prototype.remove=function(e){var n=this._finalizers;n&&Gt(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),zt=jt.EMPTY;function Vt(t){return t instanceof jt||t&&"closed"in t&&kt(t.remove)&&kt(t.add)&&kt(t.unsubscribe)}function Xt(t){kt(t)?t():t.unsubscribe()}var Wt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Kt={setTimeout:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Kt.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Dt([t,e],Nt(n))):setTimeout.apply(void 0,Dt([t,e],Nt(n)))},clearTimeout:function(t){var e=Kt.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Yt(){}var Zt=null;function qt(t){if(Wt.useDeprecatedSynchronousErrorHandling){var e=!Zt;if(e&&(Zt={errorThrown:!1,error:null}),t(),e){var n=Zt,r=n.errorThrown,i=n.error;if(Zt=null,r)throw i}}else t()}var Jt=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,Vt(e)&&e.add(n)):n.destination=ie,n}return Ot(e,t),e.create=function(t,e,n){return new ne(t,e,n)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(jt),Qt=Function.prototype.bind;function te(t,e){return Qt.call(t,e)}var ee=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){re(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){re(t)}else re(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){re(t)}},t}(),ne=function(t){function e(e,n,r){var i,o,s=t.call(this)||this;kt(e)||!e?i={next:null!=e?e:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&Wt.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},i={next:e.next&&te(e.next,o),error:e.error&&te(e.error,o),complete:e.complete&&te(e.complete,o)}):i=e;return s.destination=new ee(i),s}return Ot(e,t),e}(Jt);function re(t){var e;e=t,Kt.setTimeout((function(){throw e}))}var ie={closed:!0,next:Yt,error:function(t){throw t},complete:Yt},oe="function"==typeof Symbol&&Symbol.observable||"@@observable";function se(t){return t}var ae=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r,i=this,o=(r=t)&&r instanceof Jt||function(t){return t&&kt(t.next)&&kt(t.error)&&kt(t.complete)}(r)&&Vt(r)?t:new ne(t,e,n);return qt((function(){var t=i,e=t.operator,n=t.source;o.add(e?e.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=le(e))((function(e,r){var i=new ne({next:function(e){try{t(e)}catch(t){r(t),i.unsubscribe()}},error:r,complete:e});n.subscribe(i)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[oe]=function(){return this},t.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?se:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)})(this)},t.prototype.toPromise=function(t){var e=this;return new(t=le(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function le(t){var e;return null!==(e=null!=t?t:Wt.Promise)&&void 0!==e?e:Promise}var ce=Ft((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),ue=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return Ot(e,t),e.prototype.lift=function(t){var e=new he(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new ce},e.prototype.next=function(t){var e=this;qt((function(){var n,r;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=Rt(e.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(t)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},e.prototype.error=function(t){var e=this;qt((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var n=e.observers;n.length;)n.shift().error(t)}}))},e.prototype.complete=function(){var t=this;qt((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?zt:(this.currentObservers=null,o.push(t),new jt((function(){e.currentObservers=null,Gt(o,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e.thrownError,i=e.isStopped;n?t.error(r):i&&t.complete()},e.prototype.asObservable=function(){var t=new ae;return t.source=this,t},e.create=function(t,e){return new he(t,e)},e}(ae),he=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return Ot(e,t),e.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},e.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:zt},e}(ue),de={now:function(){return(de.delegate||Date).now()},delegate:void 0},pe=function(t){function e(e,n,r){void 0===e&&(e=1/0),void 0===n&&(n=1/0),void 0===r&&(r=de);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,n),i}return Ot(e,t),e.prototype.next=function(e){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,a=n._windowTime;r||(i.push(e),!o&&i.push(s.now()+a)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!t.closed;i+=n?1:2)t.next(r[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,n=t._timestampProvider,r=t._buffer,i=t._infiniteTimeWindow,o=(i?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var s=n.now(),a=0,l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}},e}(ue);let fe=[],ye={};
160
160
  /**
161
161
  * @name topic
162
162
  * @description A small wrapper over the rxjs to offer the topic method on top of it
@@ -189,11 +189,11 @@ function Ce(t,e,n){var r={};return n.isMergeableObject(t)&&Te(t).forEach((functi
189
189
  })(t,i)||(xe(t,i)&&n.isMergeableObject(e[i])?r[i]=function(t,e){if(!e.customMerge)return Be;var n=e.customMerge(t);return"function"==typeof n?n:Be}(i,n)(t[i],e[i],n):r[i]=Ee(e[i],n))})),r}function Be(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||_e,n.isMergeableObject=n.isMergeableObject||ve,
190
190
  // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
191
191
  // implementations can use it. The caller may not replace it.
192
- n.cloneUnlessOtherwiseSpecified=Ee;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):Ce(t,e,n):Ee(e,n)}Be.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return Be(t,n,e)}),{})};var Ae=Be,He=function(t,e){return He=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},He(t,e)};function Se(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}He(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Pe,Le,Ie,$e=function(){return $e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},$e.apply(this,arguments)};function Me(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}
192
+ n.cloneUnlessOtherwiseSpecified=Ee;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):Ce(t,e,n):Ee(e,n)}Be.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return Be(t,n,e)}),{})};var Ae=Be,He=function(t,e){return He=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},He(t,e)};function Se(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}He(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Pe,Le,$e,Ie=function(){return Ie=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ie.apply(this,arguments)};function Me(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}
193
193
  /**
194
194
  * Type Guards
195
195
  */
196
- function Oe(t){return t.type===Le.literal}function Ne(t){return t.type===Le.argument}function Re(t){return t.type===Le.number}function De(t){return t.type===Le.date}function ke(t){return t.type===Le.time}function Fe(t){return t.type===Le.select}function Ue(t){return t.type===Le.plural}function Ge(t){return t.type===Le.pound}function je(t){return t.type===Le.tag}function ze(t){return!(!t||"object"!=typeof t||t.type!==Ie.number)}function Ve(t){return!(!t||"object"!=typeof t||t.type!==Ie.dateTime)}
196
+ function Oe(t){return t.type===Le.literal}function Re(t){return t.type===Le.argument}function Ne(t){return t.type===Le.number}function De(t){return t.type===Le.date}function ke(t){return t.type===Le.time}function Fe(t){return t.type===Le.select}function Ue(t){return t.type===Le.plural}function Ge(t){return t.type===Le.pound}function je(t){return t.type===Le.tag}function ze(t){return!(!t||"object"!=typeof t||t.type!==$e.number)}function Ve(t){return!(!t||"object"!=typeof t||t.type!==$e.dateTime)}
197
197
  // @generated from regex-gen.ts
198
198
  "function"==typeof SuppressedError&&SuppressedError,function(t){
199
199
  /** Argument is unclosed (e.g. `{0`) */
@@ -292,7 +292,7 @@ t[t.pound=7]="pound",
292
292
  /**
293
293
  * XML-like tag
294
294
  */
295
- t[t.tag=8]="tag"}(Le||(Le={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(Ie||(Ie={}));var Xe=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,We=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
295
+ t[t.tag=8]="tag"}(Le||(Le={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}($e||($e={}));var Xe=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,We=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
296
296
  /**
297
297
  * https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
298
298
  * Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js
@@ -345,7 +345,7 @@ return"string"!=typeof r?(e.minimumSignificantDigits=n.length,e.maximumSignifica
345
345
  var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if("+!"===n?(e.signDisplay="always",t=t.slice(2)):"+?"===n&&(e.signDisplay="exceptZero",t=t.slice(2)),!Qe.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function rn(t){var e=en(t);return e||{}}
346
346
  /**
347
347
  * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
348
- */function on(t){for(var e={},n=0,r=t;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=$e($e($e({},e),{notation:"scientific"}),i.options.reduce((function(t,e){return $e($e({},t),rn(e))}),{}));continue;case"engineering":e=$e($e($e({},e),{notation:"engineering"}),i.options.reduce((function(t,e){return $e($e({},t),rn(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;
348
+ */function on(t){for(var e={},n=0,r=t;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Ie(Ie(Ie({},e),{notation:"scientific"}),i.options.reduce((function(t,e){return Ie(Ie({},t),rn(e))}),{}));continue;case"engineering":e=Ie(Ie(Ie({},e),{notation:"engineering"}),i.options.reduce((function(t,e){return Ie(Ie({},t),rn(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;
349
349
  // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
350
350
  case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(i.options[0]);continue;
351
351
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
@@ -359,9 +359,9 @@ if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept
359
359
  // .000* case (before ICU67 it was .000+)
360
360
  return"*"===r?e.minimumFractionDigits=n.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:o&&s?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+s.length):(e.minimumFractionDigits=n.length,e.maximumFractionDigits=n.length),""}));var o=i.options[0];
361
361
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
362
- "w"===o?e=$e($e({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=$e($e({},e),tn(o)))}
362
+ "w"===o?e=Ie(Ie({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=Ie(Ie({},e),tn(o)))}
363
363
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
364
- else if(qe.test(i.stem))e=$e($e({},e),tn(i.stem));else{var s=en(i.stem);s&&(e=$e($e({},e),s));var a=nn(i.stem);a&&(e=$e($e({},e),a))}}return e}
364
+ else if(qe.test(i.stem))e=Ie(Ie({},e),tn(i.stem));else{var s=en(i.stem);s&&(e=Ie(Ie({},e),s));var a=nn(i.stem);a&&(e=Ie(Ie({},e),a))}}return e}
365
365
  // @generated from time-data-gen.ts
366
366
  // prettier-ignore
367
367
  var sn,an={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"]};
@@ -415,7 +415,7 @@ if(vn){
415
415
  // Native
416
416
  var Hn=An("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wn=function(t,e){var n;return Hn.lastIndex=e,null!==(n=Hn.exec(t)[1])&&void 0!==n?n:""}}else
417
417
  // IE11
418
- wn=function(t,e){for(var n=[];;){var r=xn(t,e);if(void 0===r||Ln(r)||In(r))break;n.push(r),e+=r>=65536?2:1}return _n.apply(void 0,n)};var Sn=/** @class */function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,n){for(var r=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(t,n)).err)return o;r.push(o.val)}else{if(125/* `}` */===i&&t>0)break;if(35/* `#` */!==i||"plural"!==e&&"selectordinal"!==e){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(Pe.UNMATCHED_CLOSING_TAG,hn(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&Pn(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(t,e)).err)return o;r.push(o.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:Le.pound,location:hn(s,this.clonePosition())})}}}return{val:r,err:null}},
418
+ wn=function(t,e){for(var n=[];;){var r=xn(t,e);if(void 0===r||Ln(r)||$n(r))break;n.push(r),e+=r>=65536?2:1}return _n.apply(void 0,n)};var Sn=/** @class */function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,n){for(var r=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(t,n)).err)return o;r.push(o.val)}else{if(125/* `}` */===i&&t>0)break;if(35/* `#` */!==i||"plural"!==e&&"selectordinal"!==e){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(Pe.UNMATCHED_CLOSING_TAG,hn(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&Pn(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(t,e)).err)return o;r.push(o.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:Le.pound,location:hn(s,this.clonePosition())})}}}return{val:r,err:null}},
419
419
  /**
420
420
  * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
421
421
  * [custom element name][] except that a dash is NOT always mandatory and uppercase letters
@@ -500,13 +500,13 @@ var h=Cn(l.style.slice(2));if("number"===s)return(g=this.parseNumberSkeletonFrom
500
500
  // Get "best match" pattern only if locale is passed, if not, let it
501
501
  // pass as-is where `parseDateTimeSkeleton()` will throw an error
502
502
  // for unsupported patterns.
503
- this.locale&&(d=function(t,e){for(var n="",r=0;r<t.length;r++){var i=t.charAt(r);if("j"===i){for(var o=0;r+1<t.length&&t.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=ln(e);for("H"!=l&&"k"!=l||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=l+n}else n+="J"===i?"H":i}return n}(h,this.locale));var p={type:Ie.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ke(d):{}};return{val:{type:"date"===s?Le.date:Le.time,value:n,location:u,style:p},err:null}}
503
+ this.locale&&(d=function(t,e){for(var n="",r=0;r<t.length;r++){var i=t.charAt(r);if("j"===i){for(var o=0;r+1<t.length&&t.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=ln(e);for("H"!=l&&"k"!=l||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=l+n}else n+="J"===i?"H":i}return n}(h,this.locale));var p={type:$e.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ke(d):{}};return{val:{type:"date"===s?Le.date:Le.time,value:n,location:u,style:p},err:null}}
504
504
  // Regular style or no style.
505
505
  return{val:{type:"number"===s?Le.number:"date"===s?Le.date:Le.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":
506
506
  // Parse this range:
507
507
  // {name, plural, options}
508
508
  // ^---------^
509
- var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Pe.EXPECT_SELECT_ARGUMENT_OPTIONS,hn(f,$e({},f)));this.bumpSpace();
509
+ var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Pe.EXPECT_SELECT_ARGUMENT_OPTIONS,hn(f,Ie({},f)));this.bumpSpace();
510
510
  // Parse offset:
511
511
  // {name, plural, offset:1, options}
512
512
  // ^-----^
@@ -526,7 +526,7 @@ t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePos
526
526
  // Find the end of the quoted literal text.
527
527
  this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Pe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,hn(n,this.clonePosition()));this.bump();break;case 123/* `{` */:t+=1,this.bump();break;case 125/* `}` */:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var n=[];try{n=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");
528
528
  // Parse the skeleton
529
- for(var e=[],n=0,r=t.split(Ye).filter((function(t){return t.length>0}));n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,l=s;a<l.length;a++)if(0===l[a].length)throw new Error("Invalid number skeleton");e.push({stem:o,options:s})}return e}(t)}catch(t){return this.error(Pe.INVALID_NUMBER_SKELETON,e)}return{val:{type:Ie.number,tokens:n,location:e,parsedOptions:this.shouldParseSkeletons?on(n):{}},err:null}},
529
+ for(var e=[],n=0,r=t.split(Ye).filter((function(t){return t.length>0}));n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0,l=s;a<l.length;a++)if(0===l[a].length)throw new Error("Invalid number skeleton");e.push({stem:o,options:s})}return e}(t)}catch(t){return this.error(Pe.INVALID_NUMBER_SKELETON,e)}return{val:{type:$e.number,tokens:n,location:e,parsedOptions:this.shouldParseSkeletons?on(n):{}},err:null}},
530
530
  /**
531
531
  * @param nesting_level The current nesting level of messages.
532
532
  * This can be positive when parsing message fragment in select or plural argument options.
@@ -602,11 +602,11 @@ function Ln(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||
602
602
  /**
603
603
  * Code point equivalent of regex `\p{Pattern_Syntax}`.
604
604
  * See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
605
- */function In(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function $n(t){t.forEach((function(t){if(delete t.location,Fe(t)||Ue(t))for(var e in t.options)delete t.options[e].location,$n(t.options[e].value);else Re(t)&&ze(t.style)||(De(t)||ke(t))&&Ve(t.style)?delete t.style.location:je(t)&&$n(t.children)}))}function Mn(t,e){void 0===e&&(e={}),e=$e({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new Sn(t,e).parse();if(n.err){var r=SyntaxError(Pe[n.err.kind]);
605
+ */function $n(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function In(t){t.forEach((function(t){if(delete t.location,Fe(t)||Ue(t))for(var e in t.options)delete t.options[e].location,In(t.options[e].value);else Ne(t)&&ze(t.style)||(De(t)||ke(t))&&Ve(t.style)?delete t.style.location:je(t)&&In(t.children)}))}function Mn(t,e){void 0===e&&(e={}),e=Ie({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new Sn(t,e).parse();if(n.err){var r=SyntaxError(Pe[n.err.kind]);
606
606
  // @ts-expect-error Assign to error object
607
607
  throw r.location=n.err.location,
608
608
  // @ts-expect-error Assign to error object
609
- r.originalMessage=n.err.message,r}return(null==e?void 0:e.captureLocation)||$n(n.val),n.val}
609
+ r.originalMessage=n.err.message,r}return(null==e?void 0:e.captureLocation)||In(n.val),n.val}
610
610
 
611
611
  // Main
612
612
 
@@ -614,7 +614,7 @@ function On(t,e){var n=e&&e.cache?e.cache:jn,r=e&&e.serializer?e.serializer:Fn;r
614
614
 
615
615
  // Strategy
616
616
 
617
- function Nn(t,e,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),s=e.get(o);return void 0===s&&(s=t.call(this,r),e.set(o,s)),s}function Rn(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=e.get(i);return void 0===o&&(o=t.apply(this,r),e.set(i,o)),o}function Dn(t,e,n,r,i){return n.bind(e,t,r,i)}function kn(t,e){return Dn(t,this,1===t.length?Nn:Rn,e.cache.create(),e.serializer)}
617
+ function Rn(t,e,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),s=e.get(o);return void 0===s&&(s=t.call(this,r),e.set(o,s)),s}function Nn(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=e.get(i);return void 0===o&&(o=t.apply(this,r),e.set(i,o)),o}function Dn(t,e,n,r,i){return n.bind(e,t,r,i)}function kn(t,e){return Dn(t,this,1===t.length?Rn:Nn,e.cache.create(),e.serializer)}
618
618
  // Serializer
619
619
  var Fn=function(){return JSON.stringify(arguments)};
620
620
 
@@ -622,7 +622,7 @@ var Fn=function(){return JSON.stringify(arguments)};
622
622
 
623
623
  function Un(){this.cache=Object.create(null)}Un.prototype.get=function(t){return this.cache[t]},Un.prototype.set=function(t,e){this.cache[t]=e};var Gn,jn={create:function(){
624
624
  // @ts-ignore
625
- return new Un}},zn={variadic:function(t,e){return Dn(t,this,Rn,e.cache.create(),e.serializer)},monadic:function(t,e){return Dn(t,this,Nn,e.cache.create(),e.serializer)}};!function(t){
625
+ return new Un}},zn={variadic:function(t,e){return Dn(t,this,Nn,e.cache.create(),e.serializer)},monadic:function(t,e){return Dn(t,this,Rn,e.cache.create(),e.serializer)}};!function(t){
626
626
  // When we have a placeholder but no value to format
627
627
  t.MISSING_VALUE="MISSING_VALUE",
628
628
  // When value supplied is invalid
@@ -641,18 +641,18 @@ if(Oe(u))a.push({type:Vn.literal,value:u.value});else
641
641
  // Replace `#` in plural rules with the actual numeric value.
642
642
  if(Ge(u))"number"==typeof o&&a.push({type:Vn.literal,value:n.getNumberFormat(e).format(o)});else{var h=u.value;
643
643
  // Enforce that all required values are provided by the caller.
644
- if(!i||!(h in i))throw new Yn(h,s);var d=i[h];if(Ne(u))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?Vn.literal:Vn.object,value:d});else
644
+ if(!i||!(h in i))throw new Yn(h,s);var d=i[h];if(Re(u))d&&"string"!=typeof d&&"number"!=typeof d||(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?Vn.literal:Vn.object,value:d});else
645
645
  // Recursively format plural and select parts' option — which can be a
646
646
  // nested pattern structure. The choosing of the option to use is
647
647
  // abstracted-by and delegated-to the part helper object.
648
- if(De(u)){var p="string"==typeof u.style?r.date[u.style]:Ve(u.style)?u.style.parsedOptions:void 0;a.push({type:Vn.literal,value:n.getDateTimeFormat(e,p).format(d)})}else if(ke(u)){p="string"==typeof u.style?r.time[u.style]:Ve(u.style)?u.style.parsedOptions:r.time.medium;a.push({type:Vn.literal,value:n.getDateTimeFormat(e,p).format(d)})}else if(Re(u)){(p="string"==typeof u.style?r.number[u.style]:ze(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(d*=p.scale||1),a.push({type:Vn.literal,value:n.getNumberFormat(e,p).format(d)})}else{if(je(u)){var f=u.children,y=u.value,m=i[y];if(!Zn(m))throw new Kn(y,"function",s);var g=m(qn(f,e,n,r,i,o).map((function(t){return t.value})));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map((function(t){return{type:"string"==typeof t?Vn.literal:Vn.object,value:t}})))}if(Fe(u)){if(!(b=u.options[d]||u.options.other))throw new Wn(u.value,d,Object.keys(u.options),s);a.push.apply(a,qn(b.value,e,n,r,i))}else if(Ue(u)){var b;if(!(b=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new Xn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Gn.MISSING_INTL_API,s);var v=n.getPluralRules(e,{type:u.pluralType}).select(d-(u.offset||0));b=u.options[v]||u.options.other}if(!b)throw new Wn(u.value,d,Object.keys(u.options),s);a.push.apply(a,qn(b.value,e,n,r,i,d-(u.offset||0)))}else;}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var n=t[t.length-1];return n&&n.type===Vn.literal&&e.type===Vn.literal?n.value+=e.value:t.push(e),t}),[])}(a)}
648
+ if(De(u)){var p="string"==typeof u.style?r.date[u.style]:Ve(u.style)?u.style.parsedOptions:void 0;a.push({type:Vn.literal,value:n.getDateTimeFormat(e,p).format(d)})}else if(ke(u)){p="string"==typeof u.style?r.time[u.style]:Ve(u.style)?u.style.parsedOptions:r.time.medium;a.push({type:Vn.literal,value:n.getDateTimeFormat(e,p).format(d)})}else if(Ne(u)){(p="string"==typeof u.style?r.number[u.style]:ze(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(d*=p.scale||1),a.push({type:Vn.literal,value:n.getNumberFormat(e,p).format(d)})}else{if(je(u)){var f=u.children,y=u.value,m=i[y];if(!Zn(m))throw new Kn(y,"function",s);var g=m(qn(f,e,n,r,i,o).map((function(t){return t.value})));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map((function(t){return{type:"string"==typeof t?Vn.literal:Vn.object,value:t}})))}if(Fe(u)){if(!(b=u.options[d]||u.options.other))throw new Wn(u.value,d,Object.keys(u.options),s);a.push.apply(a,qn(b.value,e,n,r,i))}else if(Ue(u)){var b;if(!(b=u.options["=".concat(d)])){if(!Intl.PluralRules)throw new Xn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Gn.MISSING_INTL_API,s);var v=n.getPluralRules(e,{type:u.pluralType}).select(d-(u.offset||0));b=u.options[v]||u.options.other}if(!b)throw new Wn(u.value,d,Object.keys(u.options),s);a.push.apply(a,qn(b.value,e,n,r,i,d-(u.offset||0)))}else;}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var n=t[t.length-1];return n&&n.type===Vn.literal&&e.type===Vn.literal?n.value+=e.value:t.push(e),t}),[])}(a)}
649
649
  /*
650
650
  Copyright (c) 2014, Yahoo! Inc. All rights reserved.
651
651
  Copyrights licensed under the New BSD License.
652
652
  See the accompanying LICENSE file for terms.
653
653
  */
654
654
  // -- MessageFormat --------------------------------------------------------
655
- function Jn(t,e){return e?Object.keys(t).reduce((function(n,r){var i,o;return n[r]=(i=t[r],(o=e[r])?$e($e($e({},i||{}),o||{}),Object.keys(i).reduce((function(t,e){return t[e]=$e($e({},i[e]),o[e]||{}),t}),{})):i),n}),$e({},t)):t}function Qn(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(Vn||(Vn={}));var tr=/** @class */function(){function t(e,n,r,i){var o,s=this;if(void 0===n&&(n=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=s.formatToParts(t);
655
+ function Jn(t,e){return e?Object.keys(t).reduce((function(n,r){var i,o;return n[r]=(i=t[r],(o=e[r])?Ie(Ie(Ie({},i||{}),o||{}),Object.keys(i).reduce((function(t,e){return t[e]=Ie(Ie({},i[e]),o[e]||{}),t}),{})):i),n}),Ie({},t)):t}function Qn(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(Vn||(Vn={}));var tr=/** @class */function(){function t(e,n,r,i){var o,s=this;if(void 0===n&&(n=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=s.formatToParts(t);
656
656
  // Hot path for straight simple msg translations
657
657
  if(1===e.length)return e[0].value;var n=e.reduce((function(t,e){return t.length&&e.type===Vn.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(t){return qn(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
658
658
  // Defined first because it's used to build the format pattern.
@@ -665,9 +665,9 @@ this.formats=Jn(t.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.
665
665
  // Default format options used as the prototype of the `formats` provided to the
666
666
  // constructor. These are used when constructing the internal Intl.NumberFormat
667
667
  // and Intl.DateTimeFormat instances.
668
- t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();const er={},nr=(t,e,n)=>n?(e in er||(er[e]={}),t in er[e]||(er[e][t]=n),n):n,rr=(t,e)=>{if(null==e)return;if(e in er&&t in er[e])return er[e][t];const n=Ar(e);for(let r=0;r<n.length;r++){const i=ar(n[r],t);if(i)return nr(t,e,i)}};let ir;const or=ge({});function sr(t){return t in ir}function ar(t,e){if(!sr(t))return null;const n=function(t){return ir[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const n=e.split(".");let r=t;for(let t=0;t<n.length;t++)if("object"==typeof r){if(t>0){const e=n.slice(t,n.length).join(".");if(e in r){r=r[e];break}}r=r[n[t]]}else r=void 0;return r}(n,e)}be([or],(([t])=>Object.keys(t))),or.subscribe((t=>ir=t));const lr={};function cr(t){return lr[t]}function ur(t){return null!=t&&Ar(t).some((t=>{var e;return null==(e=cr(t))?void 0:e.size}))}function hr(t,e){const n=Promise.all(e.map((e=>(function(t,e){lr[t].delete(e),0===lr[t].size&&delete lr[t]}(t,e),e().then((t=>t.default||t))))));return n.then((e=>function(t,...e){delete er[t],or.update((n=>(n[t]=Ae.all([n[t]||{},...e]),n)))}(t,...e)))}const dr={};function pr(t){if(!ur(t))return t in dr?dr[t]:Promise.resolve();const e=function(t){return Ar(t).map((t=>{const e=cr(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return dr[t]=Promise.all(e.map((([t,e])=>hr(t,e)))).then((()=>{if(ur(t))return pr(t);delete dr[t]})),dr[t]}const fr={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 yr(){return fr}const mr=ge(!1);var gr=Object.defineProperty,br=Object.defineProperties,vr=Object.getOwnPropertyDescriptors,wr=Object.getOwnPropertySymbols,Er=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable,Tr=(t,e,n)=>e in t?gr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;let xr;const Cr=ge(null);function Br(t){return t.split("-").map(((t,e,n)=>n.slice(0,e+1).join("-"))).reverse()}function Ar(t,e=yr().fallbackLocale){const n=Br(t);return e?[...new Set([...n,...Br(e)])]:n}function Hr(){return null!=xr?xr:void 0}Cr.subscribe((t=>{xr=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Sr=(Pr=((t,e)=>{for(var n in e||(e={}))Er.call(e,n)&&Tr(t,n,e[n]);if(wr)for(var n of wr(e))_r.call(e,n)&&Tr(t,n,e[n]);return t})({},Cr),br(Pr,vr({set:t=>{if(t&&function(t){if(null==t)return;const e=Ar(t);for(let t=0;t<e.length;t++){const n=e[t];if(sr(n))return n}}(t)&&ur(t)){const{loadingDelay:e}=yr();let n;return"undefined"!=typeof window&&null!=Hr()&&e?n=window.setTimeout((()=>mr.set(!0)),e):mr.set(!0),pr(t).then((()=>{Cr.set(t)})).finally((()=>{clearTimeout(n),mr.set(!1)}))}return Cr.set(t)}})));var Pr;const Lr=t=>{const e=Object.create(null);return n=>{const r=JSON.stringify(n);return r in e?e[r]:e[r]=t(n)}};var Ir=Object.defineProperty,$r=Object.getOwnPropertySymbols,Mr=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable,Nr=(t,e,n)=>e in t?Ir(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Rr=(t,e)=>{for(var n in e||(e={}))Mr.call(e,n)&&Nr(t,n,e[n]);if($r)for(var n of $r(e))Or.call(e,n)&&Nr(t,n,e[n]);return t},Dr=(t,e)=>{var n={};for(var r in t)Mr.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&$r)for(var r of $r(t))e.indexOf(r)<0&&Or.call(t,r)&&(n[r]=t[r]);return n};const kr=(t,e)=>{const{formats:n}=yr();if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Fr=Lr((t=>{var e=t,{locale:n,format:r}=e,i=Dr(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=kr("number",r)),new Intl.NumberFormat(n,i)})),Ur=Lr((t=>{var e=t,{locale:n,format:r}=e,i=Dr(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=kr("date",r):0===Object.keys(i).length&&(i=kr("date","short")),new Intl.DateTimeFormat(n,i)})),Gr=Lr((t=>{var e=t,{locale:n,format:r}=e,i=Dr(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=kr("time",r):0===Object.keys(i).length&&(i=kr("time","short")),new Intl.DateTimeFormat(n,i)})),jr=Lr((
668
+ t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();const er={},nr=(t,e,n)=>n?(e in er||(er[e]={}),t in er[e]||(er[e][t]=n),n):n,rr=(t,e)=>{if(null==e)return;if(e in er&&t in er[e])return er[e][t];const n=Ar(e);for(let r=0;r<n.length;r++){const i=ar(n[r],t);if(i)return nr(t,e,i)}};let ir;const or=ge({});function sr(t){return t in ir}function ar(t,e){if(!sr(t))return null;const n=function(t){return ir[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const n=e.split(".");let r=t;for(let t=0;t<n.length;t++)if("object"==typeof r){if(t>0){const e=n.slice(t,n.length).join(".");if(e in r){r=r[e];break}}r=r[n[t]]}else r=void 0;return r}(n,e)}be([or],(([t])=>Object.keys(t))),or.subscribe((t=>ir=t));const lr={};function cr(t){return lr[t]}function ur(t){return null!=t&&Ar(t).some((t=>{var e;return null==(e=cr(t))?void 0:e.size}))}function hr(t,e){const n=Promise.all(e.map((e=>(function(t,e){lr[t].delete(e),0===lr[t].size&&delete lr[t]}(t,e),e().then((t=>t.default||t))))));return n.then((e=>function(t,...e){delete er[t],or.update((n=>(n[t]=Ae.all([n[t]||{},...e]),n)))}(t,...e)))}const dr={};function pr(t){if(!ur(t))return t in dr?dr[t]:Promise.resolve();const e=function(t){return Ar(t).map((t=>{const e=cr(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return dr[t]=Promise.all(e.map((([t,e])=>hr(t,e)))).then((()=>{if(ur(t))return pr(t);delete dr[t]})),dr[t]}const fr={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 yr(){return fr}const mr=ge(!1);var gr=Object.defineProperty,br=Object.defineProperties,vr=Object.getOwnPropertyDescriptors,wr=Object.getOwnPropertySymbols,Er=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable,Tr=(t,e,n)=>e in t?gr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;let xr;const Cr=ge(null);function Br(t){return t.split("-").map(((t,e,n)=>n.slice(0,e+1).join("-"))).reverse()}function Ar(t,e=yr().fallbackLocale){const n=Br(t);return e?[...new Set([...n,...Br(e)])]:n}function Hr(){return null!=xr?xr:void 0}Cr.subscribe((t=>{xr=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Sr=(Pr=((t,e)=>{for(var n in e||(e={}))Er.call(e,n)&&Tr(t,n,e[n]);if(wr)for(var n of wr(e))_r.call(e,n)&&Tr(t,n,e[n]);return t})({},Cr),br(Pr,vr({set:t=>{if(t&&function(t){if(null==t)return;const e=Ar(t);for(let t=0;t<e.length;t++){const n=e[t];if(sr(n))return n}}(t)&&ur(t)){const{loadingDelay:e}=yr();let n;return"undefined"!=typeof window&&null!=Hr()&&e?n=window.setTimeout((()=>mr.set(!0)),e):mr.set(!0),pr(t).then((()=>{Cr.set(t)})).finally((()=>{clearTimeout(n),mr.set(!1)}))}return Cr.set(t)}})));var Pr;const Lr=t=>{const e=Object.create(null);return n=>{const r=JSON.stringify(n);return r in e?e[r]:e[r]=t(n)}};var $r=Object.defineProperty,Ir=Object.getOwnPropertySymbols,Mr=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable,Rr=(t,e,n)=>e in t?$r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Nr=(t,e)=>{for(var n in e||(e={}))Mr.call(e,n)&&Rr(t,n,e[n]);if(Ir)for(var n of Ir(e))Or.call(e,n)&&Rr(t,n,e[n]);return t},Dr=(t,e)=>{var n={};for(var r in t)Mr.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&Ir)for(var r of Ir(t))e.indexOf(r)<0&&Or.call(t,r)&&(n[r]=t[r]);return n};const kr=(t,e)=>{const{formats:n}=yr();if(t in n&&e in n[t])return n[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Fr=Lr((t=>{var e=t,{locale:n,format:r}=e,i=Dr(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=kr("number",r)),new Intl.NumberFormat(n,i)})),Ur=Lr((t=>{var e=t,{locale:n,format:r}=e,i=Dr(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=kr("date",r):0===Object.keys(i).length&&(i=kr("date","short")),new Intl.DateTimeFormat(n,i)})),Gr=Lr((t=>{var e=t,{locale:n,format:r}=e,i=Dr(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=kr("time",r):0===Object.keys(i).length&&(i=kr("time","short")),new Intl.DateTimeFormat(n,i)})),jr=Lr((
669
669
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
670
- (t,e=Hr())=>new tr(t,e,yr().formats,{ignoreTag:yr().ignoreTag}))),zr=(t,e={})=>{var n,r,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=Hr(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=rr(t,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${t}" 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!=(o=null!=(i=null==(r=(n=yr()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:t,defaultValue:c}))?i:c)?o:t;if(!a)return u;let h=u;try{h=jr(u,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},Vr=(t,e)=>((t={})=>{var e=t,{locale:n=Hr()}=e,r=Dr(e,["locale"]);return Gr(Rr({locale:n},r))})(e).format(t),Xr=(t,e)=>((t={})=>{var e=t,{locale:n=Hr()}=e,r=Dr(e,["locale"]);return Ur(Rr({locale:n},r))})(e).format(t),Wr=(t,e)=>((t={})=>{var e=t,{locale:n=Hr()}=e,r=Dr(e,["locale"]);return Fr(Rr({locale:n},r))})(e).format(t),Kr=(t,e=Hr())=>rr(t,e);be([Sr,or],(()=>zr)),be([Sr],(()=>Vr)),be([Sr],(()=>Xr)),be([Sr],(()=>Wr)),be([Sr,or],(()=>Kr)),window.emWidgets={topic:(t,e=0)=>{if(-1==fe.indexOf(t)){let n=new pe(e);ye[t]=n,fe.push(t)}return ye[t]}};
670
+ (t,e=Hr())=>new tr(t,e,yr().formats,{ignoreTag:yr().ignoreTag}))),zr=(t,e={})=>{var n,r,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=Hr(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=rr(t,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${t}" 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!=(o=null!=(i=null==(r=(n=yr()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:t,defaultValue:c}))?i:c)?o:t;if(!a)return u;let h=u;try{h=jr(u,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},Vr=(t,e)=>((t={})=>{var e=t,{locale:n=Hr()}=e,r=Dr(e,["locale"]);return Gr(Nr({locale:n},r))})(e).format(t),Xr=(t,e)=>((t={})=>{var e=t,{locale:n=Hr()}=e,r=Dr(e,["locale"]);return Ur(Nr({locale:n},r))})(e).format(t),Wr=(t,e)=>((t={})=>{var e=t,{locale:n=Hr()}=e,r=Dr(e,["locale"]);return Fr(Nr({locale:n},r))})(e).format(t),Kr=(t,e=Hr())=>rr(t,e);be([Sr,or],(()=>zr)),be([Sr],(()=>Vr)),be([Sr],(()=>Xr)),be([Sr],(()=>Wr)),be([Sr,or],(()=>Kr)),window.emWidgets={topic:(t,e=0)=>{if(-1==fe.indexOf(t)){let n=new pe(e);ye[t]=n,fe.push(t)}return ye[t]}};
671
671
  /**
672
672
  * @name isMobile
673
673
  * @description A method that returns if the browser used to access the app is from a mobile device or not
@@ -688,7 +688,7 @@ const Yr=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackbe
688
688
  e()}),f(t,n),()=>{(r||i&&n.contentWindow)&&i(),b(n)}}(n,/*div1_elementresize_handler*/t[19].bind(n)),
689
689
  /*div2_binding*/t[20](e),u=!0,h||(d=C(o,"click",/*close*/t[8]),h=!0)},p(e,n){t=e,(!u||/*haspanicbutton, mobileView*/10&n&&a!==(a="ModalCloseBtn "+(/*haspanicbutton*/"true"==t[1]&&/*mobileView*/t[3]?"ModalPanicCloseButton":"")))&&B(o,"class",a)},i(e){u||(X((()=>{u&&(c||(c=it(n,Zr,{transitionDuration:/*duration*/t[0]},!0)),c.run(1))})),u=!0)},o(e){c||(c=it(n,Zr,{transitionDuration:/*duration*/t[0]},!1)),c.run(0),u=!1},d(n){n&&b(e)
690
690
  /*div1_binding*/,t[18](null),l(),n&&c&&c.end()
691
- /*div2_binding*/,t[20](null),h=!1,d()}}}function Jr(e){let n,r,o=/*show*/e[7]&&qr(e);return{c(){o&&o.c(),n=x(),this.c=t},m(t,e){o&&o.m(t,e),g(t,n,e),r=!0},p(t,[e]){/*show*/t[7]?o?(o.p(t,e),/*show*/128&e&&et(o,1)):(o=qr(t),o.c(),et(o,1),o.m(n.parentNode,n)):o&&(tt={r:0,c:[],p:tt},nt(o,1,1,(()=>{o=null})),tt.r||i(tt.c),tt=tt.p)},i(t){r||(et(o),r=!0)},o(t){nt(o),r=!1},d(t){o&&o.d(t),t&&b(n)}}}function Qr(t,e,n){let r,i,o,s,{duration:a=350}=e,{session:l=""}=e,{userid:c=""}=e,{clientstyling:u=""}=e,{identifier:h=""}=e,{clientstylingurl:d=""}=e,{endpoint:p=""}=e,{haspanicbutton:f="false"}=e,{gamepagemodalurl:y="false"}=e,{sessioncheck:m="true"}=e,{integratedgameframedesktop:g="false"}=e,b=window.navigator.userAgent,v=!1,w=!1,E=!1;const _=t=>{if("ShowModal"==t.data.type&&h==t.data.identifier&&(n(7,E=!0),window.postMessage({type:"DisableScroll"},window.location.href)),"ModalClosed"==t.data.type&&("false"!=g||Yr(b))&&n(7,E=!1),"ShowGameModal"===t.data.type&&(n(7,E=!0),window.postMessage({type:"GameLaunchID",gameId:t.data.gameId},window.location.href),window.postMessage({type:"DisableScroll"},window.location.href)),"OpenGameFrameModal"===t.data.type&&(n(7,E=!0),window.postMessage({type:"LaunchGameFrame",gameId:t.data.gameId,gameFunMode:t.data.gamefunmode},window.location.href),window.postMessage({type:"DisableScroll"},window.location.href)),"RequestModalSize"===t.data.type){let t={modalWidth:r?getComputedStyle(r).width:null,modalHeight:r?getComputedStyle(r).height:null};window.postMessage({type:"ModalSize",modalContainerSize:t},window.location.href)}"GameStateOnResize"===t.data.type&&(w=t.data.detailsObtained)},T=t=>{if(w){let t={modalWidth:getComputedStyle(r).width,modalHeight:getComputedStyle(r).height};window.postMessage({type:"ModalSize",modalContainerSize:t},window.location.href)}},x=()=>{"true"==m&&function(t,e){return new Promise(((n,r)=>{let i=new Headers;i.append("X-SessionID",e),$t(`${t}/player/session/player`,{method:"GET",headers:i}).then((t=>t.json())).then((t=>n(t))).catch((t=>r(t)))}))}(p,l).then((t=>{t.Guid,t.UserID}),(t=>{console.error("err on session",t)}))};return k((()=>(n(3,v=Yr(b)),window.addEventListener("message",_,!1),window.addEventListener("resize",T,!1),()=>{window.removeEventListener("message",_),window.removeEventListener("resize",_)}))),t.$$set=t=>{"duration"in t&&n(0,a=t.duration),"session"in t&&n(9,l=t.session),"userid"in t&&n(10,c=t.userid),"clientstyling"in t&&n(11,u=t.clientstyling),"identifier"in t&&n(12,h=t.identifier),"clientstylingurl"in t&&n(13,d=t.clientstylingurl),"endpoint"in t&&n(14,p=t.endpoint),"haspanicbutton"in t&&n(1,f=t.haspanicbutton),"gamepagemodalurl"in t&&n(15,y=t.gamepagemodalurl),"sessioncheck"in t&&n(16,m=t.sessioncheck),"integratedgameframedesktop"in t&&n(17,g=t.integratedgameframedesktop)},t.$$.update=()=>{/*session, userid, endpoint*/17920&t.$$.dirty&&l&&c&&p&&x(),/*clientstyling, customStylingContainer*/2052&t.$$.dirty&&u&&i&&(()=>{let t=document.createElement("style");t.innerHTML=u,i.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/8196&t.$$.dirty&&d&&i&&(()=>{let t=new URL(d),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1)}))})()},[a,f,i,v,r,o,s,E,()=>{n(7,E=!1),n(3,v=Yr(b)),window.postMessage({type:"ModalClosed",gamepagemodalurl:y,mobileView:v},window.location.href)},l,c,u,h,d,p,y,m,g,function(t){U[t?"unshift":"push"]((()=>{r=t,n(4,r)}))},function(){o=this.clientWidth,s=this.clientHeight,n(5,o),n(6,s)},function(t){U[t?"unshift":"push"]((()=>{i=t,n(2,i)}))}]}
691
+ /*div2_binding*/,t[20](null),h=!1,d()}}}function Jr(e){let n,r,o=/*show*/e[7]&&qr(e);return{c(){o&&o.c(),n=x(),this.c=t},m(t,e){o&&o.m(t,e),g(t,n,e),r=!0},p(t,[e]){/*show*/t[7]?o?(o.p(t,e),/*show*/128&e&&et(o,1)):(o=qr(t),o.c(),et(o,1),o.m(n.parentNode,n)):o&&(tt={r:0,c:[],p:tt},nt(o,1,1,(()=>{o=null})),tt.r||i(tt.c),tt=tt.p)},i(t){r||(et(o),r=!0)},o(t){nt(o),r=!1},d(t){o&&o.d(t),t&&b(n)}}}function Qr(t,e,n){let r,i,o,s,{duration:a=350}=e,{session:l=""}=e,{userid:c=""}=e,{clientstyling:u=""}=e,{identifier:h=""}=e,{clientstylingurl:d=""}=e,{endpoint:p=""}=e,{haspanicbutton:f="false"}=e,{gamepagemodalurl:y="false"}=e,{sessioncheck:m="true"}=e,{integratedgameframedesktop:g="false"}=e,b=window.navigator.userAgent,v=!1,w=!1,E=!1;const _=t=>{if("ShowModal"==t.data.type&&h==t.data.identifier&&(n(7,E=!0),window.postMessage({type:"DisableScroll"},window.location.href)),"ModalClosed"==t.data.type&&("false"!=g||Yr(b))&&n(7,E=!1),"ShowGameModal"===t.data.type&&(n(7,E=!0),window.postMessage({type:"GameLaunchID",gameId:t.data.gameId},window.location.href),window.postMessage({type:"DisableScroll"},window.location.href)),"OpenGameFrameModal"===t.data.type&&(n(7,E=!0),window.postMessage({type:"LaunchGameFrame",gameId:t.data.gameId,gameFunMode:t.data.gamefunmode},window.location.href),window.postMessage({type:"DisableScroll"},window.location.href)),"RequestModalSize"===t.data.type){let t={modalWidth:r?getComputedStyle(r).width:null,modalHeight:r?getComputedStyle(r).height:null};window.postMessage({type:"ModalSize",modalContainerSize:t},window.location.href)}"GameStateOnResize"===t.data.type&&(w=t.data.detailsObtained)},T=t=>{if(w){let t={modalWidth:getComputedStyle(r).width,modalHeight:getComputedStyle(r).height};window.postMessage({type:"ModalSize",modalContainerSize:t},window.location.href)}},x=()=>{"true"==m&&function(t,e){return new Promise(((n,r)=>{let i=new Headers;i.append("X-SessionID",e),It(`${t}/v1/player/session/player`,{method:"GET",headers:i}).then((t=>t.json())).then((t=>n(t))).catch((t=>r(t)))}))}(p,l).then((t=>{t.Guid,t.UserID}),(t=>{console.error("err on session",t)}))};return k((()=>(n(3,v=Yr(b)),window.addEventListener("message",_,!1),window.addEventListener("resize",T,!1),()=>{window.removeEventListener("message",_),window.removeEventListener("resize",_)}))),t.$$set=t=>{"duration"in t&&n(0,a=t.duration),"session"in t&&n(9,l=t.session),"userid"in t&&n(10,c=t.userid),"clientstyling"in t&&n(11,u=t.clientstyling),"identifier"in t&&n(12,h=t.identifier),"clientstylingurl"in t&&n(13,d=t.clientstylingurl),"endpoint"in t&&n(14,p=t.endpoint),"haspanicbutton"in t&&n(1,f=t.haspanicbutton),"gamepagemodalurl"in t&&n(15,y=t.gamepagemodalurl),"sessioncheck"in t&&n(16,m=t.sessioncheck),"integratedgameframedesktop"in t&&n(17,g=t.integratedgameframedesktop)},t.$$.update=()=>{/*session, userid, endpoint*/17920&t.$$.dirty&&l&&c&&p&&x(),/*clientstyling, customStylingContainer*/2052&t.$$.dirty&&u&&i&&(()=>{let t=document.createElement("style");t.innerHTML=u,i.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/8196&t.$$.dirty&&d&&i&&(()=>{let t=new URL(d),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1)}))})()},[a,f,i,v,r,o,s,E,()=>{n(7,E=!1),n(3,v=Yr(b)),window.postMessage({type:"ModalClosed",gamepagemodalurl:y,mobileView:v},window.location.href)},l,c,u,h,d,p,y,m,g,function(t){U[t?"unshift":"push"]((()=>{r=t,n(4,r)}))},function(){o=this.clientWidth,s=this.clientHeight,n(5,o),n(6,s)},function(t){U[t?"unshift":"push"]((()=>{i=t,n(2,i)}))}]}
692
692
  /* ../casino-calendar-daily-details/src/CasinoCalendarDailyDetails.svelte generated by Svelte v3.59.2 */
693
693
  function ti(t,e,n){const r=t.slice();return r[26]=e[n],r[27]=e,r[28]=n,r}function ei(t,e,n){const r=t.slice();return r[29]=e[n],r[28]=n,r}
694
694
  // (105:4) {:else}
@@ -707,20 +707,20 @@ return t[18](/*event*/t[26],/*index*/t[28])}return{c(){e=w("div"),n=w("div"),r=w
707
707
  // (159:16) {#if event.detailsExpanded}
708
708
  function li(t){let e,n,r,i=/*event*/t[26].details[/*selectedTab*/t[4]].description+"";return{c(){e=w("div"),n=_(i),B(e,"class",r="DetailTabsDescription "+(/*event*/t[26].details[/*selectedTab*/t[4]].expandedTab?"":"NotVisible"))},m(t,r){g(t,e,r),f(e,n)},p(t,o){/*dailyeventsDetails, selectedTab*/24&o&&i!==(i=/*event*/t[26].details[/*selectedTab*/t[4]].description+"")&&H(n,i),/*dailyeventsDetails, selectedTab*/24&o&&r!==(r="DetailTabsDescription "+(/*event*/t[26].details[/*selectedTab*/t[4]].expandedTab?"":"NotVisible"))&&B(e,"class",r)},d(t){t&&b(e)}}}
709
709
  // (108:8) {#each dailyeventsDetails as event, index}
710
- function ci(t){let e,n,r,i,o,s,a,c,u,h,d,p,y,m,v,E,x,A,S,P,L=/*event*/t[26].title+"",I=/*event*/t[26].description+"";function $(t,e){/*event*/
711
- return 1==t[26].expandedInfo?oi:ii}let M=$(t),O=M(t);function N(){/*click_handler*/
712
- return t[17](/*event*/t[26],/*each_value*/t[27],/*index*/t[28])}let R=/*event*/1==t[26].expandedInfo&&si(t);return{c(){e=w("div"),n=w("div"),r=_(L),i=T(),o=w("div"),s=w("img"),u=T(),h=w("div"),d=_(I),p=T(),y=w("div"),m=w("button"),v=_(/*dailybuttontitle*/t[0]),E=T(),O.c(),x=T(),R&&R.c(),A=T(),B(n,"class","CasinoCalendarDailyTitle"),B(s,"class","CasinoCalendarFitImage"),l(s.src,a=/*event*/t[26].image)||B(s,"src",a),B(s,"alt",c=/*event*/t[26].image),B(o,"class","CasinoCalendarImage"),B(h,"class","CasinoCalendarDailyDescription"),B(m,"class","MoreInfoButton"),B(y,"class","CasinoCalendarTabs"),B(e,"class","CasinoCalendarDailyDetailsParent")},m(t,a){g(t,e,a),f(e,n),f(n,r),f(e,i),f(e,o),f(o,s),f(e,u),f(e,h),f(h,d),f(e,p),f(e,y),f(y,m),f(m,v),f(m,E),O.m(m,null),f(y,x),R&&R.m(y,null),f(e,A),S||(P=C(m,"click",N),S=!0)},p(e,n){t=e,/*dailyeventsDetails*/8&n&&L!==(L=/*event*/t[26].title+"")&&H(r,L),/*dailyeventsDetails*/8&n&&!l(s.src,a=/*event*/t[26].image)&&B(s,"src",a),/*dailyeventsDetails*/8&n&&c!==(c=/*event*/t[26].image)&&B(s,"alt",c),/*dailyeventsDetails*/8&n&&I!==(I=/*event*/t[26].description+"")&&H(d,I),/*dailybuttontitle*/1&n&&H(v,/*dailybuttontitle*/t[0]),M!==(M=$(t))&&(O.d(1),O=M(t),O&&(O.c(),O.m(m,null))),/*event*/1==t[26].expandedInfo?R?R.p(t,n):(R=si(t),R.c(),R.m(y,null)):R&&(R.d(1),R=null)},d(t){t&&b(e),O.d(),R&&R.d(),S=!1,P()}}}function ui(e){let n;function r(t,e){/*isLoading*/
710
+ function ci(t){let e,n,r,i,o,s,a,c,u,h,d,p,y,m,v,E,x,A,S,P,L=/*event*/t[26].title+"",$=/*event*/t[26].description+"";function I(t,e){/*event*/
711
+ return 1==t[26].expandedInfo?oi:ii}let M=I(t),O=M(t);function R(){/*click_handler*/
712
+ return t[17](/*event*/t[26],/*each_value*/t[27],/*index*/t[28])}let N=/*event*/1==t[26].expandedInfo&&si(t);return{c(){e=w("div"),n=w("div"),r=_(L),i=T(),o=w("div"),s=w("img"),u=T(),h=w("div"),d=_($),p=T(),y=w("div"),m=w("button"),v=_(/*dailybuttontitle*/t[0]),E=T(),O.c(),x=T(),N&&N.c(),A=T(),B(n,"class","CasinoCalendarDailyTitle"),B(s,"class","CasinoCalendarFitImage"),l(s.src,a=/*event*/t[26].image)||B(s,"src",a),B(s,"alt",c=/*event*/t[26].image),B(o,"class","CasinoCalendarImage"),B(h,"class","CasinoCalendarDailyDescription"),B(m,"class","MoreInfoButton"),B(y,"class","CasinoCalendarTabs"),B(e,"class","CasinoCalendarDailyDetailsParent")},m(t,a){g(t,e,a),f(e,n),f(n,r),f(e,i),f(e,o),f(o,s),f(e,u),f(e,h),f(h,d),f(e,p),f(e,y),f(y,m),f(m,v),f(m,E),O.m(m,null),f(y,x),N&&N.m(y,null),f(e,A),S||(P=C(m,"click",R),S=!0)},p(e,n){t=e,/*dailyeventsDetails*/8&n&&L!==(L=/*event*/t[26].title+"")&&H(r,L),/*dailyeventsDetails*/8&n&&!l(s.src,a=/*event*/t[26].image)&&B(s,"src",a),/*dailyeventsDetails*/8&n&&c!==(c=/*event*/t[26].image)&&B(s,"alt",c),/*dailyeventsDetails*/8&n&&$!==($=/*event*/t[26].description+"")&&H(d,$),/*dailybuttontitle*/1&n&&H(v,/*dailybuttontitle*/t[0]),M!==(M=I(t))&&(O.d(1),O=M(t),O&&(O.c(),O.m(m,null))),/*event*/1==t[26].expandedInfo?N?N.p(t,n):(N=si(t),N.c(),N.m(y,null)):N&&(N.d(1),N=null)},d(t){t&&b(e),O.d(),N&&N.d(),S=!1,P()}}}function ui(e){let n;function r(t,e){/*isLoading*/
713
713
  return t[5]?ri:ni}let i=r(e),o=i(e);return{c(){n=w("div"),o.c(),this.c=t},m(t,r){g(t,n,r),o.m(n,null),
714
714
  /*div_binding*/e[19](n)},p(t,[e]){i===(i=r(t))&&o?o.p(t,e):(o.d(1),o=i(t),o&&(o.c(),o.m(n,null)))},i:t,o:t,d(t){t&&b(n),o.d(),
715
715
  /*div_binding*/e[19](null)}}}function hi(t,e,n){let r,{dailybackground:i=""}=e,{dailybuttontitle:o=""}=e,{dailyday:s=""}=e,{dailydescription:a="<p></p>"}=e,{dailyicon:l=""}=e,{dailytitle:c=""}=e,{lang:u="en"}=e,{clientstyling:h=""}=e,{clientstylingurl:d=""}=e,{translationUrl:p=""}=e,f=[],y=0,m=!0,g=!1,b=window.navigator.userAgent;!function({withLocale:t,translations:e}){Sr.subscribe((n=>{null==n&&(or.set(e),Sr.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
716
716
  /*dictionary.set(translations);
717
717
  locale.set(_locale);*/}({withLocale:"en",translations:{}});const v=t=>{"DailyEventsData"==t.data.type&&(n(5,m=!1),n(3,f=t.data.data),f.forEach((t=>{t.expandedInfo=!1,t.detailsExpanded=!1,t.details.forEach(((t,e)=>{t.expandedTab=0==e}))}))),"ModalClosed"==t.data.type&&(n(4,y=0),f.forEach(((t,e)=>{t.detailsExpanded=0==e,t.expandedInfo=0==e})))},w=()=>{var t;t=u,Sr.set(t)},E=t=>{n(4,y=0),n(3,f[t].detailsExpanded=!f[t].detailsExpanded,f),
718
718
  //Analytics event
719
- "function"==typeof gtag&&gtag("event","MoreInfo",{context:"CalendarWidgetDetails"})},_=(t,e)=>{n(4,y=e),t.details.forEach(((t,e)=>{t.expandedTab=y==e}))};k((()=>(window.addEventListener("message",v,!1),Yr(b)&&n(6,g=!0),()=>{window.removeEventListener("message",v)})));return t.$$set=t=>{"dailybackground"in t&&n(9,i=t.dailybackground),"dailybuttontitle"in t&&n(0,o=t.dailybuttontitle),"dailyday"in t&&n(1,s=t.dailyday),"dailydescription"in t&&n(10,a=t.dailydescription),"dailyicon"in t&&n(11,l=t.dailyicon),"dailytitle"in t&&n(12,c=t.dailytitle),"lang"in t&&n(13,u=t.lang),"clientstyling"in t&&n(14,h=t.clientstyling),"clientstylingurl"in t&&n(15,d=t.clientstylingurl),"translationUrl"in t&&n(16,p=t.translationUrl)},t.$$.update=()=>{/*lang*/8192&t.$$.dirty&&u&&w(),/*clientstyling, customStylingContainer*/16388&t.$$.dirty&&h&&r&&(()=>{let t=document.createElement("style");t.innerHTML=h,r.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/32772&t.$$.dirty&&d&&r&&(()=>{let t=new URL(d),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{r.appendChild(e)}),1),setTimeout((()=>{}),500)}))})()},[o,s,r,f,y,m,g,E,_,i,a,l,c,u,h,d,p,(t,e,r)=>{n(3,e[r].expandedInfo=!t.expandedInfo,f),E(r)},(t,e)=>{_(t,e)},function(t){U[t?"unshift":"push"]((()=>{r=t,n(2,r)}))}]}!customElements.get("casino-modal")&&customElements.define("casino-modal",class extends lt{constructor(t){super();const e=document.createElement("style");e.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalPanicCloseButton{margin-top:45px}.ModalWindow .ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:10px;border-radius:50%;color:var(--emfe-w-color-white, #FFFFFF);background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out}.ModalWindow .ModalCloseBtn svg{width:32px;height:32px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}",this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:I(this.attributes),customElement:!0},Qr,Jr,s,{duration:0,session:9,userid:10,clientstyling:11,identifier:12,clientstylingurl:13,endpoint:14,haspanicbutton:1,gamepagemodalurl:15,sessioncheck:16,integratedgameframedesktop:17},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["duration","session","userid","clientstyling","identifier","clientstylingurl","endpoint","haspanicbutton","gamepagemodalurl","sessioncheck","integratedgameframedesktop"]}get duration(){return this.$$.ctx[0]}set duration(t){this.$$set({duration:t}),Z()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),Z()}get userid(){return this.$$.ctx[10]}set userid(t){this.$$set({userid:t}),Z()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get identifier(){return this.$$.ctx[12]}set identifier(t){this.$$set({identifier:t}),Z()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),Z()}get haspanicbutton(){return this.$$.ctx[1]}set haspanicbutton(t){this.$$set({haspanicbutton:t}),Z()}get gamepagemodalurl(){return this.$$.ctx[15]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),Z()}get sessioncheck(){return this.$$.ctx[16]}set sessioncheck(t){this.$$set({sessioncheck:t}),Z()}get integratedgameframedesktop(){return this.$$.ctx[17]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),Z()}});
719
+ "function"==typeof gtag&&gtag("event","MoreInfo",{context:"CalendarWidgetDetails"})},_=(t,e)=>{n(4,y=e),t.details.forEach(((t,e)=>{t.expandedTab=y==e}))};k((()=>(window.addEventListener("message",v,!1),Yr(b)&&n(6,g=!0),()=>{window.removeEventListener("message",v)})));return t.$$set=t=>{"dailybackground"in t&&n(9,i=t.dailybackground),"dailybuttontitle"in t&&n(0,o=t.dailybuttontitle),"dailyday"in t&&n(1,s=t.dailyday),"dailydescription"in t&&n(10,a=t.dailydescription),"dailyicon"in t&&n(11,l=t.dailyicon),"dailytitle"in t&&n(12,c=t.dailytitle),"lang"in t&&n(13,u=t.lang),"clientstyling"in t&&n(14,h=t.clientstyling),"clientstylingurl"in t&&n(15,d=t.clientstylingurl),"translationUrl"in t&&n(16,p=t.translationUrl)},t.$$.update=()=>{/*lang*/8192&t.$$.dirty&&u&&w(),/*clientstyling, customStylingContainer*/16388&t.$$.dirty&&h&&r&&(()=>{let t=document.createElement("style");t.innerHTML=h,r.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/32772&t.$$.dirty&&d&&r&&(()=>{let t=new URL(d),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{r.appendChild(e)}),1),setTimeout((()=>{}),500)}))})()},[o,s,r,f,y,m,g,E,_,i,a,l,c,u,h,d,p,(t,e,r)=>{n(3,e[r].expandedInfo=!t.expandedInfo,f),E(r)},(t,e)=>{_(t,e)},function(t){U[t?"unshift":"push"]((()=>{r=t,n(2,r)}))}]}!customElements.get("casino-modal")&&customElements.define("casino-modal",class extends lt{constructor(t){super();const e=document.createElement("style");e.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalPanicCloseButton{margin-top:45px}.ModalWindow .ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:10px;border-radius:50%;color:var(--emfe-w-color-white, #FFFFFF);background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out}.ModalWindow .ModalCloseBtn svg{width:32px;height:32px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}",this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},Qr,Jr,s,{duration:0,session:9,userid:10,clientstyling:11,identifier:12,clientstylingurl:13,endpoint:14,haspanicbutton:1,gamepagemodalurl:15,sessioncheck:16,integratedgameframedesktop:17},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["duration","session","userid","clientstyling","identifier","clientstylingurl","endpoint","haspanicbutton","gamepagemodalurl","sessioncheck","integratedgameframedesktop"]}get duration(){return this.$$.ctx[0]}set duration(t){this.$$set({duration:t}),Z()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),Z()}get userid(){return this.$$.ctx[10]}set userid(t){this.$$set({userid:t}),Z()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get identifier(){return this.$$.ctx[12]}set identifier(t){this.$$set({identifier:t}),Z()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),Z()}get haspanicbutton(){return this.$$.ctx[1]}set haspanicbutton(t){this.$$set({haspanicbutton:t}),Z()}get gamepagemodalurl(){return this.$$.ctx[15]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),Z()}get sessioncheck(){return this.$$.ctx[16]}set sessioncheck(t){this.$$set({sessioncheck:t}),Z()}get integratedgameframedesktop(){return this.$$.ctx[17]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),Z()}});
720
720
  /* ../casino-calendar-daily-item/src/CasinoCalendarDailyItem.svelte generated by Svelte v3.59.2 */
721
- function di(e){let n,r,i,o,s,a,c,u,h,d,p,y,m,v,E,x,A,P,L,I,$,M,O;return{c(){n=w("div"),r=w("div"),i=w("div"),o=w("div"),s=w("div"),s.innerHTML='<div class="RingLeft"></div> \n <div class="RingRight"></div>',a=T(),c=w("div"),u=w("div"),h=w("img"),p=T(),y=w("div"),m=_(/*dailyday*/e[2]),v=T(),E=w("div"),x=T(),A=w("div"),P=w("button"),L=_(/*dailybuttontitle*/e[3]),this.c=t,B(s,"class","CalendarBar"),l(h.src,d=/*dailyicon*/e[1])||B(h,"src",d),B(h,"alt",/*dailyicon*/e[1]),B(u,"class","CasinoCalendarDailyIcon"),B(y,"class","CasinoCalendarDailyTitle"),B(E,"class","CasinoCalendarDailyItemDescription"),B(P,"class","MoreInfoButton"),B(A,"class","CasinoCalendarDailyItemButton"),B(c,"class",I="CasinoCalendarItemBackground CalendarPage "+("OpenCalendarModal"==/*index*/e[4]?"Tear":"")),S(c,"background-image","url('"+/*dailybackground*/e[0]+"')"),S(c,"background-size","cover"),S(c,"background-position","center"),S(c,"-webkit-background-size","cover"),S(c,"-moz-background-size","cover"),S(c,"-o-background-size","cover"),B(o,"class","CalendarCard"),B(i,"class","CasinoCalendarItems"),B(r,"class",$="Container "+(/*mobileView*/e[7]?"Mobile":""))},m(t,l){g(t,n,l),f(n,r),f(r,i),f(i,o),f(o,s),f(o,a),f(o,c),f(c,u),f(u,h),f(c,p),f(c,y),f(y,m),f(c,v),f(c,E),
721
+ function di(e){let n,r,i,o,s,a,c,u,h,d,p,y,m,v,E,x,A,P,L,$,I,M,O;return{c(){n=w("div"),r=w("div"),i=w("div"),o=w("div"),s=w("div"),s.innerHTML='<div class="RingLeft"></div> \n <div class="RingRight"></div>',a=T(),c=w("div"),u=w("div"),h=w("img"),p=T(),y=w("div"),m=_(/*dailyday*/e[2]),v=T(),E=w("div"),x=T(),A=w("div"),P=w("button"),L=_(/*dailybuttontitle*/e[3]),this.c=t,B(s,"class","CalendarBar"),l(h.src,d=/*dailyicon*/e[1])||B(h,"src",d),B(h,"alt",/*dailyicon*/e[1]),B(u,"class","CasinoCalendarDailyIcon"),B(y,"class","CasinoCalendarDailyTitle"),B(E,"class","CasinoCalendarDailyItemDescription"),B(P,"class","MoreInfoButton"),B(A,"class","CasinoCalendarDailyItemButton"),B(c,"class",$="CasinoCalendarItemBackground CalendarPage "+("OpenCalendarModal"==/*index*/e[4]?"Tear":"")),S(c,"background-image","url('"+/*dailybackground*/e[0]+"')"),S(c,"background-size","cover"),S(c,"background-position","center"),S(c,"-webkit-background-size","cover"),S(c,"-moz-background-size","cover"),S(c,"-o-background-size","cover"),B(o,"class","CalendarCard"),B(i,"class","CasinoCalendarItems"),B(r,"class",I="Container "+(/*mobileView*/e[7]?"Mobile":""))},m(t,l){g(t,n,l),f(n,r),f(r,i),f(i,o),f(o,s),f(o,a),f(o,c),f(c,u),f(u,h),f(c,p),f(c,y),f(y,m),f(c,v),f(c,E),
722
722
  /*div5_binding*/e[14](E),f(c,x),f(c,A),f(A,P),f(P,L),
723
- /*div11_binding*/e[16](n),M||(O=C(P,"click",/*click_handler*/e[15]),M=!0)},p(t,[e]){/*dailyicon*/2&e&&!l(h.src,d=/*dailyicon*/t[1])&&B(h,"src",d),/*dailyicon*/2&e&&B(h,"alt",/*dailyicon*/t[1]),/*dailyday*/4&e&&H(m,/*dailyday*/t[2]),/*dailybuttontitle*/8&e&&H(L,/*dailybuttontitle*/t[3]),/*index*/16&e&&I!==(I="CasinoCalendarItemBackground CalendarPage "+("OpenCalendarModal"==/*index*/t[4]?"Tear":""))&&B(c,"class",I),/*dailybackground*/1&e&&S(c,"background-image","url('"+/*dailybackground*/t[0]+"')"),/*mobileView*/128&e&&$!==($="Container "+(/*mobileView*/t[7]?"Mobile":""))&&B(r,"class",$)},i:t,o:t,d(t){t&&b(n)
723
+ /*div11_binding*/e[16](n),M||(O=C(P,"click",/*click_handler*/e[15]),M=!0)},p(t,[e]){/*dailyicon*/2&e&&!l(h.src,d=/*dailyicon*/t[1])&&B(h,"src",d),/*dailyicon*/2&e&&B(h,"alt",/*dailyicon*/t[1]),/*dailyday*/4&e&&H(m,/*dailyday*/t[2]),/*dailybuttontitle*/8&e&&H(L,/*dailybuttontitle*/t[3]),/*index*/16&e&&$!==($="CasinoCalendarItemBackground CalendarPage "+("OpenCalendarModal"==/*index*/t[4]?"Tear":""))&&B(c,"class",$),/*dailybackground*/1&e&&S(c,"background-image","url('"+/*dailybackground*/t[0]+"')"),/*mobileView*/128&e&&I!==(I="Container "+(/*mobileView*/t[7]?"Mobile":""))&&B(r,"class",I)},i:t,o:t,d(t){t&&b(n)
724
724
  /*div5_binding*/,e[14](null),
725
725
  /*div11_binding*/e[16](null),M=!1,O()}}}function pi(t,e,n){let r,i,{cmsendpoint:o=""}=e,{lang:s=""}=e,{dailybackground:a=""}=e,{dailyicon:l=""}=e,{dailyday:c=""}=e,{dailydescription:u="<p></p>"}=e,{dailybuttontitle:h=""}=e,{index:d="0"}=e,{clientstyling:p=""}=e,{clientstylingurl:f=""}=e;!function({withLocale:t,translations:e}){Sr.subscribe((n=>{null==n&&(or.set(e),Sr.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
726
726
  /*dictionary.set(translations);
@@ -728,18 +728,20 @@ function di(e){let n,r,i,o,s,a,c,u,h,d,p,y,m,v,E,x,A,P,L,I,$,M,O;return{c(){n=w(
728
728
  //Analytics event
729
729
  "function"==typeof gtag&&gtag("event","MoreInfo",{context:"CalendarWidgetItem"})};k((()=>{Yr(m)&&n(7,y=!0)}));return t.$$set=t=>{"cmsendpoint"in t&&n(9,o=t.cmsendpoint),"lang"in t&&n(10,s=t.lang),"dailybackground"in t&&n(0,a=t.dailybackground),"dailyicon"in t&&n(1,l=t.dailyicon),"dailyday"in t&&n(2,c=t.dailyday),"dailydescription"in t&&n(11,u=t.dailydescription),"dailybuttontitle"in t&&n(3,h=t.dailybuttontitle),"index"in t&&n(4,d=t.index),"clientstyling"in t&&n(12,p=t.clientstyling),"clientstylingurl"in t&&n(13,f=t.clientstylingurl)},t.$$.update=()=>{/*dailyicon, dailyday, dailydescription, dailybuttontitle, dailybackground*/2063&t.$$.dirty&&l&&c&&u&&h&&a&&(()=>{
730
730
  // remove HTML tags
731
- let t=document.createElement("div");t.innerHTML=u,r&&r.append(t)})(),/*clientstyling, customStylingContainer*/4128&t.$$.dirty&&p&&i&&(()=>{let t=document.createElement("style");t.innerHTML=p,i.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/8224&t.$$.dirty&&f&&i&&(()=>{let t=new URL(f),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1),setTimeout((()=>{}),500)}))})()},[a,l,c,h,d,i,r,y,g,o,s,u,p,f,function(t){U[t?"unshift":"push"]((()=>{r=t,n(6,r)}))},()=>g(),function(t){U[t?"unshift":"push"]((()=>{i=t,n(5,i)}))}]}!customElements.get("casino-calendar-daily-details")&&customElements.define("casino-calendar-daily-details",class extends lt{constructor(t){super();const e=document.createElement("style");e.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}#CollapseMoreInfoButton{-moz-transition:height 0.5s;-ms-transition:height 0.5s;-o-transition:height 0.5s;-webkit-transition:height 0.5s;transition:height 0.5s;height:0;overflow:hidden}.MoreInfoButton{display:flex;justify-content:center;width:100%;padding:15px 0;border-radius:0 0 5px 5px;border:none;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));cursor:pointer}.IconDown{width:18px;height:18px;margin-left:10px;transform:rotate(0deg)}.IconUp{width:18px;height:18px;margin-left:10px;transform:rotate(180deg)}.CasinoCalendarDailyDetailsBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;background:var(--emfe-w-color-white, #FFFFFF);width:500px;max-height:50vw;padding:20px;text-align:center;margin-bottom:50px;overflow-y:scroll;overflow-x:unset}.CasinoCalendarDailyDetailsParent{display:flex;justify-content:flex-start;align-items:center;flex-direction:column;max-width:376px}.CasinoCalendarDailyDay{padding:10px 0 40px 0;font-size:22px;text-transform:uppercase;width:100%;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.CasinoCalendarDailyTitle{padding:15px 0 20px 0;font-size:18px;text-transform:capitalize;width:100%;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.CasinoCalendarImage{background:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px 5px 0 0}.CasinoCalendarImage img{max-width:376px;max-height:250px;border-radius:5px 5px 0 0}.CasinoCalendarDailyDescription{width:100%;padding:25px 15px;font-size:14px;font-weight:600;color:var(--emfe-w-gray-300, #58586B);font-weight:400;border-radius:0;background:linear-gradient(180deg, var(--emfe-w-color-white, #FFFFFF) 55%, var(--emfe-w-color-gray-100, #E6E6E6))}.DetailTabsDescription{margin-top:15px}.CasinoCalendarTabs{width:100%;font-size:14px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:stretch;padding-bottom:40px}.CasinoCalendarFitImage{border-radius:5px}.NotVisible{display:none}.Header{display:flex;justify-content:center;justify-items:center;margin-bottom:4px;padding:0 10px}.HeaderButton{min-height:48px;margin:0;border:none;cursor:pointer;background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-gray-150, #828282)}.SelectedTab{box-shadow:none;border-bottom:2px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.Mobile{max-height:60vh;margin-bottom:0}",this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:I(this.attributes),customElement:!0},hi,ui,s,{dailybackground:9,dailybuttontitle:0,dailyday:1,dailydescription:10,dailyicon:11,dailytitle:12,lang:13,clientstyling:14,clientstylingurl:15,translationUrl:16},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["dailybackground","dailybuttontitle","dailyday","dailydescription","dailyicon","dailytitle","lang","clientstyling","clientstylingurl","translationUrl"]}get dailybackground(){return this.$$.ctx[9]}set dailybackground(t){this.$$set({dailybackground:t}),Z()}get dailybuttontitle(){return this.$$.ctx[0]}set dailybuttontitle(t){this.$$set({dailybuttontitle:t}),Z()}get dailyday(){return this.$$.ctx[1]}set dailyday(t){this.$$set({dailyday:t}),Z()}get dailydescription(){return this.$$.ctx[10]}set dailydescription(t){this.$$set({dailydescription:t}),Z()}get dailyicon(){return this.$$.ctx[11]}set dailyicon(t){this.$$set({dailyicon:t}),Z()}get dailytitle(){return this.$$.ctx[12]}set dailytitle(t){this.$$set({dailytitle:t}),Z()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),Z()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}get translationUrl(){return this.$$.ctx[16]}set translationUrl(t){this.$$set({translationUrl:t}),Z()}});
731
+ let t=document.createElement("div");t.innerHTML=u,r&&r.append(t)})(),/*clientstyling, customStylingContainer*/4128&t.$$.dirty&&p&&i&&(()=>{let t=document.createElement("style");t.innerHTML=p,i.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/8224&t.$$.dirty&&f&&i&&(()=>{let t=new URL(f),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1),setTimeout((()=>{}),500)}))})()},[a,l,c,h,d,i,r,y,g,o,s,u,p,f,function(t){U[t?"unshift":"push"]((()=>{r=t,n(6,r)}))},()=>g(),function(t){U[t?"unshift":"push"]((()=>{i=t,n(5,i)}))}]}!customElements.get("casino-calendar-daily-details")&&customElements.define("casino-calendar-daily-details",class extends lt{constructor(t){super();const e=document.createElement("style");e.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}#CollapseMoreInfoButton{-moz-transition:height 0.5s;-ms-transition:height 0.5s;-o-transition:height 0.5s;-webkit-transition:height 0.5s;transition:height 0.5s;height:0;overflow:hidden}.MoreInfoButton{display:flex;justify-content:center;width:100%;padding:15px 0;border-radius:0 0 5px 5px;border:none;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));cursor:pointer}.IconDown{width:18px;height:18px;margin-left:10px;transform:rotate(0deg)}.IconUp{width:18px;height:18px;margin-left:10px;transform:rotate(180deg)}.CasinoCalendarDailyDetailsBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;background:var(--emfe-w-color-white, #FFFFFF);width:500px;max-height:50vw;padding:20px;text-align:center;margin-bottom:50px;overflow-y:scroll;overflow-x:unset}.CasinoCalendarDailyDetailsParent{display:flex;justify-content:flex-start;align-items:center;flex-direction:column;max-width:376px}.CasinoCalendarDailyDay{padding:10px 0 40px 0;font-size:22px;text-transform:uppercase;width:100%;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.CasinoCalendarDailyTitle{padding:15px 0 20px 0;font-size:18px;text-transform:capitalize;width:100%;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.CasinoCalendarImage{background:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px 5px 0 0}.CasinoCalendarImage img{max-width:376px;max-height:250px;border-radius:5px 5px 0 0}.CasinoCalendarDailyDescription{width:100%;padding:25px 15px;font-size:14px;font-weight:600;color:var(--emfe-w-gray-300, #58586B);font-weight:400;border-radius:0;background:linear-gradient(180deg, var(--emfe-w-color-white, #FFFFFF) 55%, var(--emfe-w-color-gray-100, #E6E6E6))}.DetailTabsDescription{margin-top:15px}.CasinoCalendarTabs{width:100%;font-size:14px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:stretch;padding-bottom:40px}.CasinoCalendarFitImage{border-radius:5px}.NotVisible{display:none}.Header{display:flex;justify-content:center;justify-items:center;margin-bottom:4px;padding:0 10px}.HeaderButton{min-height:48px;margin:0;border:none;cursor:pointer;background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-gray-150, #828282)}.SelectedTab{box-shadow:none;border-bottom:2px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.Mobile{max-height:60vh;margin-bottom:0}",this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},hi,ui,s,{dailybackground:9,dailybuttontitle:0,dailyday:1,dailydescription:10,dailyicon:11,dailytitle:12,lang:13,clientstyling:14,clientstylingurl:15,translationUrl:16},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["dailybackground","dailybuttontitle","dailyday","dailydescription","dailyicon","dailytitle","lang","clientstyling","clientstylingurl","translationUrl"]}get dailybackground(){return this.$$.ctx[9]}set dailybackground(t){this.$$set({dailybackground:t}),Z()}get dailybuttontitle(){return this.$$.ctx[0]}set dailybuttontitle(t){this.$$set({dailybuttontitle:t}),Z()}get dailyday(){return this.$$.ctx[1]}set dailyday(t){this.$$set({dailyday:t}),Z()}get dailydescription(){return this.$$.ctx[10]}set dailydescription(t){this.$$set({dailydescription:t}),Z()}get dailyicon(){return this.$$.ctx[11]}set dailyicon(t){this.$$set({dailyicon:t}),Z()}get dailytitle(){return this.$$.ctx[12]}set dailytitle(t){this.$$set({dailytitle:t}),Z()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),Z()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}get translationUrl(){return this.$$.ctx[16]}set translationUrl(t){this.$$set({translationUrl:t}),Z()}});
732
732
  /* src/CasinoCalendar.svelte generated by Svelte v3.59.2 */
733
- function fi(t,e,n){const r=t.slice();return r[13]=e[n],r[15]=n,r}
734
- // (82:4) {#if calendarCollections?.length}
735
- function yi(t){let e,n,r,i=/*calendarCollections*/t[1],o=[];for(let e=0;e<i.length;e+=1)o[e]=bi(fi(t,i,e));let s=/*calendarModalOpened*/1==t[6]&&vi(t);return{c(){e=w("div");for(let t=0;t<o.length;t+=1)o[t].c();n=T(),s&&s.c(),B(e,"class",r="CasinoCalendarItem "+(/*mobileView*/t[5]?"Mobile":""))},m(t,r){g(t,e,r);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);f(e,n),s&&s.m(e,null)},p(t,a){if(/*calendarCollections, lang*/3&a){let r;for(i=/*calendarCollections*/t[1],r=0;r<i.length;r+=1){const s=fi(t,i,r);o[r]?o[r].p(s,a):(o[r]=bi(s),o[r].c(),o[r].m(e,n))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}/*calendarModalOpened*/1==t[6]?s?s.p(t,a):(s=vi(t),s.c(),s.m(e,null)):s&&(s.d(1),s=null),/*mobileView*/32&a&&r!==(r="CasinoCalendarItem "+(/*mobileView*/t[5]?"Mobile":""))&&B(e,"class",r)},d(t){t&&b(e),v(o,t),s&&s.d()}}}
736
- // (79:2) {#if isLoading}
733
+ function fi(t,e,n){const r=t.slice();return r[20]=e[n],r[22]=n,r}
734
+ // (105:6) {#if calendarCollections?.length}
735
+ function yi(t){let e,n,r,i=/*calendarCollections*/t[2],o=[];for(let e=0;e<i.length;e+=1)o[e]=bi(fi(t,i,e));let s=/*calendarModalOpened*/1==t[7]&&vi(t);return{c(){e=w("div");for(let t=0;t<o.length;t+=1)o[t].c();n=T(),s&&s.c(),B(e,"class",r="CasinoCalendarItem "+(/*mobileView*/t[6]?"Mobile":""))},m(t,r){g(t,e,r);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);f(e,n),s&&s.m(e,null)},p(t,a){if(/*calendarCollections, lang*/5&a){let r;for(i=/*calendarCollections*/t[2],r=0;r<i.length;r+=1){const s=fi(t,i,r);o[r]?o[r].p(s,a):(o[r]=bi(s),o[r].c(),o[r].m(e,n))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}/*calendarModalOpened*/1==t[7]?s?s.p(t,a):(s=vi(t),s.c(),s.m(e,null)):s&&(s.d(1),s=null),/*mobileView*/64&a&&r!==(r="CasinoCalendarItem "+(/*mobileView*/t[6]?"Mobile":""))&&B(e,"class",r)},d(t){t&&b(e),v(o,t),s&&s.d()}}}
736
+ // (102:4) {#if isLoading}
737
737
  function mi(e){let n;return{c(){n=w("div"),B(n,"class","LoadingSpinner"),B(n,"part","LoadingSpinner")},m(t,e){g(t,n,e)},p:t,d(t){t&&b(n)}}}
738
- // (76:0) {#if hasErrors}
738
+ // (99:2) {#if hasErrors}
739
739
  function gi(e){let n;return{c(){n=w("p"),n.textContent="500 Error - Internal Server Error",B(n,"class","SearchLoading"),B(n,"part","SearchLoading")},m(t,e){g(t,n,e)},p:t,d(t){t&&b(n)}}}
740
- // (84:8) {#each calendarCollections as dailyCalendarData, index }
741
- function bi(t){let e,n,r,i,o,s;return{c(){e=w("casino-calendar-daily-item"),A(e,"dailybackground",n=/*dailyCalendarData*/t[13].dailyBackground),A(e,"dailyicon",r=/*dailyCalendarData*/t[13].dailyIcon),A(e,"dailyday",i=/*dailyCalendarData*/t[13].dailyDay),A(e,"dailydescription",o=/*dailyCalendarData*/t[13].dailyDescription),A(e,"dailybuttontitle",s=/*dailyCalendarData*/t[13].dailyButtonTitle),A(e,"index",/*index*/t[15]),A(e,"lang",/*lang*/t[0])},m(t,n){g(t,e,n)},p(t,a){/*calendarCollections*/2&a&&n!==(n=/*dailyCalendarData*/t[13].dailyBackground)&&A(e,"dailybackground",n),/*calendarCollections*/2&a&&r!==(r=/*dailyCalendarData*/t[13].dailyIcon)&&A(e,"dailyicon",r),/*calendarCollections*/2&a&&i!==(i=/*dailyCalendarData*/t[13].dailyDay)&&A(e,"dailyday",i),/*calendarCollections*/2&a&&o!==(o=/*dailyCalendarData*/t[13].dailyDescription)&&A(e,"dailydescription",o),/*calendarCollections*/2&a&&s!==(s=/*dailyCalendarData*/t[13].dailyButtonTitle)&&A(e,"dailybuttontitle",s),/*lang*/1&a&&A(e,"lang",/*lang*/t[0])},d(t){t&&b(e)}}}
742
- // (96:8) {#if calendarModalOpened == true}
743
- function vi(t){let e,n,r,i,o,s,a,l;return{c(){e=w("casino-modal"),n=w("casino-calendar-daily-details"),A(n,"dailybackground",r=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyBackground),A(n,"dailybuttontitle",i=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyButtonTitle),A(n,"dailyday",o=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyDay),A(n,"dailydescription",s=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyDescription),A(n,"dailyicon",a=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyIcon),A(n,"dailytitle",l=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyTitle),A(n,"lang",/*lang*/t[0]),A(e,"identifier","Calendar")},m(t,r){g(t,e,r),f(e,n)},p(t,e){/*calendarCollections, selectedIndex*/6&e&&r!==(r=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyBackground)&&A(n,"dailybackground",r),/*calendarCollections, selectedIndex*/6&e&&i!==(i=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyButtonTitle)&&A(n,"dailybuttontitle",i),/*calendarCollections, selectedIndex*/6&e&&o!==(o=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyDay)&&A(n,"dailyday",o),/*calendarCollections, selectedIndex*/6&e&&s!==(s=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyDescription)&&A(n,"dailydescription",s),/*calendarCollections, selectedIndex*/6&e&&a!==(a=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyIcon)&&A(n,"dailyicon",a),/*calendarCollections, selectedIndex*/6&e&&l!==(l=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyTitle)&&A(n,"dailytitle",l),/*lang*/1&e&&A(n,"lang",/*lang*/t[0])},d(t){t&&b(e)}}}function wi(e){let n;function r(t,e){/*hasErrors*/
744
- return t[4]?gi:/*isLoading*/t[3]?mi:/*calendarCollections*/t[1]?.length?yi:void 0}let i=r(e),o=i&&i(e);return{c(){o&&o.c(),n=x(),this.c=t},m(t,e){o&&o.m(t,e),g(t,n,e)},p(t,[e]){i===(i=r(t))&&o?o.p(t,e):(o&&o.d(1),o=i&&i(t),o&&(o.c(),o.m(n.parentNode,n)))},i:t,o:t,d(t){o&&o.d(t),t&&b(n)}}}function Ei(t,e,n){let r,{cmsendpoint:i=""}=e,{userroles:o=""}=e,{lang:s="en"}=e,a=0,l=!0,c=!1,u=!1,h=window.navigator.userAgent,d=!1;const p=()=>{(()=>{n(3,l=!0);let t=new URL(`${i}/${s}/daily-calendar/`);t.searchParams.append("userRoles",o);let e=(t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(h);e&&("PC"===e?t.searchParams.append("device","dk"):t.searchParams.append("device","mtWeb")),fetch(t.href).then((t=>t.json())).then((t=>{n(1,r=t)})).catch((t=>{console.log(t),n(4,c=!0)})).finally((()=>{n(3,l=!1)}))})()},f=t=>{var e;t.data&&"OpenCalendar"==t.data.type&&(n(2,a=t.data.index),n(6,d=!0),window.postMessage({type:"ShowModal",selectedIndex:a,identifier:"Calendar"},window.location.href),window.postMessage({type:"DailyEventsData",data:null===(e=r[a])||void 0===e?void 0:e.dailyEvents})),t.data&&"ModalClosed"==t.data.type&&n(6,d=!1)};return k((()=>(window.addEventListener("message",f,!1),Yr(h)&&n(5,u=!0),()=>{window.removeEventListener("message",f)}))),t.$$set=t=>{"cmsendpoint"in t&&n(7,i=t.cmsendpoint),"userroles"in t&&n(8,o=t.userroles),"lang"in t&&n(0,s=t.lang)},t.$$.update=()=>{/*cmsendpoint, lang, userroles*/385&t.$$.dirty&&i&&s&&o&&p()},[s,r,a,l,c,u,d,i,o]}!customElements.get("casino-calendar-daily-item")&&customElements.define("casino-calendar-daily-item",class extends lt{constructor(t){super();const e=document.createElement("style");e.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Container{display:flex;overflow-x:unset;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container::-webkit-scrollbar{display:none}.CalendarBar{width:100%;height:28px;background:rgba(156, 163, 175, 0.25);border-radius:4px 4px 0 0;border-bottom:3px solid rgba(156, 163, 175, 0.5);display:block;z-index:2}.CalendarBar::before{content:"";position:absolute;z-index:-1}.RingLeft::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;left:22px;position:absolute;z-index:1}.RingLeft::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px var(--emfe-w-color-white, #FFFFFF);top:6px;right:20px;position:absolute;z-index:0}.RingRight::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;right:22px;position:absolute;z-index:1}.RingRight::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px #fff;top:6px;left:20px;position:absolute;z-index:0}.CalendarPage{width:100%;min-width:170px;height:170px;padding:8px 16px;text-align:center;border-radius:0 0 2px 2px;color:var(--emfe-w-color-white, #FFFFFF);position:relative;z-index:0}.CalendarPage.Tear{animation:tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes tearoff{0%{top:0}40%{transform:rotate(4deg);top:10px;opacity:1}65%{opacity:1}90%{transform:rotate(4deg);top:20px;opacity:0}95%{transform:rotate(0deg);top:0px;opacity:0}100%{transform:rotate(0deg);top:0px;opacity:1}}.CalendarCard{margin:16px 0 12px;width:170px;height:240px;text-align:center;border-radius:5px;color:var(--emfe-w-color-white, #FFFFFF);position:relative;display:block}.CasinoCalendarItems{width:100%}.CasinoCalendarItemBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-gray-300, #58586B);background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-position:center;background-size:cover;background-blend-mode:multiply;height:100%;width:100%;border-radius:0 0 5px 5px}.CasinoCalendarDailyIcon{height:20px;margin:15px}.CasinoCalendarDailyTitle{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription{padding:15px;margin-bottom:20px;font-size:14px;height:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:100%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;font-size:12px;padding:8px 6px;border-radius:5px;border:none;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));cursor:pointer}',this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:I(this.attributes),customElement:!0},pi,di,s,{cmsendpoint:9,lang:10,dailybackground:0,dailyicon:1,dailyday:2,dailydescription:11,dailybuttontitle:3,index:4,clientstyling:12,clientstylingurl:13},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["cmsendpoint","lang","dailybackground","dailyicon","dailyday","dailydescription","dailybuttontitle","index","clientstyling","clientstylingurl"]}get cmsendpoint(){return this.$$.ctx[9]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),Z()}get lang(){return this.$$.ctx[10]}set lang(t){this.$$set({lang:t}),Z()}get dailybackground(){return this.$$.ctx[0]}set dailybackground(t){this.$$set({dailybackground:t}),Z()}get dailyicon(){return this.$$.ctx[1]}set dailyicon(t){this.$$set({dailyicon:t}),Z()}get dailyday(){return this.$$.ctx[2]}set dailyday(t){this.$$set({dailyday:t}),Z()}get dailydescription(){return this.$$.ctx[11]}set dailydescription(t){this.$$set({dailydescription:t}),Z()}get dailybuttontitle(){return this.$$.ctx[3]}set dailybuttontitle(t){this.$$set({dailybuttontitle:t}),Z()}get index(){return this.$$.ctx[4]}set index(t){this.$$set({index:t}),Z()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}});class _i extends lt{constructor(t){super();const e=document.createElement("style");e.textContent='.CasinoCalendarItem{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;text-align:left;gap:10px}.Mobile{padding:0 10px;height:286px;overflow-y:visible;overflow-x:scroll;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto\n }.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:I(this.attributes),customElement:!0},Ei,wi,s,{cmsendpoint:7,userroles:8,lang:0},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["cmsendpoint","userroles","lang"]}get cmsendpoint(){return this.$$.ctx[7]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),Z()}get userroles(){return this.$$.ctx[8]}set userroles(t){this.$$set({userroles:t}),Z()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),Z()}}return!customElements.get("casino-calendar")&&customElements.define("casino-calendar",_i),_i}));
740
+ // (107:10) {#each calendarCollections as dailyCalendarData, index }
741
+ function bi(t){let e,n,r,i,o,s;return{c(){e=w("casino-calendar-daily-item"),A(e,"dailybackground",n=/*dailyCalendarData*/t[20].dailyBackground),A(e,"dailyicon",r=/*dailyCalendarData*/t[20].dailyIcon),A(e,"dailyday",i=/*dailyCalendarData*/t[20].dailyDay),A(e,"dailydescription",o=/*dailyCalendarData*/t[20].dailyDescription),A(e,"dailybuttontitle",s=/*dailyCalendarData*/t[20].dailyButtonTitle),A(e,"index",/*index*/t[22]),A(e,"lang",/*lang*/t[0])},m(t,n){g(t,e,n)},p(t,a){/*calendarCollections*/4&a&&n!==(n=/*dailyCalendarData*/t[20].dailyBackground)&&A(e,"dailybackground",n),/*calendarCollections*/4&a&&r!==(r=/*dailyCalendarData*/t[20].dailyIcon)&&A(e,"dailyicon",r),/*calendarCollections*/4&a&&i!==(i=/*dailyCalendarData*/t[20].dailyDay)&&A(e,"dailyday",i),/*calendarCollections*/4&a&&o!==(o=/*dailyCalendarData*/t[20].dailyDescription)&&A(e,"dailydescription",o),/*calendarCollections*/4&a&&s!==(s=/*dailyCalendarData*/t[20].dailyButtonTitle)&&A(e,"dailybuttontitle",s),/*lang*/1&a&&A(e,"lang",/*lang*/t[0])},d(t){t&&b(e)}}}
742
+ // (119:10) {#if calendarModalOpened == true}
743
+ function vi(t){let e,n,r,i,o,s,a,l;return{c(){e=w("casino-modal"),n=w("casino-calendar-daily-details"),A(n,"dailybackground",r=/*calendarCollections*/t[2][/*selectedIndex*/t[3]].dailyBackground),A(n,"dailybuttontitle",i=/*calendarCollections*/t[2][/*selectedIndex*/t[3]].dailyButtonTitle),A(n,"dailyday",o=/*calendarCollections*/t[2][/*selectedIndex*/t[3]].dailyDay),A(n,"dailydescription",s=/*calendarCollections*/t[2][/*selectedIndex*/t[3]].dailyDescription),A(n,"dailyicon",a=/*calendarCollections*/t[2][/*selectedIndex*/t[3]].dailyIcon),A(n,"dailytitle",l=/*calendarCollections*/t[2][/*selectedIndex*/t[3]].dailyTitle),A(n,"lang",/*lang*/t[0]),A(e,"identifier","Calendar")},m(t,r){g(t,e,r),f(e,n)},p(t,e){/*calendarCollections, selectedIndex*/12&e&&r!==(r=/*calendarCollections*/t[2][/*selectedIndex*/t[3]].dailyBackground)&&A(n,"dailybackground",r),/*calendarCollections, selectedIndex*/12&e&&i!==(i=/*calendarCollections*/t[2][/*selectedIndex*/t[3]].dailyButtonTitle)&&A(n,"dailybuttontitle",i),/*calendarCollections, selectedIndex*/12&e&&o!==(o=/*calendarCollections*/t[2][/*selectedIndex*/t[3]].dailyDay)&&A(n,"dailyday",o),/*calendarCollections, selectedIndex*/12&e&&s!==(s=/*calendarCollections*/t[2][/*selectedIndex*/t[3]].dailyDescription)&&A(n,"dailydescription",s),/*calendarCollections, selectedIndex*/12&e&&a!==(a=/*calendarCollections*/t[2][/*selectedIndex*/t[3]].dailyIcon)&&A(n,"dailyicon",a),/*calendarCollections, selectedIndex*/12&e&&l!==(l=/*calendarCollections*/t[2][/*selectedIndex*/t[3]].dailyTitle)&&A(n,"dailytitle",l),/*lang*/1&e&&A(n,"lang",/*lang*/t[0])},d(t){t&&b(e)}}}function wi(e){let n;function r(t,e){/*hasErrors*/
744
+ return t[5]?gi:/*isLoading*/t[4]?mi:/*calendarCollections*/t[2]?.length?yi:void 0}let i=r(e),o=i&&i(e);return{c(){n=w("div"),o&&o.c(),this.c=t},m(t,r){g(t,n,r),o&&o.m(n,null)
745
+ /*div_binding*/,e[12](n)},p(t,[e]){i===(i=r(t))&&o?o.p(t,e):(o&&o.d(1),o=i&&i(t),o&&(o.c(),o.m(n,null)))},i:t,o:t,d(t){t&&b(n),o&&o.d()
746
+ /*div_binding*/,e[12](null)}}}function Ei(t,e,n){let r,i,{cmsendpoint:o=""}=e,{userroles:s=""}=e,{lang:a="en"}=e,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,u=0,h=!0,d=!1,p=!1,f=window.navigator.userAgent,y=!1;const m=()=>{(()=>{n(4,h=!0);let t=new URL(`${o}/${a}/daily-calendar/`);t.searchParams.append("userRoles",s);let e=(t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(f);e&&("PC"===e?t.searchParams.append("device","dk"):t.searchParams.append("device","mtWeb")),fetch(t.href).then((t=>t.json())).then((t=>{n(2,i=t)})).catch((t=>{console.log(t),n(5,d=!0)})).finally((()=>{n(4,h=!1)}))})()},g=t=>{var e;t.data&&"OpenCalendar"==t.data.type&&(n(3,u=t.data.index),n(7,y=!0),window.postMessage({type:"ShowModal",selectedIndex:u,identifier:"Calendar"},window.location.href),window.postMessage({type:"DailyEventsData",data:null===(e=i[u])||void 0===e?void 0:e.dailyEvents})),t.data&&"ModalClosed"==t.data.type&&n(7,y=!1)};return k((()=>(window.addEventListener("message",g,!1),Yr(f)&&n(6,p=!0),()=>{window.removeEventListener("message",g)}))),t.$$set=t=>{"cmsendpoint"in t&&n(8,o=t.cmsendpoint),"userroles"in t&&n(9,s=t.userroles),"lang"in t&&n(0,a=t.lang),"clientstyling"in t&&n(10,l=t.clientstyling),"clientstylingurl"in t&&n(11,c=t.clientstylingurl)},t.$$.update=()=>{/*cmsendpoint, lang, userroles*/769&t.$$.dirty&&o&&a&&s&&m(),/*clientstyling, customStylingContainer*/1026&t.$$.dirty&&l&&r&&(()=>{let t=document.createElement("style");t.innerHTML=l,r.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/2050&t.$$.dirty&&c&&r&&(()=>{let t=new URL(c),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{r.appendChild(e)}),1),setTimeout((()=>{}),500)}))})()},[a,r,i,u,h,d,p,y,o,s,l,c,function(t){U[t?"unshift":"push"]((()=>{r=t,n(1,r)}))}]}!customElements.get("casino-calendar-daily-item")&&customElements.define("casino-calendar-daily-item",class extends lt{constructor(t){super();const e=document.createElement("style");e.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Container{display:flex;overflow-x:unset;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container::-webkit-scrollbar{display:none}.CalendarBar{width:100%;height:28px;background:rgba(156, 163, 175, 0.25);border-radius:4px 4px 0 0;border-bottom:3px solid rgba(156, 163, 175, 0.5);display:block;z-index:2}.CalendarBar::before{content:"";position:absolute;z-index:-1}.RingLeft::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;left:22px;position:absolute;z-index:1}.RingLeft::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px var(--emfe-w-color-white, #FFFFFF);top:6px;right:20px;position:absolute;z-index:0}.RingRight::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;right:22px;position:absolute;z-index:1}.RingRight::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px #fff;top:6px;left:20px;position:absolute;z-index:0}.CalendarPage{width:100%;min-width:170px;height:170px;padding:8px 16px;text-align:center;border-radius:0 0 2px 2px;color:var(--emfe-w-color-white, #FFFFFF);position:relative;z-index:0}.CalendarPage.Tear{animation:tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes tearoff{0%{top:0}40%{transform:rotate(4deg);top:10px;opacity:1}65%{opacity:1}90%{transform:rotate(4deg);top:20px;opacity:0}95%{transform:rotate(0deg);top:0px;opacity:0}100%{transform:rotate(0deg);top:0px;opacity:1}}.CalendarCard{margin:16px 0 12px;width:170px;height:240px;text-align:center;border-radius:5px;color:var(--emfe-w-color-white, #FFFFFF);position:relative;display:block}.CasinoCalendarItems{width:100%}.CasinoCalendarItemBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-gray-300, #58586B);background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-position:center;background-size:cover;background-blend-mode:multiply;height:100%;width:100%;border-radius:0 0 5px 5px}.CasinoCalendarDailyIcon{height:20px;margin:15px}.CasinoCalendarDailyTitle{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription{padding:15px;margin-bottom:20px;font-size:14px;height:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:100%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;font-size:12px;padding:8px 6px;border-radius:5px;border:none;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));cursor:pointer}',this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},pi,di,s,{cmsendpoint:9,lang:10,dailybackground:0,dailyicon:1,dailyday:2,dailydescription:11,dailybuttontitle:3,index:4,clientstyling:12,clientstylingurl:13},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["cmsendpoint","lang","dailybackground","dailyicon","dailyday","dailydescription","dailybuttontitle","index","clientstyling","clientstylingurl"]}get cmsendpoint(){return this.$$.ctx[9]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),Z()}get lang(){return this.$$.ctx[10]}set lang(t){this.$$set({lang:t}),Z()}get dailybackground(){return this.$$.ctx[0]}set dailybackground(t){this.$$set({dailybackground:t}),Z()}get dailyicon(){return this.$$.ctx[1]}set dailyicon(t){this.$$set({dailyicon:t}),Z()}get dailyday(){return this.$$.ctx[2]}set dailyday(t){this.$$set({dailyday:t}),Z()}get dailydescription(){return this.$$.ctx[11]}set dailydescription(t){this.$$set({dailydescription:t}),Z()}get dailybuttontitle(){return this.$$.ctx[3]}set dailybuttontitle(t){this.$$set({dailybuttontitle:t}),Z()}get index(){return this.$$.ctx[4]}set index(t){this.$$set({index:t}),Z()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}});class _i extends lt{constructor(t){super();const e=document.createElement("style");e.textContent='.CasinoCalendarItem{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;text-align:left;gap:10px}.Mobile{padding:0 10px;height:286px;overflow-y:visible;overflow-x:scroll;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto\n }.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},Ei,wi,s,{cmsendpoint:8,userroles:9,lang:0,clientstyling:10,clientstylingurl:11},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["cmsendpoint","userroles","lang","clientstyling","clientstylingurl"]}get cmsendpoint(){return this.$$.ctx[8]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),Z()}get userroles(){return this.$$.ctx[9]}set userroles(t){this.$$set({userroles:t}),Z()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),Z()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}}return!customElements.get("casino-calendar")&&customElements.define("casino-calendar",_i),_i}));
745
747
  //# sourceMappingURL=casino-calendar.js.map