@everymatrix/casino-collections-providers 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,(function(){"use strict";function t(){}function e(t){return t()}function r(){return Object.create(null)}function n(t){t.forEach(e)}function o(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s,a;function l(t,e){return s||(s=document.createElement("a")),s.href=e,t===s.href}function c(e,...r){if(null==e)return t;const n=e.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function u(t,e){t.appendChild(e)}function h(t,e,r){t.insertBefore(e,r||null)}function f(t){t.parentNode.removeChild(t)}function p(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}function d(t){return document.createElement(t)}function m(t){return document.createTextNode(t)}function y(){return m(" ")}function b(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function g(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function v(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function E(t,e,r,n){null===r?t.style.removeProperty(e):t.style.setProperty(e,r,n?"important":"")}function _(t){const e={};for(const r of t)e[r.name]=r.value;return e}function T(t){a=t}function w(t){(function(){if(!a)throw new Error("Function called outside component initialization");return a})().$$.on_mount.push(t)}const A=[],B=[],S=[],H=[],P=Promise.resolve();let C=!1;function
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,(function(){"use strict";function t(){}function e(t){return t()}function r(){return Object.create(null)}function n(t){t.forEach(e)}function o(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s,a;function l(t,e){return s||(s=document.createElement("a")),s.href=e,t===s.href}function c(e,...r){if(null==e)return t;const n=e.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function u(t,e){t.appendChild(e)}function h(t,e,r){t.insertBefore(e,r||null)}function f(t){t.parentNode.removeChild(t)}function p(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}function d(t){return document.createElement(t)}function m(t){return document.createTextNode(t)}function y(){return m(" ")}function b(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function g(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function v(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function E(t,e,r,n){null===r?t.style.removeProperty(e):t.style.setProperty(e,r,n?"important":"")}function _(t){const e={};for(const r of t)e[r.name]=r.value;return e}function T(t){a=t}function w(t){(function(){if(!a)throw new Error("Function called outside component initialization");return a})().$$.on_mount.push(t)}const A=[],B=[],S=[],H=[],P=Promise.resolve();let C=!1;function O(t){S.push(t)}
|
2
2
|
// flush() calls callbacks in this order:
|
3
3
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
4
4
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
@@ -17,7 +17,7 @@
|
|
17
17
|
// 3. During afterUpdate, any updated components will NOT have their afterUpdate
|
18
18
|
// callback called a second time; the seen_callbacks set, outside the flush()
|
19
19
|
// function, guarantees this behavior.
|
20
|
-
const
|
20
|
+
const L=new Set;let I=0;// Do *not* move this inside the flush() function
|
21
21
|
function N(){const t=a;do{
|
22
22
|
// first, call beforeUpdate functions
|
23
23
|
// and update components
|
@@ -25,9 +25,9 @@ for(;I<A.length;){const t=A[I];I++,T(t),R(t.$$)}for(T(null),A.length=0,I=0;B.len
|
|
25
25
|
// then, once components are updated, call
|
26
26
|
// afterUpdate functions. This may cause
|
27
27
|
// subsequent updates...
|
28
|
-
for(let t=0;t<S.length;t+=1){const e=S[t];
|
28
|
+
for(let t=0;t<S.length;t+=1){const e=S[t];L.has(e)||(
|
29
29
|
// ...so guard against infinite loops
|
30
|
-
|
30
|
+
L.add(e),e())}S.length=0}while(A.length);for(;H.length;)H.pop()();C=!1,L.clear(),T(t)}function R(t){if(null!==t.fragment){t.update(),n(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(O)}}const M=new Set;function U(t,e){-1===t.$$.dirty[0]&&(A.push(t),C||(C=!0,P.then(N)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function x(i,s,l,c,u,h,p,d=[-1]){const m=a;T(i);const y=i.$$={fragment:null,ctx:null,
|
31
31
|
// state
|
32
32
|
props:h,update:t,not_equal:u,bound:r(),
|
33
33
|
// lifecycle
|
@@ -41,10 +41,10 @@ y.fragment&&y.fragment.l(t),t.forEach(f)}else
|
|
41
41
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
42
42
|
y.fragment&&y.fragment.c();s.intro&&((g=i.$$.fragment)&&g.i&&(M.delete(g),g.i(v))),function(t,r,i,s){const{fragment:a,on_mount:l,on_destroy:c,after_update:u}=t.$$;a&&a.m(r,i),s||
|
43
43
|
// onMount happens before the initial afterUpdate
|
44
|
-
|
44
|
+
O((()=>{const r=l.map(e).filter(o);c?c.push(...r):
|
45
45
|
// Edge case - component was destroyed immediately,
|
46
46
|
// most likely as a result of a binding initialising
|
47
|
-
n(r),t.$$.on_mount=[]})),u.forEach(
|
47
|
+
n(r),t.$$.on_mount=[]})),u.forEach(O)}(i,s.target,s.anchor,s.customElement),N()}var g,v;T(m)}let G;"function"==typeof HTMLElement&&(G=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(o);
|
48
48
|
// @ts-ignore todo: improve typings
|
49
49
|
for(const t in this.$$.slotted)
|
50
50
|
// @ts-ignore todo: improve typings
|
@@ -65,12 +65,12 @@ const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{co
|
|
65
65
|
* @param {StartStopNotifier=}start start and stop notifications for subscriptions
|
66
66
|
*/
|
67
67
|
function F(e,r=t){let n;const o=new Set;function s(t){if(i(e,t)&&(e=t,n)){// store is ready
|
68
|
-
const t=!D.length;for(const t of o)t[1](),D.push(t,e);if(t){for(let t=0;t<D.length;t+=2)D[t][0](D[t+1]);D.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,a=t){const l=[i,a];return o.add(l),1===o.size&&(n=r(s)||t),i(e),()=>{o.delete(l),0===o.size&&(n(),n=null)}}}}function
|
68
|
+
const t=!D.length;for(const t of o)t[1](),D.push(t,e);if(t){for(let t=0;t<D.length;t+=2)D[t][0](D[t+1]);D.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,a=t){const l=[i,a];return o.add(l),1===o.size&&(n=r(s)||t),i(e),()=>{o.delete(l),0===o.size&&(n(),n=null)}}}}function $(e,r,i){const s=!Array.isArray(e),a=s?[e]:e,l=r.length<2;return u=e=>{let i=!1;const u=[];let h=0,f=t;const p=()=>{if(h)return;f();const n=r(s?u[0]:u,e);l?e(n):f=o(n)?n:t},d=a.map(((t,e)=>c(t,(t=>{u[e]=t,h&=~(1<<e),i&&p()}),(()=>{h|=1<<e}))));return i=!0,p(),function(){n(d),f()}},{subscribe:F(i,u).subscribe};var u}var k=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===j}(t)}
|
69
69
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
70
70
|
(t)};var j="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function V(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Z((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function X(t,e,r){return t.concat(e).map((function(t){return V(t,r)}))}function z(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function K(t,e){try{return e in t}catch(t){return!1}}
|
71
71
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
72
72
|
function Y(t,e,r){var n={};return r.isMergeableObject(t)&&z(t).forEach((function(e){n[e]=V(t[e],r)})),z(e).forEach((function(o){(function(t,e){return K(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e));// and also unsafe if they're nonenumerable.
|
73
|
-
})(t,o)||(K(t,o)&&r.isMergeableObject(e[o])?n[o]=function(t,e){if(!e.customMerge)return Z;var r=e.customMerge(t);return"function"==typeof r?r:Z}(o,r)(t[o],e[o],r):n[o]=V(e[o],r))})),n}function Z(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||X,r.isMergeableObject=r.isMergeableObject
|
73
|
+
})(t,o)||(K(t,o)&&r.isMergeableObject(e[o])?n[o]=function(t,e){if(!e.customMerge)return Z;var r=e.customMerge(t);return"function"==typeof r?r:Z}(o,r)(t[o],e[o],r):n[o]=V(e[o],r))})),n}function Z(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||X,r.isMergeableObject=r.isMergeableObject||k,
|
74
74
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
75
75
|
// implementations can use it. The caller may not replace it.
|
76
76
|
r.cloneUnlessOtherwiseSpecified=V;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):Y(t,e,r):V(e,r)}Z.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return Z(t,r,e)}),{})};var W=Z,q=function(t,e){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},q(t,e)};function J(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}q(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Q,tt,et,rt=function(){return rt=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},rt.apply(this,arguments)};function nt(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}
|
@@ -261,7 +261,7 @@ var Pt,Ct={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H
|
|
261
261
|
* of the given `locale` to the corresponding time pattern.
|
262
262
|
* @param locale
|
263
263
|
*/
|
264
|
-
function
|
264
|
+
function Ot(t){var e=t.hourCycle;if(void 0===e&&
|
265
265
|
// @ts-ignore hourCycle(s) is not identified yet
|
266
266
|
t.hourCycles&&
|
267
267
|
// @ts-ignore
|
@@ -269,17 +269,17 @@ t.hourCycles.length&&(
|
|
269
269
|
// @ts-ignore
|
270
270
|
e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}
|
271
271
|
// TODO: Once hourCycle is fully supported remove the following with data generation
|
272
|
-
var r,n=t.language;return"root"!==n&&(r=t.maximize().region),(Ct[r||""]||Ct[n||""]||Ct["".concat(n,"-001")]||Ct["001"])[0]}var
|
272
|
+
var r,n=t.language;return"root"!==n&&(r=t.maximize().region),(Ct[r||""]||Ct[n||""]||Ct["".concat(n,"-001")]||Ct["001"])[0]}var Lt=new RegExp("^".concat(mt.source,"*")),It=new RegExp("".concat(mt.source,"*$"));function Nt(t,e){return{start:t,end:e}}
|
273
273
|
// #region Ponyfills
|
274
274
|
// Consolidate these variables up top for easier toggling during debugging
|
275
|
-
var Rt=!!String.prototype.startsWith,Mt=!!String.fromCodePoint,Ut=!!Object.fromEntries,xt=!!String.prototype.codePointAt,Gt=!!String.prototype.trimStart,Dt=!!String.prototype.trimEnd,Ft=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991}
|
275
|
+
var Rt=!!String.prototype.startsWith,Mt=!!String.fromCodePoint,Ut=!!Object.fromEntries,xt=!!String.prototype.codePointAt,Gt=!!String.prototype.trimStart,Dt=!!String.prototype.trimEnd,Ft=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},$t=!0;try{
|
276
276
|
/**
|
277
277
|
* legacy Edge or Xbox One browser
|
278
278
|
* Unicode flag support: supported
|
279
279
|
* Pattern_Syntax support: not supported
|
280
280
|
* See https://github.com/formatjs/formatjs/issues/2822
|
281
281
|
*/
|
282
|
-
|
282
|
+
$t="a"===(null===(Pt=Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Pt?void 0:Pt[0])}catch(t){$t=!1}var kt,jt=Rt?// Native
|
283
283
|
function(t,e,r){return t.startsWith(e,r)}:// For IE11
|
284
284
|
function(t,e,r){return t.slice(r,r+e.length)===e},Vt=Mt?String.fromCodePoint:// IE11
|
285
285
|
function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",o=t.length,i=0;o>i;){if((r=t[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Xt=
|
@@ -289,17 +289,17 @@ function(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r],i=o[0],s=o[1];e[i]=s
|
|
289
289
|
function(t,e){return t.codePointAt(e)}:// IE 11
|
290
290
|
function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,o=t.charCodeAt(e);return o<55296||o>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},Kt=Gt?// Native
|
291
291
|
function(t){return t.trimStart()}:// Ponyfill
|
292
|
-
function(t){return t.replace(
|
292
|
+
function(t){return t.replace(Lt,"")},Yt=Dt?// Native
|
293
293
|
function(t){return t.trimEnd()}:// Ponyfill
|
294
294
|
function(t){return t.replace(It,"")};
|
295
295
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
296
296
|
function Zt(t,e){return new RegExp(t,e)}
|
297
297
|
// #endregion
|
298
|
-
if(
|
298
|
+
if($t){
|
299
299
|
// Native
|
300
|
-
var Wt=Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu")
|
300
|
+
var Wt=Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");kt=function(t,e){var r;return Wt.lastIndex=e,null!==(r=Wt.exec(t)[1])&&void 0!==r?r:""}}else
|
301
301
|
// IE11
|
302
|
-
|
302
|
+
kt=function(t,e){for(var r=[];;){var n=zt(t,e);if(void 0===n||te(n)||ee(n))break;r.push(n),e+=n>=65536?2:1}return Vt.apply(void 0,r)};var qt=/** @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,r){for(var n=[];!this.isEOF();){var o=this.char();if(123/* `{` */===o){if((i=this.parseArgument(t,r)).err)return i;n.push(i.val)}else{if(125/* `}` */===o&&t>0)break;if(35/* `#` */!==o||"plural"!==e&&"selectordinal"!==e){if(60/* `<` */===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Q.UNMATCHED_CLOSING_TAG,Nt(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===o&&!this.ignoreTag&&Jt(this.peek()||0)){if((i=this.parseTag(t,e)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(t,e)).err)return i;n.push(i.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:tt.pound,location:Nt(s,this.clonePosition())})}}}return{val:n,err:null}},
|
303
303
|
/**
|
304
304
|
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
305
305
|
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
@@ -366,7 +366,7 @@ this.bumpSpace(),this.isEOF()?this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,Nt(r,th
|
|
366
366
|
* Advance the parser until the end of the identifier, if it is currently on
|
367
367
|
* an identifier character. Return an empty string otherwise.
|
368
368
|
*/
|
369
|
-
t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r
|
369
|
+
t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=kt(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:Nt(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
|
370
370
|
// Parse this range:
|
371
371
|
// {name, type, style}
|
372
372
|
// ^---^
|
@@ -384,7 +384,7 @@ var h=Kt(l.style.slice(2));if("number"===s)return(b=this.parseNumberSkeletonFrom
|
|
384
384
|
// Get "best match" pattern only if locale is passed, if not, let it
|
385
385
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
386
386
|
// for unsupported patterns.
|
387
|
-
this.locale&&(f=function(t,e){for(var r="",n=0;n<t.length;n++){var o=t.charAt(n);if("j"===o){for(var i=0;n+1<t.length&&t.charAt(n+1)===o;)i++,n++;var s=1+(1&i),a=i<2?1:3+(i>>1),l=
|
387
|
+
this.locale&&(f=function(t,e){for(var r="",n=0;n<t.length;n++){var o=t.charAt(n);if("j"===o){for(var i=0;n+1<t.length&&t.charAt(n+1)===o;)i++,n++;var s=1+(1&i),a=i<2?1:3+(i>>1),l=Ot(e);for("H"!=l&&"k"!=l||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=l+r}else r+="J"===o?"H":o}return r}(h,this.locale));var p={type:et.dateTime,pattern:f,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?bt(f):{}};return{val:{type:"date"===s?tt.date:tt.time,value:r,location:u,style:p},err:null}}
|
388
388
|
// Regular style or no style.
|
389
389
|
return{val:{type:"number"===s?tt.number:"date"===s?tt.date:tt.time,value:r,location:u,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":
|
390
390
|
// Parse this range:
|
@@ -553,7 +553,7 @@ t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
553
553
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
554
554
|
Copyrights licensed under the New BSD License.
|
555
555
|
See the accompanying LICENSE file for terms.
|
556
|
-
*/const Be={},Se=(t,e,r)=>r?(e in Be||(Be[e]={}),t in Be[e]||(Be[e][t]=r),r):r,He=(t,e)=>{if(null==e)return;if(e in Be&&t in Be[e])return Be[e][t];const r=Xe(e);for(let n=0;n<r.length;n++){const o=
|
556
|
+
*/const Be={},Se=(t,e,r)=>r?(e in Be||(Be[e]={}),t in Be[e]||(Be[e][t]=r),r):r,He=(t,e)=>{if(null==e)return;if(e in Be&&t in Be[e])return Be[e][t];const r=Xe(e);for(let n=0;n<r.length;n++){const o=Le(r[n],t);if(o)return Se(t,e,o)}};let Pe;const Ce=F({});function Oe(t){return t in Pe}function Le(t,e){if(!Oe(t))return null;const r=function(t){return Pe[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(t>0){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(r,e)}function Ie(t,...e){delete Be[t],Ce.update((r=>(r[t]=W.all([r[t]||{},...e]),r)))}$([Ce],(([t])=>Object.keys(t))),Ce.subscribe((t=>Pe=t));const Ne={};function Re(t){return Ne[t]}function Me(t){return null!=t&&Xe(t).some((t=>{var e;return null===(e=Re(t))||void 0===e?void 0:e.size}))}const Ue={};function xe(t){if(!Me(t))return t in Ue?Ue[t]:Promise.resolve();const e=function(t){return Xe(t).map((t=>{const e=Re(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return Ue[t]=Promise.all(e.map((([t,e])=>function(t,e){const r=Promise.all(e.map((e=>(function(t,e){Ne[t].delete(e),0===Ne[t].size&&delete Ne[t]}(t,e),e().then((t=>t.default||t))))));return r.then((e=>Ie(t,...e)))}(t,e)))).then((()=>{if(Me(t))return xe(t);delete Ue[t]})),Ue[t]}
|
557
557
|
/*! *****************************************************************************
|
558
558
|
Copyright (c) Microsoft Corporation.
|
559
559
|
|
@@ -567,9 +567,9 @@ t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
567
567
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
568
568
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
569
569
|
PERFORMANCE OF THIS SOFTWARE.
|
570
|
-
***************************************************************************** */function Ge(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}const De={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 Fe(){return De}const
|
570
|
+
***************************************************************************** */function Ge(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}const De={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 Fe(){return De}const $e=F(!1);let ke;const je=F(null);function Ve(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function Xe(t,e=Fe().fallbackLocale){const r=Ve(t);return e?[...new Set([...r,...Ve(e)])]:r}function ze(){return null!=ke?ke:void 0}je.subscribe((t=>{ke=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Ke=Object.assign(Object.assign({},je),{set:t=>{if(t&&function(t){if(null==t)return;const e=Xe(t);for(let t=0;t<e.length;t++){const r=e[t];if(Oe(r))return r}}(t)&&Me(t)){const{loadingDelay:e}=Fe();let r;return"undefined"!=typeof window&&null!=ze()&&e?r=window.setTimeout((()=>$e.set(!0)),e):$e.set(!0),xe(t).then((()=>{je.set(t)})).finally((()=>{clearTimeout(r),$e.set(!1)}))}return je.set(t)}}),Ye=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}},Ze=(t,e)=>{const{formats:r}=Fe();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},We=Ye((t=>{var{locale:e,format:r}=t,n=Ge(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=Ze("number",r)),new Intl.NumberFormat(e,n)})),qe=Ye((t=>{var{locale:e,format:r}=t,n=Ge(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=Ze("date",r):0===Object.keys(n).length&&(n=Ze("date","short")),new Intl.DateTimeFormat(e,n)})),Je=Ye((t=>{var{locale:e,format:r}=t,n=Ge(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=Ze("time",r):0===Object.keys(n).length&&(n=Ze("time","short")),new Intl.DateTimeFormat(e,n)})),Qe=Ye(((t,e=ze())=>new Ae(t,e,Fe().formats,{ignoreTag:Fe().ignoreTag}))),tr=(t,e={})=>{var r,n,o,i;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:l=ze(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=He(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!==(i=null!==(o=null===(n=(r=Fe()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:l,id:t,defaultValue:c}))&&void 0!==o?o:c)&&void 0!==i?i:t;if(!a)return u;let h=u;try{h=Qe(u,l).format(a)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return h},er=(t,e)=>((t={})=>{var{locale:e=ze()}=t,r=Ge(t,["locale"]);return Je(Object.assign({locale:e},r))})(e).format(t),rr=(t,e)=>((t={})=>{var{locale:e=ze()}=t,r=Ge(t,["locale"]);return qe(Object.assign({locale:e},r))})(e).format(t),nr=(t,e)=>((t={})=>{var{locale:e=ze()}=t,r=Ge(t,["locale"]);return We(Object.assign({locale:e},r))})(e).format(t),or=(t,e=ze())=>He(t,e),ir=$([Ke,Ce],(()=>tr));function sr(t,e){Ie(t,e)}$([Ke],(()=>er)),$([Ke],(()=>rr)),$([Ke],(()=>nr)),$([Ke,Ce],(()=>or));const ar={en:{Translations:{game:"Game",collections:"Collections",providers:"Providers"}},zh:{Translations:{game:"Game",collections:"Collections",providers:"Providers"}},de:{Translations:{game:"Game",collections:"Collections",providers:"Providers"}},it:{Translations:{game:"Game",collections:"Collections",providers:"Providers"}},fr:{Translations:{game:"Game",collections:"Collections",providers:"Providers"}},es:{Translations:{game:"Game",collections:"Collections",providers:"Providers"}},el:{Translations:{game:"Game",collections:"Collections",providers:"Providers"}},tr:{Translations:{game:"Game",collections:"Collections",providers:"Providers"}},ru:{Translations:{game:"Game",collections:"Collections",providers:"Providers"}},ro:{Translations:{game:"Game",collections:"Collections",providers:"Providers"}},hr:{Translations:{game:"Game",collections:"Collections",providers:"Providers"}},hu:{Translations:{game:"Game",collections:"Collections",providers:"Providers"}},pl:{Translations:{game:"Game",collections:"Collections",providers:"Providers"}},pt:{Translations:{game:"Game",collections:"Collections",providers:"Providers"}},sl:{Translations:{game:"Game",collections:"Collections",providers:"Providers"}},sr:{Translations:{game:"Game",collections:"Collections",providers:"Providers"}}};var lr="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==lr&&lr,cr="URLSearchParams"in lr,ur="Symbol"in lr&&"iterator"in Symbol,hr="FileReader"in lr&&"Blob"in lr&&function(){try{return new Blob,!0}catch(t){return!1}}(),fr="FormData"in lr,pr="ArrayBuffer"in lr;if(pr)var dr=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],mr=ArrayBuffer.isView||function(t){return t&&dr.indexOf(Object.prototype.toString.call(t))>-1};function yr(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function br(t){return"string"!=typeof t&&(t=String(t)),t}
|
571
571
|
// Build a destructive iterator for the value list
|
572
|
-
function
|
572
|
+
function gr(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ur&&(e[Symbol.iterator]=function(){return e}),e}function vr(t){this.map={},t instanceof vr?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function Er(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function _r(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function Tr(t){var e=new FileReader,r=_r(e);return e.readAsArrayBuffer(t),r}function wr(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Ar(){return this.bodyUsed=!1,this._initBody=function(t){var e;
|
573
573
|
/*
|
574
574
|
fetch-mock wraps the Response object in an ES6 Proxy to
|
575
575
|
provide useful test harness features such as flush. However, on
|
@@ -580,21 +580,21 @@ function br(t){var e={next:function(){var e=t.shift();return{done:void 0===e,val
|
|
580
580
|
semantic of setting Request.bodyUsed in the constructor before
|
581
581
|
_initBody is called.
|
582
582
|
*/
|
583
|
-
this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:
|
583
|
+
this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:hr&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:fr&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:cr&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():pr&&hr&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=wr(t.buffer),
|
584
584
|
// IE 10-11 can't handle a DataView body.
|
585
|
-
this._bodyInit=new Blob([this._bodyArrayBuffer])):
|
585
|
+
this._bodyInit=new Blob([this._bodyArrayBuffer])):pr&&(ArrayBuffer.prototype.isPrototypeOf(t)||mr(t))?this._bodyArrayBuffer=wr(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):cr&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},hr&&(this.blob=function(){var t=Er(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=Er(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(Tr)}),this.text=function(){var t,e,r,n=Er(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=_r(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},fr&&(this.formData=function(){return this.text().then(Hr)}),this.json=function(){return this.text().then(JSON.parse)},this}
|
586
586
|
// HTTP methods whose capitalization should be normalized
|
587
|
-
|
587
|
+
vr.prototype.append=function(t,e){t=yr(t),e=br(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},vr.prototype.delete=function(t){delete this.map[yr(t)]},vr.prototype.get=function(t){return t=yr(t),this.has(t)?this.map[t]:null},vr.prototype.has=function(t){return this.map.hasOwnProperty(yr(t))},vr.prototype.set=function(t,e){this.map[yr(t)]=br(e)},vr.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},vr.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),gr(t)},vr.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),gr(t)},vr.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),gr(t)},ur&&(vr.prototype[Symbol.iterator]=vr.prototype.entries);var Br=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Sr(t,e){if(!(this instanceof Sr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(e=e||{}).body;if(t instanceof Sr){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new vr(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new vr(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),Br.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){
|
588
588
|
// Search for a '_' parameter in the query string
|
589
589
|
var i=/([?&])_=[^&]*/;if(i.test(this.url))
|
590
590
|
// If it already exists then set the value with the current time
|
591
|
-
this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function
|
591
|
+
this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Hr(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function Pr(t,e){if(!(this instanceof Pr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new vr(e.headers),this.url=e.url||"",this._initBody(t)}Sr.prototype.clone=function(){return new Sr(this,{body:this._bodyInit})},Ar.call(Sr.prototype),Ar.call(Pr.prototype),Pr.prototype.clone=function(){return new Pr(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new vr(this.headers),url:this.url})},Pr.error=function(){var t=new Pr(null,{status:0,statusText:""});return t.type="error",t};var Cr=[301,302,303,307,308];Pr.redirect=function(t,e){if(-1===Cr.indexOf(e))throw new RangeError("Invalid status code");return new Pr(null,{status:e,headers:{location:t}})};var Or=lr.DOMException;try{new Or}catch(t){(Or=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),Or.prototype.constructor=Or}function Lr(t,e){return new Promise((function(r,n){var o=new Sr(t,e);if(o.signal&&o.signal.aborted)return n(new Or("Aborted","AbortError"));var i=new XMLHttpRequest;function s(){i.abort()}i.onload=function(){var t,e,n={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",e=new vr,
|
592
592
|
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
593
593
|
// https://github.com/github/fetch/issues/748
|
594
594
|
// https://github.com/zloirock/core-js/issues/751
|
595
|
-
t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){r(new
|
595
|
+
t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){r(new Pr(o,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){n(new Or("Aborted","AbortError"))}),0)},i.open(o.method,function(t){try{return""===t&&lr.location.href?lr.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(hr?i.responseType="blob":pr&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof vr?o.headers.forEach((function(t,e){i.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){i.setRequestHeader(t,br(e.headers[t]))})),o.signal&&(o.signal.addEventListener("abort",s),i.onreadystatechange=function(){
|
596
596
|
// DONE (success or failure)
|
597
|
-
4===i.readyState&&o.signal.removeEventListener("abort",s)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}Lr.polyfill=!0,
|
597
|
+
4===i.readyState&&o.signal.removeEventListener("abort",s)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}Lr.polyfill=!0,lr.fetch||(lr.fetch=Lr,lr.Headers=vr,lr.Request=Sr,lr.Response=Pr),
|
598
598
|
// the whatwg-fetch polyfill installs the fetch() function
|
599
599
|
// on the global object (window or self)
|
600
600
|
// Return that as the export for use in Webpack, Browserify etc.
|
@@ -614,41 +614,41 @@ self.fetch.bind(self);
|
|
614
614
|
PERFORMANCE OF THIS SOFTWARE.
|
615
615
|
***************************************************************************** */
|
616
616
|
/* global Reflect, Promise */
|
617
|
-
var Or=function(t,e){return Or=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Or(t,e)};function Ir(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Or(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Nr(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Rr(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function Mr(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}function Ur(t){return"function"==typeof t}function xr(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}var Gr=xr((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 Dr(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Fr=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var e;return t.prototype.unsubscribe=function(){var t,e,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=Nr(i),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 i.remove(this);var l=this.initialTeardown;if(Ur(l))try{l()}catch(t){o=t instanceof Gr?t.errors:[t]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=Nr(c),h=u.next();!h.done;h=u.next()){var f=h.value;try{jr(f)}catch(t){o=null!=o?o:[],t instanceof Gr?o=Mr(Mr([],Rr(o)),Rr(t.errors)):o.push(t)}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(o)throw new Gr(o)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)jr(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).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)&&Dr(e,t)},t.prototype.remove=function(e){var r=this._finalizers;r&&Dr(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),kr=Fr.EMPTY;function $r(t){return t instanceof Fr||t&&"closed"in t&&Ur(t.remove)&&Ur(t.add)&&Ur(t.unsubscribe)}function jr(t){Ur(t)?t():t.unsubscribe()}var Vr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Xr={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Xr.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,Mr([t,e],Rr(r))):setTimeout.apply(void 0,Mr([t,e],Rr(r)))},clearTimeout:function(t){var e=Xr.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function zr(){}var Kr=null;function Yr(t){if(Vr.useDeprecatedSynchronousErrorHandling){var e=!Kr;if(e&&(Kr={errorThrown:!1,error:null}),t(),e){var r=Kr,n=r.errorThrown,o=r.error;if(Kr=null,n)throw o}}else t()}var Zr=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,$r(e)&&e.add(r)):r.destination=en,r}return Ir(e,t),e.create=function(t,e,r){return new Qr(t,e,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,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}(Fr),Wr=Function.prototype.bind;function qr(t,e){return Wr.call(t,e)}var Jr=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){tn(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){tn(t)}else tn(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){tn(t)}},t}(),Qr=function(t){function e(e,r,n){var o,i,s=t.call(this)||this;Ur(e)||!e?o={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&Vr.useDeprecatedNextContext?((i=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},o={next:e.next&&qr(e.next,i),error:e.error&&qr(e.error,i),complete:e.complete&&qr(e.complete,i)}):o=e;return s.destination=new Jr(o),s}return Ir(e,t),e}(Zr);function tn(t){var e;e=t,Xr.setTimeout((function(){throw e}))}var en={closed:!0,next:zr,error:function(t){throw t},complete:zr},rn="function"==typeof Symbol&&Symbol.observable||"@@observable";function nn(t){return t}function on(t){return 0===t.length?nn:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var sn=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n,o=this,i=(n=t)&&n instanceof Zr||function(t){return t&&Ur(t.next)&&Ur(t.error)&&Ur(t.complete)}(n)&&$r(n)?t:new Qr(t,e,r);return Yr((function(){var t=o,e=t.operator,r=t.source;i.add(e?e.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=an(e))((function(e,n){var o=new Qr({next:function(e){try{t(e)}catch(t){n(t),o.unsubscribe()}},error:n,complete:e});r.subscribe(o)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[rn]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return on(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=an(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function an(t){var e;return null!==(e=null!=t?t:Vr.Promise)&&void 0!==e?e:Promise}var ln=xr((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),cn=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 Ir(e,t),e.prototype.lift=function(t){var e=new un(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new ln},e.prototype.next=function(t){var e=this;Yr((function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var o=Nr(e.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(t)}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;Yr((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}}))},e.prototype.complete=function(){var t=this;Yr((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,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?kr:(this.currentObservers=null,i.push(t),new Fr((function(){e.currentObservers=null,Dr(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,o=e.isStopped;r?t.error(n):o&&t.complete()},e.prototype.asObservable=function(){var t=new sn;return t.source=this,t},e.create=function(t,e){return new un(t,e)},e}(sn),un=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return Ir(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.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,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:kr},e}(cn),hn={now:function(){return(hn.delegate||Date).now()},delegate:void 0},fn=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=hn);var o=t.call(this)||this;return o._bufferSize=e,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,r),o}return Ir(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(o.push(e),!i&&o.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),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!t.closed;o+=r?1:2)t.next(n[o]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,o=t._infiniteTimeWindow,i=(o?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var s=r.now(),a=0,l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}},e}(cn);let pn=[],dn={};window.emWidgets={topic:(t,e=0)=>{if(-1==pn.indexOf(t)){let r=new fn(e);dn[t]=r,pn.push(t)}return dn[t]}};
|
617
|
+
var Ir=function(t,e){return Ir=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Ir(t,e)};function Nr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Ir(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Rr(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Mr(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function Ur(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}function xr(t){return"function"==typeof t}function Gr(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}var Dr=Gr((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 Fr(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var $r=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var e;return t.prototype.unsubscribe=function(){var t,e,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=Rr(i),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 i.remove(this);var l=this.initialTeardown;if(xr(l))try{l()}catch(t){o=t instanceof Dr?t.errors:[t]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=Rr(c),h=u.next();!h.done;h=u.next()){var f=h.value;try{Vr(f)}catch(t){o=null!=o?o:[],t instanceof Dr?o=Ur(Ur([],Mr(o)),Mr(t.errors)):o.push(t)}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(o)throw new Dr(o)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Vr(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).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)&&Fr(e,t)},t.prototype.remove=function(e){var r=this._finalizers;r&&Fr(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),kr=$r.EMPTY;function jr(t){return t instanceof $r||t&&"closed"in t&&xr(t.remove)&&xr(t.add)&&xr(t.unsubscribe)}function Vr(t){xr(t)?t():t.unsubscribe()}var Xr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},zr={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=zr.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,Ur([t,e],Mr(r))):setTimeout.apply(void 0,Ur([t,e],Mr(r)))},clearTimeout:function(t){var e=zr.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Kr(){}var Yr=null;function Zr(t){if(Xr.useDeprecatedSynchronousErrorHandling){var e=!Yr;if(e&&(Yr={errorThrown:!1,error:null}),t(),e){var r=Yr,n=r.errorThrown,o=r.error;if(Yr=null,n)throw o}}else t()}var Wr=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,jr(e)&&e.add(r)):r.destination=rn,r}return Nr(e,t),e.create=function(t,e,r){return new tn(t,e,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,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}($r),qr=Function.prototype.bind;function Jr(t,e){return qr.call(t,e)}var Qr=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){en(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){en(t)}else en(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){en(t)}},t}(),tn=function(t){function e(e,r,n){var o,i,s=t.call(this)||this;xr(e)||!e?o={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&Xr.useDeprecatedNextContext?((i=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},o={next:e.next&&Jr(e.next,i),error:e.error&&Jr(e.error,i),complete:e.complete&&Jr(e.complete,i)}):o=e;return s.destination=new Qr(o),s}return Nr(e,t),e}(Wr);function en(t){var e;e=t,zr.setTimeout((function(){throw e}))}var rn={closed:!0,next:Kr,error:function(t){throw t},complete:Kr},nn="function"==typeof Symbol&&Symbol.observable||"@@observable";function on(t){return t}function sn(t){return 0===t.length?on:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var an=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n,o=this,i=(n=t)&&n instanceof Wr||function(t){return t&&xr(t.next)&&xr(t.error)&&xr(t.complete)}(n)&&jr(n)?t:new tn(t,e,r);return Zr((function(){var t=o,e=t.operator,r=t.source;i.add(e?e.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=ln(e))((function(e,n){var o=new tn({next:function(e){try{t(e)}catch(t){n(t),o.unsubscribe()}},error:n,complete:e});r.subscribe(o)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[nn]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return sn(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=ln(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function ln(t){var e;return null!==(e=null!=t?t:Xr.Promise)&&void 0!==e?e:Promise}var cn=Gr((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),un=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 Nr(e,t),e.prototype.lift=function(t){var e=new hn(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new cn},e.prototype.next=function(t){var e=this;Zr((function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var o=Rr(e.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(t)}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;Zr((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}}))},e.prototype.complete=function(){var t=this;Zr((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,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?kr:(this.currentObservers=null,i.push(t),new $r((function(){e.currentObservers=null,Fr(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,o=e.isStopped;r?t.error(n):o&&t.complete()},e.prototype.asObservable=function(){var t=new an;return t.source=this,t},e.create=function(t,e){return new hn(t,e)},e}(an),hn=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return Nr(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.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,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:kr},e}(un),fn={now:function(){return(fn.delegate||Date).now()},delegate:void 0},pn=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=fn);var o=t.call(this)||this;return o._bufferSize=e,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,r),o}return Nr(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(o.push(e),!i&&o.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),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!t.closed;o+=r?1:2)t.next(n[o]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,o=t._infiniteTimeWindow,i=(o?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var s=r.now(),a=0,l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}},e}(un);let dn=[],mn={};window.emWidgets={topic:(t,e=0)=>{if(-1==dn.indexOf(t)){let r=new pn(e);mn[t]=r,dn.push(t)}return mn[t]}};
|
618
618
|
/* src/CasinoCollectionsProviders.svelte generated by Svelte v3.48.0 */
|
619
|
-
function
|
620
|
-
// (
|
621
|
-
function
|
622
|
-
/*div2_binding*/t[
|
623
|
-
/*div2_binding*/t[
|
624
|
-
// (
|
625
|
-
function
|
626
|
-
// (
|
627
|
-
function
|
628
|
-
// (
|
629
|
-
function
|
630
|
-
// (
|
631
|
-
function
|
632
|
-
return t[
|
619
|
+
function yn(t,e,r){const n=t.slice();return n[39]=e[r],n}function bn(t,e,r){const n=t.slice();return n[42]=e[r],n}
|
620
|
+
// (159:4) {:else}
|
621
|
+
function gn(t){let e,r,o,i,s,a,l,c,E,_,T,w,A,B,S,H,P=/*$_*/t[7]("Translations.game")+"",C=/*type*/("vendor"==t[0]?/*$_*/t[7]("Translations.providers"):/*$_*/t[7]("Translations.collections"))+"",O=/*gameCategories*/t[2],L=[];for(let e=0;e<O.length;e+=1)L[e]=wn(yn(t,O,e));return{c(){e=d("div"),r=d("div"),o=d("p"),i=m(P),s=y(),a=m(C),l=y(),c=d("div"),E=d("button"),E.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',_=y(),T=d("button"),T.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',w=y(),A=d("div");for(let t=0;t<L.length;t+=1)L[t].c();g(o,"class","Title"),g(c,"class","ButtonsContainer"),g(r,"class","CategoriesHeader"),g(A,"class","CategoriesSlider"),g(e,"class",B="CasinoCollectionsProviders "+(/*mobile*/t[6]?"Mobile":""))},m(n,f){h(n,e,f),u(e,r),u(r,o),u(o,i),u(o,s),u(o,a),u(r,l),u(r,c),u(c,E),u(c,_),u(c,T),u(e,w),u(e,A);for(let t=0;t<L.length;t+=1)L[t].m(A,null);
|
622
|
+
/*div2_binding*/t[22](A),S||(H=[b(E,"click",/*click_handler*/t[18]),b(T,"click",/*click_handler_1*/t[19])],S=!0)},p(t,r){if(/*$_*/128&r[0]&&P!==(P=/*$_*/t[7]("Translations.game")+"")&&v(i,P),/*type, $_*/129&r[0]&&C!==(C=/*type*/("vendor"==t[0]?/*$_*/t[7]("Translations.providers"):/*$_*/t[7]("Translations.collections"))+"")&&v(a,C),/*gameCategories, openCategory, openGame, titletype*/3078&r[0]){let e;for(O=/*gameCategories*/t[2],e=0;e<O.length;e+=1){const n=yn(t,O,e);L[e]?L[e].p(n,r):(L[e]=wn(n),L[e].c(),L[e].m(A,null))}for(;e<L.length;e+=1)L[e].d(1);L.length=O.length}/*mobile*/64&r[0]&&B!==(B="CasinoCollectionsProviders "+(/*mobile*/t[6]?"Mobile":""))&&g(e,"class",B)},d(r){r&&f(e),p(L,r),
|
623
|
+
/*div2_binding*/t[22](null),S=!1,n(H)}}}
|
624
|
+
// (157:4) {#if isLoading}
|
625
|
+
function vn(e){let r;return{c(){r=d("p"),r.textContent="Loading, please wait ..."},m(t,e){h(t,r,e)},p:t,d(t){t&&f(r)}}}
|
626
|
+
// (184:47)
|
627
|
+
function En(t){let e,r,n=/*category*/t[39].name+"";return{c(){e=d("p"),r=m(n),g(e,"class","CategorySlideTitle")},m(t,n){h(t,e,n),u(e,r)},p(t,e){/*gameCategories*/4&e[0]&&n!==(n=/*category*/t[39].name+"")&&v(r,n)},d(t){t&&f(e)}}}
|
628
|
+
// (182:16) {#if titletype == 'logo'}
|
629
|
+
function _n(t){let e,r,n;return{c(){e=d("img"),g(e,"class","CategorySlideLogo"),l(e.src,r=/*category*/t[39].icon)||g(e,"src",r),g(e,"alt",n=/*category*/t[39].name+" icon")},m(t,r){h(t,e,r)},p(t,o){/*gameCategories*/4&o[0]&&!l(e.src,r=/*category*/t[39].icon)&&g(e,"src",r),/*gameCategories*/4&o[0]&&n!==(n=/*category*/t[39].name+" icon")&&g(e,"alt",n)},d(t){t&&f(e)}}}
|
630
|
+
// (189:16) {#each category.games as game}
|
631
|
+
function Tn(t){let e,r,n,o,i;function s(){/*click_handler_2*/
|
632
|
+
return t[20](/*game*/t[42])}return{c(){e=d("img"),g(e,"class","CategorySlideGameImage"),l(e.src,r=/*game*/t[42].defaultThumbnail)||g(e,"src",r),g(e,"alt",n=/*game*/t[42].name)},m(t,r){var n;h(t,e,r),o||(i=b(e,"click",(n=s,function(t){
|
633
633
|
// @ts-ignore
|
634
|
-
return t.stopPropagation(),n.call(this,t)})),o=!0)},p(o,i){t=o,/*gameCategories*/4&i[0]&&!l(e.src,r=/*game*/t[
|
635
|
-
// (
|
636
|
-
function
|
637
|
-
return"logo"==t[1]?
|
638
|
-
return t[
|
639
|
-
return t[5]?gn
|
640
|
-
/*div_binding*/e[
|
641
|
-
/*div_binding*/e[
|
634
|
+
return t.stopPropagation(),n.call(this,t)})),o=!0)},p(o,i){t=o,/*gameCategories*/4&i[0]&&!l(e.src,r=/*game*/t[42].defaultThumbnail)&&g(e,"src",r),/*gameCategories*/4&i[0]&&n!==(n=/*game*/t[42].name)&&g(e,"alt",n)},d(t){t&&f(e),o=!1,i()}}}
|
635
|
+
// (178:10) {#each gameCategories as category}
|
636
|
+
function wn(t){let e,r,n,o,i,s,a,l,c;function m(t,e){/*titletype*/
|
637
|
+
return"logo"==t[1]?_n:/*titletype*/"title"==t[1]?En:void 0}let v=m(t),_=v&&v(t),T=/*category*/t[39].games,w=[];for(let e=0;e<T.length;e+=1)w[e]=Tn(bn(t,T,e));function A(){/*click_handler_3*/
|
638
|
+
return t[21](/*category*/t[39])}return{c(){e=d("div"),r=d("div"),n=d("div"),_&&_.c(),o=y(),i=d("div");for(let t=0;t<w.length;t+=1)w[t].c();a=y(),g(n,"class","CategorySlideTopContainer"),g(i,"class","CategorySlideGameContainer"),g(r,"class",s="CategorySlide "+(/*category*/"vendor"==t[39]?.flag[0]?"CategorySlideNoHighlight":"")),E(r,"background-image","url("+/*category*/t[39]?.background+")"),g(e,"class","CategoriesSliderWrapper Animation")},m(t,s){h(t,e,s),u(e,r),u(r,n),_&&_.m(n,null),u(r,o),u(r,i);for(let t=0;t<w.length;t+=1)w[t].m(i,null);u(e,a),l||(c=b(r,"click",A),l=!0)},p(e,o){if(v===(v=m(t=e))&&_?_.p(t,o):(_&&_.d(1),_=v&&v(t),_&&(_.c(),_.m(n,null))),/*gameCategories, openGame*/1028&o[0]){let e;for(T=/*category*/t[39].games,e=0;e<T.length;e+=1){const r=bn(t,T,e);w[e]?w[e].p(r,o):(w[e]=Tn(r),w[e].c(),w[e].m(i,null))}for(;e<w.length;e+=1)w[e].d(1);w.length=T.length}/*gameCategories*/4&o[0]&&s!==(s="CategorySlide "+(/*category*/"vendor"==t[39]?.flag[0]?"CategorySlideNoHighlight":""))&&g(r,"class",s),/*gameCategories*/4&o[0]&&E(r,"background-image","url("+/*category*/t[39]?.background+")")},d(t){t&&f(e),_&&_.d(),p(w,t),l=!1,c()}}}function An(e){let r;function n(t,e){/*isLoading*/
|
639
|
+
return t[5]?vn:gn}let o=n(e),i=o(e);return{c(){r=d("div"),i.c(),this.c=t},m(t,n){h(t,r,n),i.m(r,null),
|
640
|
+
/*div_binding*/e[23](r)},p(t,e){o===(o=n(t))&&i?i.p(t,e):(i.d(1),i=o(t),i&&(i.c(),i.m(r,null)))},i:t,o:t,d(t){t&&f(r),i.d(),
|
641
|
+
/*div_binding*/e[23](null)}}}function Bn(t,e,r){let n;var o,i;o=ir,i=t=>r(7,n=t),t.$$.on_destroy.push(c(o,i));let s,a,l,u,h,{endpoint:f=""}=e,{datasource:p=""}=e,{lang:d=""}=e,{type:m=""}=e,{titletype:y=""}=e,{clientstyling:b=""}=e,{clientstylingurl:g=""}=e,{translationUrl:v=""}=e,E=[],_=!0,T=0,A=0,S=0,H=window.navigator.userAgent;Object.keys(ar).forEach((t=>{sr(t,ar[t])}));const P=t=>{
|
642
642
|
//store each slide HTML element in an array
|
643
643
|
l=[...s.children],
|
644
644
|
//iterate the array of elements and translate each of them by 100% times the index to create the slider
|
645
|
-
l.forEach(((e,r)=>{e.style.transform=`translateX(${100*(t?r-t:r)}%)`})),l.map((t=>a=t.getBoundingClientRect().width)),
|
645
|
+
l.forEach(((e,r)=>{e.style.transform=`translateX(${100*(t?r-t:r)}%)`})),l.map((t=>a=t.getBoundingClientRect().width)),C()},C=()=>{
|
646
646
|
//needed for finding the beginning and end of the slider
|
647
|
-
|
647
|
+
S=Math.round(s.offsetWidth/a)},O=()=>{
|
648
648
|
//in order to go to a specific slide, position all the slides relative to one of them, one which is determined by sliderScrollLeft and sliderScrollRight
|
649
|
-
|
649
|
+
P(T)},L=()=>{S>=A||(0===T?T=A-S:T-S<-1?T=0:T--,O())},I=()=>{S>=A||(T===A-S?T=0:A-S<T+1?T=A-S:T++,O())},N=(t,e,r)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:t,launchUrl:e,gameName:r},window.location.href),
|
650
650
|
//Analytics event
|
651
|
-
"function"==typeof gtag&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${r}`})},
|
651
|
+
"function"==typeof gtag&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${r}`})},R=t=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:t},window.location.href)},M=()=>{var t;t=d,Ke.set(t)};w((()=>{r(6,h=(t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)))(H))}));return t.$$set=t=>{"endpoint"in t&&r(12,f=t.endpoint),"datasource"in t&&r(13,p=t.datasource),"lang"in t&&r(14,d=t.lang),"type"in t&&r(0,m=t.type),"titletype"in t&&r(1,y=t.titletype),"clientstyling"in t&&r(15,b=t.clientstyling),"clientstylingurl"in t&&r(16,g=t.clientstylingurl),"translationUrl"in t&&r(17,v=t.translationUrl)},t.$$.update=()=>{/*endpoint, datasource, lang*/28672&t.$$.dirty[0]&&f&&p&&d&&(()=>{const t=new URL(`${f}/v2/casino/groups/${p}`);t.searchParams.append("language",d),t.searchParams.append("expand","games"),fetch(t.href).then((t=>t.json())).then((t=>{r(5,_=!1);let e=t.items.filter((t=>t.flags==m));r(2,E=e.map((t=>({id:t.id,name:t.name,icon:t.icon,games:t.games.items.slice(0,4).map((t=>t)),background:t.background,flag:t.flags})))),A=E.length}))})(),/*gameCategories, categoriesSlider*/12&t.$$.dirty[0]&&
|
652
652
|
//making sure we have something to position, before trying to
|
653
|
-
|
653
|
+
E&&s&&P(),/*lang*/16384&t.$$.dirty[0]&&d&&M(),/*clientstyling, customStylingContainer*/32784&t.$$.dirty[0]&&b&&u&&(()=>{let t=document.createElement("style");t.innerHTML=b,u.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/65552&t.$$.dirty[0]&&g&&u&&(()=>{let t=new URL(g),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,u&&(setTimeout((()=>{u.appendChild(e)}),1),setTimeout((()=>{}),500))}))})(),/*translationUrl*/131072&t.$$.dirty[0]&&v&&fetch(v).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{sr(e,t[e])}))})).catch((t=>{console.log(t)}))},[m,y,E,s,u,_,h,n,L,I,N,R,f,p,d,b,g,v,()=>L(),()=>I(),t=>N(t.gameId,t.launchUrl,t.name),t=>R(t.id),function(t){B[t?"unshift":"push"]((()=>{s=t,r(3,s)}))},function(t){B[t?"unshift":"push"]((()=>{u=t,r(4,u)}))}]}class Sn extends G{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emfe-w-color-white, #FFFFFF);font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{max-height:100px}.CategoriesSlider .CategorySlideTitle{color:var(--emfe-w-color-white, #FFFFFF);font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;justify-content:center;gap:3%;min-height:70px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:22%;height:55px;object-fit:cover}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:85vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}</style>",x(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},Bn,An,i,{endpoint:12,datasource:13,lang:14,type:0,titletype:1,clientstyling:15,clientstylingurl:16,translationUrl:17},null,[-1,-1]),t&&(t.target&&h(t.target,this,t.anchor),t.props&&(this.$set(t.props),N()))}static get observedAttributes(){return["endpoint","datasource","lang","type","titletype","clientstyling","clientstylingurl","translationUrl"]}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),N()}get datasource(){return this.$$.ctx[13]}set datasource(t){this.$$set({datasource:t}),N()}get lang(){return this.$$.ctx[14]}set lang(t){this.$$set({lang:t}),N()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),N()}get titletype(){return this.$$.ctx[1]}set titletype(t){this.$$set({titletype:t}),N()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(t){this.$$set({clientstyling:t}),N()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),N()}get translationUrl(){return this.$$.ctx[17]}set translationUrl(t){this.$$set({translationUrl:t}),N()}}return!customElements.get("casino-collections-providers")&&customElements.define("casino-collections-providers",Sn),Sn}));
|
654
654
|
//# sourceMappingURL=casino-collections-providers.js.map
|