@everymatrix/casino-collections-providers 1.13.15 → 1.13.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function r(){return Object.create(null)}function n(e){e.forEach(t)}function o(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,a;function l(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function c(t,...r){if(null==t)return e;const n=t.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function u(e,t){e.appendChild(t)}function h(e,t,r){e.insertBefore(t,r||null)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function d(e){return document.createElement(e)}function m(e){return document.createTextNode(e)}function y(){return m(" ")}function g(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function b(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function v(e,t){t=""+t,e.data!==t&&(e.data=t)}function E(e,t,r,n){null==r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function _(e){const t={};for(const r of e)t[r.name]=r.value;return t}function T(e){a=e}
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function r(){return Object.create(null)}function n(e){e.forEach(t)}function o(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s,a;function l(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function c(t,...r){if(null==t)return e;const n=t.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function u(e,t){e.appendChild(t)}function h(e,t,r){e.insertBefore(t,r||null)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function d(e){return document.createElement(e)}function m(e){return document.createTextNode(e)}function y(){return m(" ")}function g(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function b(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function v(e,t){t=""+t,e.data!==t&&(e.data=t)}function E(e,t,r,n){null==r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function _(e){const t={};for(const r of e)t[r.name]=r.value;return t}function w(e){a=e}
2
2
  /**
3
3
  * The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
4
4
  * It must be called during the component's initialisation (but doesn't need to live *inside* the component;
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * https://svelte.dev/docs#run-time-svelte-onmount
10
10
  */
11
- function w(e){(function(){if(!a)throw new Error("Function called outside component initialization");return a})().$$.on_mount.push(e)}const A=[],S=[];let B=[];const H=[],C=Promise.resolve();let P=!1;function L(e){B.push(e)}
11
+ function T(e){(function(){if(!a)throw new Error("Function called outside component initialization");return a})().$$.on_mount.push(e)}const A=[],S=[];let B=[];const H=[],C=Promise.resolve();let P=!1;function L(e){B.push(e)}
12
12
  // flush() calls callbacks in this order:
13
13
  // 1. All beforeUpdate callbacks, in order: parents before children
14
14
  // 2. All bind:this callbacks, in reverse order: children before parents.
@@ -35,21 +35,21 @@ function N(){
35
35
  if(0!==I)return;const e=a;do{
36
36
  // first, call beforeUpdate functions
37
37
  // and update components
38
- try{for(;I<A.length;){const e=A[I];I++,T(e),R(e.$$)}}catch(e){
38
+ try{for(;I<A.length;){const e=A[I];I++,w(e),R(e.$$)}}catch(e){
39
39
  // reset dirty state to not end up in a deadlocked state and then rethrow
40
- throw A.length=0,I=0,e}for(T(null),A.length=0,I=0;S.length;)S.pop()();
40
+ throw A.length=0,I=0,e}for(w(null),A.length=0,I=0;S.length;)S.pop()();
41
41
  // then, once components are updated, call
42
42
  // afterUpdate functions. This may cause
43
43
  // subsequent updates...
44
44
  for(let e=0;e<B.length;e+=1){const t=B[e];O.has(t)||(
45
45
  // ...so guard against infinite loops
46
- O.add(t),t())}B.length=0}while(A.length);for(;H.length;)H.pop()();P=!1,O.clear(),T(e)}function R(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(L)}}
46
+ O.add(t),t())}B.length=0}while(A.length);for(;H.length;)H.pop()();P=!1,O.clear(),w(e)}function R(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(L)}}
47
47
  /**
48
48
  * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
49
49
  */const M=new Set;function x(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];B.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),B=t}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(t),
50
50
  // TODO null out other refs, including component.$$ (but need to
51
51
  // preserve final state?)
52
- r.on_destroy=r.fragment=null,r.ctx=[])}function U(e,t){-1===e.$$.dirty[0]&&(A.push(e),P||(P=!0,C.then(N)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function G(i,s,l,c,u,h,p,d=[-1]){const m=a;T(i);const y=i.$$={fragment:null,ctx:[],
52
+ r.on_destroy=r.fragment=null,r.ctx=[])}function U(e,t){-1===e.$$.dirty[0]&&(A.push(e),P||(P=!0,C.then(N)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function G(i,s,l,c,u,h,p,d=[-1]){const m=a;w(i);const y=i.$$={fragment:null,ctx:[],
53
53
  // state
54
54
  props:h,update:e,not_equal:u,bound:r(),
55
55
  // lifecycle
@@ -70,7 +70,7 @@ L((()=>{const r=e.$$.on_mount.map(t).filter(o);
70
70
  e.$$.on_destroy?e.$$.on_destroy.push(...r):
71
71
  // Edge case - component was destroyed immediately,
72
72
  // most likely as a result of a binding initialising
73
- n(r),e.$$.on_mount=[]})),l.forEach(L)}(i,s.target,s.anchor,s.customElement),N()}var b,v;T(m)}let D;"function"==typeof HTMLElement&&(D=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(o);
73
+ n(r),e.$$.on_mount=[]})),l.forEach(L)}(i,s.target,s.anchor,s.customElement),N()}var b,v;w(m)}let D;"function"==typeof HTMLElement&&(D=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(o);
74
74
  // @ts-ignore todo: improve typings
75
75
  for(const e in this.$$.slotted)
76
76
  // @ts-ignore todo: improve typings
@@ -249,20 +249,20 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
249
249
  case"x":// 1, 2, 3, 4: The ISO8601 varios formats
250
250
  throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
251
251
  // @generated from regex-gen.ts
252
- var ve=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Ee=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_e=/^(@+)?(\+|#+)?[rs]?$/g,Te=/(\*)(0+)|(#+)(0+)|(0+)/g,we=/^(0+)$/;function Ae(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(_e,(function(e,r,n){
252
+ var ve=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Ee=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_e=/^(@+)?(\+|#+)?[rs]?$/g,we=/(\*)(0+)|(#+)(0+)|(0+)/g,Te=/^(0+)$/;function Ae(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(_e,(function(e,r,n){
253
253
  // @@@ case
254
254
  return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function Se(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Be(e){
255
255
  // Engineering
256
- var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!we.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function He(e){var t=Se(e);return t||{}}
256
+ var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Te.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function He(e){var t=Se(e);return t||{}}
257
257
  /**
258
258
  * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
259
259
  */function Ce(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ne(ne(ne({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return ne(ne({},e),He(t))}),{}));continue;case"engineering":t=ne(ne(ne({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return ne(ne({},e),He(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
260
260
  // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
261
261
  case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;
262
262
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
263
- case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Te,(function(e,r,n,o,i,s){if(r)t.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
263
+ case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(we,(function(e,r,n,o,i,s){if(r)t.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
264
264
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
265
- if(we.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(Ee.test(o.stem)){
265
+ if(Te.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(Ee.test(o.stem)){
266
266
  // Precision
267
267
  // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
268
268
  // precision-integer case
@@ -562,7 +562,7 @@ if(le(u)){var p="string"==typeof u.style?n.date[u.style]:me(u.style)?u.style.par
562
562
  See the accompanying LICENSE file for terms.
563
563
  */
564
564
  // -- MessageFormat --------------------------------------------------------
565
- function Tt(e,t){return t?Object.keys(e).reduce((function(r,n){var o,i;return r[n]=(o=e[n],(i=t[n])?ne(ne(ne({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=ne(ne({},o[t]),i[t]||{}),e}),{})):o),r}),ne({},e)):e}function wt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(mt||(mt={}));var At=/** @class */function(){function e(t,r,n,o){var i,s=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
565
+ function wt(e,t){return t?Object.keys(e).reduce((function(r,n){var o,i;return r[n]=(o=e[n],(i=t[n])?ne(ne(ne({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=ne(ne({},o[t]),i[t]||{}),e}),{})):o),r}),ne({},e)):e}function Tt(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(mt||(mt={}));var At=/** @class */function(){function e(t,r,n,o){var i,s=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=s.formatToParts(e);
566
566
  // Hot path for straight simple msg translations
567
567
  if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===mt.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return _t(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
568
568
  // Defined first because it's used to build the format pattern.
@@ -571,7 +571,7 @@ this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(thi
571
571
  this.ast=e.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");
572
572
  // Creates a new object with the specified `formats` merged with the default
573
573
  // formats.
574
- this.formats=Tt(e.formats,n),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:it((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,oe([void 0],t,!1)))}),{cache:wt(i.number),strategy:dt.variadic}),getDateTimeFormat:it((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,oe([void 0],t,!1)))}),{cache:wt(i.dateTime),strategy:dt.variadic}),getPluralRules:it((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,oe([void 0],t,!1)))}),{cache:wt(i.pluralRules),strategy:dt.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=ot,
574
+ this.formats=wt(e.formats,n),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:it((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,oe([void 0],t,!1)))}),{cache:Tt(i.number),strategy:dt.variadic}),getDateTimeFormat:it((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,oe([void 0],t,!1)))}),{cache:Tt(i.dateTime),strategy:dt.variadic}),getPluralRules:it((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,oe([void 0],t,!1)))}),{cache:Tt(i.pluralRules),strategy:dt.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=ot,
575
575
  // Default format options used as the prototype of the `formats` provided to the
576
576
  // constructor. These are used when constructing the internal Intl.NumberFormat
577
577
  // and Intl.DateTimeFormat instances.
@@ -585,7 +585,7 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
585
585
  // eslint-disable-next-line no-undef
586
586
  "undefined"!=typeof global&&global||{},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(e){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(e){return e&&dr.indexOf(Object.prototype.toString.call(e))>-1};function yr(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function gr(e){return"string"!=typeof e&&(e=String(e)),e}
587
587
  // Build a destructive iterator for the value list
588
- function br(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return ur&&(t[Symbol.iterator]=function(){return t}),t}function vr(e){this.map={},e instanceof vr?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function Er(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function _r(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function Tr(e){var t=new FileReader,r=_r(t);return t.readAsArrayBuffer(e),r}function wr(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Ar(){return this.bodyUsed=!1,this._initBody=function(e){var t;
588
+ function br(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return ur&&(t[Symbol.iterator]=function(){return t}),t}function vr(e){this.map={},e instanceof vr?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function Er(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function _r(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function wr(e){var t=new FileReader,r=_r(t);return t.readAsArrayBuffer(e),r}function Tr(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Ar(){return this.bodyUsed=!1,this._initBody=function(e){var t;
589
589
  /*
590
590
  fetch-mock wraps the Response object in an ES6 Proxy to
591
591
  provide useful test harness features such as flush. However, on
@@ -597,9 +597,9 @@ function br(e){var t={next:function(){var t=e.shift();return{done:void 0===t,val
597
597
  _initBody is called.
598
598
  */
599
599
  // eslint-disable-next-line no-self-assign
600
- this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:hr&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:fr&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:cr&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():pr&&hr&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=wr(e.buffer),
600
+ this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:hr&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:fr&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:cr&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():pr&&hr&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Tr(e.buffer),
601
601
  // IE 10-11 can't handle a DataView body.
602
- this._bodyInit=new Blob([this._bodyArrayBuffer])):pr&&(ArrayBuffer.prototype.isPrototypeOf(e)||mr(e))?this._bodyArrayBuffer=wr(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):cr&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},hr&&(this.blob=function(){var e=Er(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Er(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(hr)return this.blob().then(Tr);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,o,i=Er(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=_r(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=n?n[1]:"utf-8",t.readAsText(e,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[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}
602
+ this._bodyInit=new Blob([this._bodyArrayBuffer])):pr&&(ArrayBuffer.prototype.isPrototypeOf(e)||mr(e))?this._bodyArrayBuffer=Tr(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):cr&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},hr&&(this.blob=function(){var e=Er(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Er(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(hr)return this.blob().then(wr);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,o,i=Er(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=_r(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=n?n[1]:"utf-8",t.readAsText(e,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[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}
603
603
  // HTTP methods whose capitalization should be normalized
604
604
  vr.prototype.append=function(e,t){e=yr(e),t=gr(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},vr.prototype.delete=function(e){delete this.map[yr(e)]},vr.prototype.get=function(e){return e=yr(e),this.has(e)?this.map[e]:null},vr.prototype.has=function(e){return this.map.hasOwnProperty(yr(e))},vr.prototype.set=function(e,t){this.map[yr(e)]=gr(t)},vr.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},vr.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),br(e)},vr.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),br(e)},vr.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),br(e)},ur&&(vr.prototype[Symbol.iterator]=vr.prototype.entries);var Sr=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Br(e,t){if(!(this instanceof Br))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof Br){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new vr(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new vr(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),Sr.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in lr)return(new AbortController).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"!==t.cache&&"no-cache"!==t.cache)){
605
605
  // Search for a '_' parameter in the query string
@@ -635,11 +635,11 @@ var Ir=function(e,t){return Ir=Object.setPrototypeOf||{__proto__:[]}instanceof A
635
635
  /* src/CasinoCollectionsProviders.svelte generated by Svelte v3.59.2 */
636
636
  function mn(e,t,r){const n=e.slice();return n[39]=t[r],n}function yn(e,t,r){const n=e.slice();return n[42]=t[r],n}
637
637
  // (156:4) {:else}
638
- function gn(e){let t,r,o,i,s,a,l,c,E,_,T,w,A,S,B=/*type*/("vendor"==e[0]?/*$_*/e[8]("providers"):/*$_*/e[8]("collections"))+"",H=/*gameCategories*/e[3],C=[];for(let t=0;t<H.length;t+=1)C[t]=wn(mn(e,H,t));return{c(){t=d("div"),r=d("div"),o=d("p"),i=m(B),s=y(),a=d("div"),l=d("button"),l.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>',c=y(),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(0 24.656) rotate(-90)" fill="#fff"></path></svg>',_=y(),T=d("div");for(let e=0;e<C.length;e+=1)C[e].c();b(o,"class","Title"),b(a,"class","ButtonsContainer"),b(r,"class","CategoriesHeader"),b(T,"class","CategoriesSlider"),b(t,"class",w="CasinoCollectionsProviders "+(/*mobile*/e[7]?"Mobile":""))},m(n,f){h(n,t,f),u(t,r),u(r,o),u(o,i),u(r,s),u(r,a),u(a,l),u(a,c),u(a,E),u(t,_),u(t,T);for(let e=0;e<C.length;e+=1)C[e]&&C[e].m(T,null);
639
- /*div2_binding*/e[23](T),A||(S=[g(l,"click",/*click_handler*/e[19]),g(E,"click",/*click_handler_1*/e[20])],A=!0)},p(e,r){if(/*type, $_*/257&r[0]&&B!==(B=/*type*/("vendor"==e[0]?/*$_*/e[8]("providers"):/*$_*/e[8]("collections"))+"")&&v(i,B),/*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/6158&r[0]){let t;for(H=/*gameCategories*/e[3],t=0;t<H.length;t+=1){const n=mn(e,H,t);C[t]?C[t].p(n,r):(C[t]=wn(n),C[t].c(),C[t].m(T,null))}for(;t<C.length;t+=1)C[t].d(1);C.length=H.length}/*mobile*/128&r[0]&&w!==(w="CasinoCollectionsProviders "+(/*mobile*/e[7]?"Mobile":""))&&b(t,"class",w)},d(r){r&&f(t),p(C,r),
638
+ function gn(e){let t,r,o,i,s,a,l,c,E,_,w,T,A,S,B=/*type*/("vendor"==e[0]?/*$_*/e[8]("providers"):/*$_*/e[8]("collections"))+"",H=/*gameCategories*/e[3],C=[];for(let t=0;t<H.length;t+=1)C[t]=Tn(mn(e,H,t));return{c(){t=d("div"),r=d("div"),o=d("p"),i=m(B),s=y(),a=d("div"),l=d("button"),l.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>',c=y(),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(0 24.656) rotate(-90)" fill="#fff"></path></svg>',_=y(),w=d("div");for(let e=0;e<C.length;e+=1)C[e].c();b(o,"class","Title"),b(a,"class","ButtonsContainer"),b(r,"class","CategoriesHeader"),b(w,"class","CategoriesSlider"),b(t,"class",T="CasinoCollectionsProviders "+(/*mobile*/e[7]?"Mobile":""))},m(n,f){h(n,t,f),u(t,r),u(r,o),u(o,i),u(r,s),u(r,a),u(a,l),u(a,c),u(a,E),u(t,_),u(t,w);for(let e=0;e<C.length;e+=1)C[e]&&C[e].m(w,null);
639
+ /*div2_binding*/e[23](w),A||(S=[g(l,"click",/*click_handler*/e[19]),g(E,"click",/*click_handler_1*/e[20])],A=!0)},p(e,r){if(/*type, $_*/257&r[0]&&B!==(B=/*type*/("vendor"==e[0]?/*$_*/e[8]("providers"):/*$_*/e[8]("collections"))+"")&&v(i,B),/*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/6158&r[0]){let t;for(H=/*gameCategories*/e[3],t=0;t<H.length;t+=1){const n=mn(e,H,t);C[t]?C[t].p(n,r):(C[t]=Tn(n),C[t].c(),C[t].m(w,null))}for(;t<C.length;t+=1)C[t].d(1);C.length=H.length}/*mobile*/128&r[0]&&T!==(T="CasinoCollectionsProviders "+(/*mobile*/e[7]?"Mobile":""))&&b(t,"class",T)},d(r){r&&f(t),p(C,r),
640
640
  /*div2_binding*/e[23](null),A=!1,n(S)}}}
641
641
  // (154:4) {#if isLoading}
642
- function bn(t){let r;return{c(){r=d("div"),b(r,"class","LoadingSpinner"),b(r,"part","LoadingSpinner")},m(e,t){h(e,r,t)},p:e,d(e){e&&f(r)}}}
642
+ function bn(t){let r;return{c(){r=d("div"),b(r,"class","LoadingSpinner")},m(e,t){h(e,r,t)},p:e,d(e){e&&f(r)}}}
643
643
  // (181:47)
644
644
  function vn(e){let t,r,n=/*category*/e[39].name+"";return{c(){t=d("p"),r=m(n),b(t,"class","CategorySlideTitle")},m(e,n){h(e,t,n),u(t,r)},p(e,t){/*gameCategories*/8&t[0]&&n!==(n=/*category*/e[39].name+"")&&v(r,n)},d(e){e&&f(t)}}}
645
645
  // (179:16) {#if titletype == 'logo'}
@@ -647,17 +647,17 @@ function En(e){let t,r,n;return{c(){t=d("img"),b(t,"class","CategorySlideLogo"),
647
647
  // (189:18) {#if collectionprovidersgamenames == 'true'}
648
648
  function _n(e){let t,r,n,o=/*game*/e[42].name+"";return{c(){t=d("p"),r=m(o),b(t,"title",n=/*game*/e[42].name)},m(e,n){h(e,t,n),u(t,r)},p(e,i){/*gameCategories*/8&i[0]&&o!==(o=/*game*/e[42].name+"")&&v(r,o),/*gameCategories*/8&i[0]&&n!==(n=/*game*/e[42].name)&&b(t,"title",n)},d(e){e&&f(t)}}}
649
649
  // (186:16) {#each category.games as game}
650
- function Tn(e){let t,r,n,o,i,s,a,c;function p(){/*click_handler_2*/
650
+ function wn(e){let t,r,n,o,i,s,a,c;function p(){/*click_handler_2*/
651
651
  return e[21](/*game*/e[42])}let m=/*collectionprovidersgamenames*/"true"==e[2]&&_n(e);return{c(){t=d("div"),r=d("img"),i=y(),m&&m.c(),s=y(),b(r,"class","CategorySlideGameImage"),l(r.src,n=/*game*/e[42].defaultThumbnail)||b(r,"src",n),b(r,"alt",o=/*game*/e[42].name),b(t,"class","CategorySlideGames")},m(e,n){var o;h(e,t,n),u(t,r),u(t,i),m&&m.m(t,null),u(t,s),a||(c=g(r,"click",(o=p,function(e){
652
652
  // @ts-ignore
653
653
  return e.stopPropagation(),o.call(this,e)})),a=!0)},p(i,a){e=i,/*gameCategories*/8&a[0]&&!l(r.src,n=/*game*/e[42].defaultThumbnail)&&b(r,"src",n),/*gameCategories*/8&a[0]&&o!==(o=/*game*/e[42].name)&&b(r,"alt",o),/*collectionprovidersgamenames*/"true"==e[2]?m?m.p(e,a):(m=_n(e),m.c(),m.m(t,s)):m&&(m.d(1),m=null)},d(e){e&&f(t),m&&m.d(),a=!1,c()}}}
654
654
  // (175:10) {#each gameCategories as category}
655
- function wn(e){let t,r,n,o,i,s,a,l,c;function m(e,t){/*titletype*/
656
- return"logo"==e[1]?En:/*titletype*/"title"==e[1]?vn:void 0}let v=m(e),_=v&&v(e),T=/*category*/e[39].games,w=[];for(let t=0;t<T.length;t+=1)w[t]=Tn(yn(e,T,t));function A(){/*click_handler_3*/
657
- return e[22](/*category*/e[39])}return{c(){t=d("div"),r=d("div"),n=d("div"),_&&_.c(),o=y(),i=d("div");for(let e=0;e<w.length;e+=1)w[e].c();a=y(),b(n,"class","CategorySlideTopContainer"),b(i,"class","CategorySlideGameContainer"),b(r,"class",s="CategorySlide "+(/*category*/"vendor"==e[39]?.flag[0]?"CategorySlideNoHighlight":"")),E(r,"background-image","url("+/*category*/e[39]?.background+")"),E(r,"background-size","cover"),b(t,"class","CategoriesSliderWrapper Animation")},m(e,s){h(e,t,s),u(t,r),u(r,n),_&&_.m(n,null),u(r,o),u(r,i);for(let e=0;e<w.length;e+=1)w[e]&&w[e].m(i,null);u(t,a),l||(c=g(r,"click",A),l=!0)},p(t,o){if(v===(v=m(e=t))&&_?_.p(e,o):(_&&_.d(1),_=v&&v(e),_&&(_.c(),_.m(n,null))),/*gameCategories, collectionprovidersgamenames, openGame*/2060&o[0]){let t;for(T=/*category*/e[39].games,t=0;t<T.length;t+=1){const r=yn(e,T,t);w[t]?w[t].p(r,o):(w[t]=Tn(r),w[t].c(),w[t].m(i,null))}for(;t<w.length;t+=1)w[t].d(1);w.length=T.length}/*gameCategories*/8&o[0]&&s!==(s="CategorySlide "+(/*category*/"vendor"==e[39]?.flag[0]?"CategorySlideNoHighlight":""))&&b(r,"class",s),/*gameCategories*/8&o[0]&&E(r,"background-image","url("+/*category*/e[39]?.background+")")},d(e){e&&f(t),_&&_.d(),p(w,e),l=!1,c()}}}function An(t){let r;function n(e,t){/*isLoading*/
655
+ function Tn(e){let t,r,n,o,i,s,a,l,c;function m(e,t){/*titletype*/
656
+ return"logo"==e[1]?En:/*titletype*/"title"==e[1]?vn:void 0}let v=m(e),_=v&&v(e),w=/*category*/e[39].games,T=[];for(let t=0;t<w.length;t+=1)T[t]=wn(yn(e,w,t));function A(){/*click_handler_3*/
657
+ return e[22](/*category*/e[39])}return{c(){t=d("div"),r=d("div"),n=d("div"),_&&_.c(),o=y(),i=d("div");for(let e=0;e<T.length;e+=1)T[e].c();a=y(),b(n,"class","CategorySlideTopContainer"),b(i,"class","CategorySlideGameContainer"),b(r,"class",s="CategorySlide "+(/*category*/"vendor"==e[39]?.flag[0]?"CategorySlideNoHighlight":"")),E(r,"background-image","url("+/*category*/e[39]?.background+")"),E(r,"background-size","cover"),b(t,"class","CategoriesSliderWrapper Animation")},m(e,s){h(e,t,s),u(t,r),u(r,n),_&&_.m(n,null),u(r,o),u(r,i);for(let e=0;e<T.length;e+=1)T[e]&&T[e].m(i,null);u(t,a),l||(c=g(r,"click",A),l=!0)},p(t,o){if(v===(v=m(e=t))&&_?_.p(e,o):(_&&_.d(1),_=v&&v(e),_&&(_.c(),_.m(n,null))),/*gameCategories, collectionprovidersgamenames, openGame*/2060&o[0]){let t;for(w=/*category*/e[39].games,t=0;t<w.length;t+=1){const r=yn(e,w,t);T[t]?T[t].p(r,o):(T[t]=wn(r),T[t].c(),T[t].m(i,null))}for(;t<T.length;t+=1)T[t].d(1);T.length=w.length}/*gameCategories*/8&o[0]&&s!==(s="CategorySlide "+(/*category*/"vendor"==e[39]?.flag[0]?"CategorySlideNoHighlight":""))&&b(r,"class",s),/*gameCategories*/8&o[0]&&E(r,"background-image","url("+/*category*/e[39]?.background+")")},d(e){e&&f(t),_&&_.d(),p(T,e),l=!1,c()}}}function An(t){let r;function n(e,t){/*isLoading*/
658
658
  return e[6]?bn:gn}let o=n(t),i=o(t);return{c(){r=d("div"),i.c(),this.c=e},m(e,n){h(e,r,n),i.m(r,null),
659
659
  /*div_binding*/t[24](r)},p(e,t){o===(o=n(e))&&i?i.p(e,t):(i.d(1),i=o(e),i&&(i.c(),i.m(r,null)))},i:e,o:e,d(e){e&&f(r),i.d(),
660
- /*div_binding*/t[24](null)}}}function Sn(e,t,r){let n;var o,i;o=ir,i=e=>r(8,n=e),e.$$.on_destroy.push(c(o,i));let s,a,l,u,h,{endpoint:f=""}=t,{datasource:p=""}=t,{lang:d=""}=t,{type:m=""}=t,{titletype:y=""}=t,{clientstyling:g=""}=t,{clientstylingurl:b=""}=t,{translationurl:v=""}=t,{collectionprovidersgamenames:E=""}=t,_=[],T=!0,A=0,B=0,H=0,C=window.navigator.userAgent;Object.keys(ar).forEach((e=>{sr(e,ar[e])}));const P=e=>{
660
+ /*div_binding*/t[24](null)}}}function Sn(e,t,r){let n;var o,i;o=ir,i=e=>r(8,n=e),e.$$.on_destroy.push(c(o,i));let s,a,l,u,h,{endpoint:f=""}=t,{datasource:p=""}=t,{lang:d=""}=t,{type:m=""}=t,{titletype:y=""}=t,{clientstyling:g=""}=t,{clientstylingurl:b=""}=t,{translationurl:v=""}=t,{collectionprovidersgamenames:E=""}=t,_=[],w=!0,A=0,B=0,H=0,C=window.navigator.userAgent;Object.keys(ar).forEach((e=>{sr(e,ar[e])}));const P=e=>{
661
661
  //store each slide HTML element in an array
662
662
  l=[...s.children],
663
663
  //iterate the array of elements and translate each of them by 100% times the index to create the slider
@@ -667,7 +667,7 @@ H=Math.round(s.offsetWidth/a)},O=()=>{
667
667
  //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
668
668
  P(A)},I=()=>{H>=B||(0===A?A=B-H:A-H<-1?A=0:A--,O())},N=()=>{H>=B||(A===B-H?A=0:B-H<A+1?A=B-H:A++,O())},R=(e,t,r)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:e,launchUrl:t,gameName:r},window.location.href),
669
669
  //Analytics event
670
- "function"==typeof gtag&&gtag("event","OpenGame",{context:"CollectionsProviders",gameName:`${r}`})},M=e=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:e},window.location.href)},x=()=>{var e;e=d,Kt.set(e)};w((()=>{r(7,h=(e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)))(C))}));return e.$$set=e=>{"endpoint"in e&&r(13,f=e.endpoint),"datasource"in e&&r(14,p=e.datasource),"lang"in e&&r(15,d=e.lang),"type"in e&&r(0,m=e.type),"titletype"in e&&r(1,y=e.titletype),"clientstyling"in e&&r(16,g=e.clientstyling),"clientstylingurl"in e&&r(17,b=e.clientstylingurl),"translationurl"in e&&r(18,v=e.translationurl),"collectionprovidersgamenames"in e&&r(2,E=e.collectionprovidersgamenames)},e.$$.update=()=>{/*endpoint, datasource, lang*/57344&e.$$.dirty[0]&&f&&p&&d&&(()=>{const e=new URL(`${f}/v2/casino/groups/${p}`);e.searchParams.append("language",d),e.searchParams.append("expand","games"),fetch(e.href).then((e=>e.json())).then((e=>{r(6,T=!1);let t=e.items.filter((e=>e.flags==m));r(3,_=t.map((e=>{var t,r,n;return{id:e.id,name:e.name,icon:e.icon?e.icon:null===(n=null===(r=null===(t=e.vendors)||void 0===t?void 0:t.items[0])||void 0===r?void 0:r.subVendors[0])||void 0===n?void 0:n.logo,games:e.games.items.slice(0,4).map((e=>e)),background:e.background,flag:e.flags}}))),B=_.length}))})(),/*gameCategories, categoriesSlider*/24&e.$$.dirty[0]&&
670
+ "function"==typeof gtag&&gtag("event","OpenGame",{context:"CollectionsProviders",gameName:`${r}`})},M=e=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:e},window.location.href)},x=()=>{var e;e=d,Kt.set(e)};T((()=>{r(7,h=(e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)))(C))}));return e.$$set=e=>{"endpoint"in e&&r(13,f=e.endpoint),"datasource"in e&&r(14,p=e.datasource),"lang"in e&&r(15,d=e.lang),"type"in e&&r(0,m=e.type),"titletype"in e&&r(1,y=e.titletype),"clientstyling"in e&&r(16,g=e.clientstyling),"clientstylingurl"in e&&r(17,b=e.clientstylingurl),"translationurl"in e&&r(18,v=e.translationurl),"collectionprovidersgamenames"in e&&r(2,E=e.collectionprovidersgamenames)},e.$$.update=()=>{/*endpoint, datasource, lang*/57344&e.$$.dirty[0]&&f&&p&&d&&(()=>{const e=new URL(`${f}/v2/casino/groups/${p}`);e.searchParams.append("language",d),e.searchParams.append("expand","games"),fetch(e.href).then((e=>e.json())).then((e=>{r(6,w=!1);let t=e.items.filter((e=>e.flags==m));r(3,_=t.map((e=>{var t,r,n;return{id:e.id,name:e.name,icon:e.icon?e.icon:null===(n=null===(r=null===(t=e.vendors)||void 0===t?void 0:t.items[0])||void 0===r?void 0:r.subVendors[0])||void 0===n?void 0:n.logo,games:e.games.items.slice(0,4).map((e=>e)),background:e.background,flag:e.flags}}))),B=_.length}))})(),/*gameCategories, categoriesSlider*/24&e.$$.dirty[0]&&
671
671
  //making sure we have something to position, before trying to
672
- _&&s&&P(),/*lang*/32768&e.$$.dirty[0]&&d&&x(),/*clientstyling, customStylingContainer*/65568&e.$$.dirty[0]&&g&&u&&(()=>{let e=document.createElement("style");e.innerHTML=g,u.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/131104&e.$$.dirty[0]&&b&&u&&(()=>{let e=new URL(b),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{u.appendChild(t)}),1)}))})(),/*translationurl*/262144&e.$$.dirty[0]&&v&&fetch(v).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{sr(t,e[t])}))})).catch((e=>{console.log(e)}))},[m,y,E,_,s,u,T,h,n,I,N,R,M,f,p,d,g,b,v,()=>I(),()=>N(),e=>R(e.gameId,e.launchUrl,e.name),e=>M(e.id),function(e){S[e?"unshift":"push"]((()=>{s=e,r(4,s)}))},function(e){S[e?"unshift":"push"]((()=>{u=e,r(5,u)}))}]}class Bn extends D{constructor(e){super();const t=document.createElement("style");t.textContent='*,*::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;cursor:pointer}.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{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emfe-w-color-white, #FFFFFF);font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.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:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),G(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},Sn,An,i,{endpoint:13,datasource:14,lang:15,type:0,titletype:1,clientstyling:16,clientstylingurl:17,translationurl:18,collectionprovidersgamenames:2},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["endpoint","datasource","lang","type","titletype","clientstyling","clientstylingurl","translationurl","collectionprovidersgamenames"]}get endpoint(){return this.$$.ctx[13]}set endpoint(e){this.$$set({endpoint:e}),N()}get datasource(){return this.$$.ctx[14]}set datasource(e){this.$$set({datasource:e}),N()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),N()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),N()}get titletype(){return this.$$.ctx[1]}set titletype(e){this.$$set({titletype:e}),N()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),N()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),N()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),N()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(e){this.$$set({collectionprovidersgamenames:e}),N()}}return!customElements.get("casino-collections-providers")&&customElements.define("casino-collections-providers",Bn),Bn}));
672
+ _&&s&&P(),/*lang*/32768&e.$$.dirty[0]&&d&&x(),/*clientstyling, customStylingContainer*/65568&e.$$.dirty[0]&&g&&u&&(()=>{let e=document.createElement("style");e.innerHTML=g,u.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/131104&e.$$.dirty[0]&&b&&u&&(()=>{let e=new URL(b),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{u.appendChild(t)}),1)}))})(),/*translationurl*/262144&e.$$.dirty[0]&&v&&fetch(v).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{sr(t,e[t])}))})).catch((e=>{console.log(e)}))},[m,y,E,_,s,u,w,h,n,I,N,R,M,f,p,d,g,b,v,()=>I(),()=>N(),e=>R(e.gameId,e.launchUrl,e.name),e=>M(e.id),function(e){S[e?"unshift":"push"]((()=>{s=e,r(4,s)}))},function(e){S[e?"unshift":"push"]((()=>{u=e,r(5,u)}))}]}class Bn extends D{constructor(e){super();const t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-dunkel, #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-casino-typography, 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;cursor:pointer}.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{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.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:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.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-pink-500, #D0046C));border-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-pink-500, #D0046C)) transparent var(--emfe-w-casino-color-primary, var(--emfe-w-color-pink-500, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),G(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},Sn,An,i,{endpoint:13,datasource:14,lang:15,type:0,titletype:1,clientstyling:16,clientstylingurl:17,translationurl:18,collectionprovidersgamenames:2},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["endpoint","datasource","lang","type","titletype","clientstyling","clientstylingurl","translationurl","collectionprovidersgamenames"]}get endpoint(){return this.$$.ctx[13]}set endpoint(e){this.$$set({endpoint:e}),N()}get datasource(){return this.$$.ctx[14]}set datasource(e){this.$$set({datasource:e}),N()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),N()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),N()}get titletype(){return this.$$.ctx[1]}set titletype(e){this.$$set({titletype:e}),N()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),N()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),N()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),N()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(e){this.$$set({collectionprovidersgamenames:e}),N()}}return!customElements.get("casino-collections-providers")&&customElements.define("casino-collections-providers",Bn),Bn}));
673
673
  //# sourceMappingURL=casino-collections-providers.js.map