@everymatrix/player-bonus-card 1.99.56 → 1.99.59

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.
@@ -45,8 +45,7 @@ function dn(e, t, r) {
45
45
  }
46
46
  }
47
47
  function mn(e) {
48
- if (!e)
49
- return document;
48
+ if (!e) return document;
50
49
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
51
50
  return t && /** @type {ShadowRoot} */
52
51
  t.host ? (
@@ -103,8 +102,7 @@ function ke(e) {
103
102
  Fe = e;
104
103
  }
105
104
  function yn() {
106
- if (!Fe)
107
- throw new Error("Function called outside component initialization");
105
+ if (!Fe) throw new Error("Function called outside component initialization");
108
106
  return Fe;
109
107
  }
110
108
  function wn(e) {
@@ -135,8 +133,7 @@ function x() {
135
133
  } catch (t) {
136
134
  throw Ee.length = 0, ye = 0, t;
137
135
  }
138
- for (ke(null), Ee.length = 0, ye = 0; Tt.length; )
139
- Tt.pop()();
136
+ for (ke(null), Ee.length = 0, ye = 0; Tt.length; ) Tt.pop()();
140
137
  for (let t = 0; t < xe.length; t += 1) {
141
138
  const r = xe[t];
142
139
  mt.has(r) || (mt.add(r), r());
@@ -455,8 +452,7 @@ var St = function(e, t) {
455
452
  return St = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
456
453
  r.__proto__ = n;
457
454
  } || function(r, n) {
458
- for (var i in n)
459
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
455
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
460
456
  }, St(e, t);
461
457
  };
462
458
  function We(e, t) {
@@ -470,40 +466,34 @@ function We(e, t) {
470
466
  }
471
467
  function Ct(e) {
472
468
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
473
- if (r)
474
- return r.call(e);
475
- if (e && typeof e.length == "number")
476
- return {
477
- next: function() {
478
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
479
- }
480
- };
469
+ if (r) return r.call(e);
470
+ if (e && typeof e.length == "number") return {
471
+ next: function() {
472
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
473
+ }
474
+ };
481
475
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
482
476
  }
483
477
  function Ot(e, t) {
484
478
  var r = typeof Symbol == "function" && e[Symbol.iterator];
485
- if (!r)
486
- return e;
479
+ if (!r) return e;
487
480
  var n = r.call(e), i, o = [], a;
488
481
  try {
489
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
490
- o.push(i.value);
482
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
491
483
  } catch (s) {
492
484
  a = { error: s };
493
485
  } finally {
494
486
  try {
495
487
  i && !i.done && (r = n.return) && r.call(n);
496
488
  } finally {
497
- if (a)
498
- throw a.error;
489
+ if (a) throw a.error;
499
490
  }
500
491
  }
501
492
  return o;
502
493
  }
503
494
  function Pt(e, t, r) {
504
- if (arguments.length === 2)
505
- for (var n = 0, i = t.length, o; n < i; n++)
506
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
495
+ if (arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
496
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
507
497
  return e.concat(o || t);
508
498
  }
509
499
  function se(e) {
@@ -552,8 +542,7 @@ var st = function() {
552
542
  try {
553
543
  l && !l.done && (r = s.return) && r.call(s);
554
544
  } finally {
555
- if (t)
556
- throw t.error;
545
+ if (t) throw t.error;
557
546
  }
558
547
  }
559
548
  else
@@ -583,8 +572,7 @@ var st = function() {
583
572
  try {
584
573
  d && !d.done && (i = f.return) && i.call(f);
585
574
  } finally {
586
- if (n)
587
- throw n.error;
575
+ if (n) throw n.error;
588
576
  }
589
577
  }
590
578
  }
@@ -851,8 +839,7 @@ var Vn = Hr(function(e) {
851
839
  try {
852
840
  s && !s.done && (o = a.return) && o.call(a);
853
841
  } finally {
854
- if (i)
855
- throw i.error;
842
+ if (i) throw i.error;
856
843
  }
857
844
  }
858
845
  }
@@ -1097,8 +1084,7 @@ var Mt = function(e, t) {
1097
1084
  return Mt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1098
1085
  r.__proto__ = n;
1099
1086
  } || function(r, n) {
1100
- for (var i in n)
1101
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1087
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1102
1088
  }, Mt(e, t);
1103
1089
  };
1104
1090
  function lt(e, t) {
@@ -1114,25 +1100,22 @@ var te = function() {
1114
1100
  return te = Object.assign || function(t) {
1115
1101
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1116
1102
  r = arguments[n];
1117
- for (var o in r)
1118
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1103
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1119
1104
  }
1120
1105
  return t;
1121
1106
  }, te.apply(this, arguments);
1122
1107
  };
1123
1108
  function fi(e, t) {
1124
1109
  var r = {};
1125
- for (var n in e)
1126
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1110
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1127
1111
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
1128
1112
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1129
1113
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1130
1114
  return r;
1131
1115
  }
1132
1116
  function pt(e, t, r) {
1133
- if (r || arguments.length === 2)
1134
- for (var n = 0, i = t.length, o; n < i; n++)
1135
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1117
+ if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
1118
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1136
1119
  return e.concat(o || Array.prototype.slice.call(t));
1137
1120
  }
1138
1121
  function gt(e, t) {
@@ -1187,8 +1170,7 @@ var pi = function() {
1187
1170
  return tt = Object.assign || function(t) {
1188
1171
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1189
1172
  r = arguments[n];
1190
- for (var o in r)
1191
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1173
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1192
1174
  }
1193
1175
  return t;
1194
1176
  }, tt.apply(this, arguments);
@@ -1334,8 +1316,7 @@ var H = function() {
1334
1316
  return H = Object.assign || function(t) {
1335
1317
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1336
1318
  r = arguments[n];
1337
- for (var o in r)
1338
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1319
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1339
1320
  }
1340
1321
  return t;
1341
1322
  }, H.apply(this, arguments);
@@ -2977,8 +2958,7 @@ function Pi(e, t) {
2977
2958
  r += l;
2978
2959
  for (; a-- > 0; )
2979
2960
  r = u + r;
2980
- } else
2981
- i === "J" ? r += "H" : r += i;
2961
+ } else i === "J" ? r += "H" : r += i;
2982
2962
  }
2983
2963
  return r;
2984
2964
  }
@@ -3581,8 +3561,7 @@ function Ut(e) {
3581
3561
  if (delete t.location, jr(t) || Wr(t))
3582
3562
  for (var r in t.options)
3583
3563
  delete t.options[r].location, Ut(t.options[r].value);
3584
- else
3585
- Fr(t) && Yr(t.style) || ($r(t) || Gr(t)) && Rt(t.style) ? delete t.style.location : Vr(t) && Ut(t.children);
3564
+ else Fr(t) && Yr(t.style) || ($r(t) || Gr(t)) && Rt(t.style) ? delete t.style.location : Vr(t) && Ut(t.children);
3586
3565
  });
3587
3566
  }
3588
3567
  function qi(e, t) {
@@ -4520,8 +4499,7 @@ function ko(e, t) {
4520
4499
  }
4521
4500
  }
4522
4501
  function Fo(e, t) {
4523
- if (!e || !t)
4524
- return;
4502
+ if (!e || !t) return;
4525
4503
  const r = new URL(t);
4526
4504
  fetch(r.href).then((n) => n.text()).then((n) => {
4527
4505
  const i = document.createElement("style");
@@ -4531,8 +4509,7 @@ function Fo(e, t) {
4531
4509
  });
4532
4510
  }
4533
4511
  function $o(e, t, r, n = !1) {
4534
- if (!window.emMessageBus)
4535
- return;
4512
+ if (!window.emMessageBus) return;
4536
4513
  if (!("adoptedStyleSheets" in Document.prototype) || !n)
4537
4514
  return r = Go(e, t), r;
4538
4515
  window[Te] || (window[Te] = {}), r = jo(e, t);
@@ -4553,8 +4530,7 @@ function Go(e, t) {
4553
4530
  }
4554
4531
  function jo(e, t) {
4555
4532
  return window.emMessageBus.subscribe(t, (r) => {
4556
- if (!e)
4557
- return;
4533
+ if (!e) return;
4558
4534
  const n = e.getRootNode(), i = window[Te];
4559
4535
  let o = i[t] && i[t].sheet;
4560
4536
  o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
@@ -5667,11 +5643,9 @@ function Oa(e, t) {
5667
5643
  function Pa(e) {
5668
5644
  return function(t) {
5669
5645
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.match(e.matchPattern);
5670
- if (!n)
5671
- return null;
5646
+ if (!n) return null;
5672
5647
  var i = n[0], o = t.match(e.parsePattern);
5673
- if (!o)
5674
- return null;
5648
+ if (!o) return null;
5675
5649
  var a = e.valueCallback ? e.valueCallback(o[0]) : o[0];
5676
5650
  a = r.valueCallback ? r.valueCallback(a) : a;
5677
5651
  var s = t.slice(i.length);
@@ -1,4 +1,4 @@
1
- "use strict";var vn=Object.defineProperty,yn=Object.defineProperties;var wn=Object.getOwnPropertyDescriptors;var Yt=Object.getOwnPropertySymbols;var _n=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable;var bt=(e,t,r)=>t in e?vn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xt=(e,t)=>{for(var r in t||(t={}))_n.call(t,r)&&bt(e,r,t[r]);if(Yt)for(var r of Yt(t))En.call(t,r)&&bt(e,r,t[r]);return e},qt=(e,t)=>yn(e,wn(t));var K=(e,t,r)=>(bt(e,typeof t!="symbol"?t+"":t,r),r);var zt=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(u){i(u)}},a=l=>{try{s(r.throw(l))}catch(u){i(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function ee(){}function Rr(e){return e()}function Qt(){return Object.create(null)}function We(e){e.forEach(Rr)}function jt(e){return typeof e=="function"}function Nr(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let ze;function Zt(e,t){return e===t?!0:(ze||(ze=document.createElement("a")),ze.href=t,e===ze.href)}function Tn(e){return Object.keys(e).length===0}function Dr(e,...t){if(e==null){for(const n of t)n(void 0);return ee}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function xn(e,t,r){e.$$.on_destroy.push(Dr(t,r))}function m(e,t){e.appendChild(t)}function Bn(e,t,r){const n=Sn(e);if(!n.getElementById(t)){const i=E("style");i.id=t,i.textContent=r,Cn(n,i)}}function Sn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Cn(e,t){return m(e.head||e,t),t.sheet}function ne(e,t,r){e.insertBefore(t,r||null)}function te(e){e.parentNode&&e.parentNode.removeChild(e)}function E(e){return document.createElement(e)}function P(e){return document.createTextNode(e)}function M(){return P(" ")}function On(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function p(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Pn(e){return Array.from(e.childNodes)}function R(e,t){t=""+t,e.data!==t&&(e.data=t)}function An(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let $e;function Fe(e){$e=e}function Hn(){if(!$e)throw new Error("Function called outside component initialization");return $e}function Mn(e){Hn().$$.on_mount.push(e)}const Te=[],Bt=[];let Be=[];const Jt=[],Rn=Promise.resolve();let St=!1;function Nn(){St||(St=!0,Rn.then(x))}function Ct(e){Be.push(e)}const pt=new Set;let we=0;function x(){if(we!==0)return;const e=$e;do{try{for(;we<Te.length;){const t=Te[we];we++,Fe(t),Dn(t.$$)}}catch(t){throw Te.length=0,we=0,t}for(Fe(null),Te.length=0,we=0;Bt.length;)Bt.pop()();for(let t=0;t<Be.length;t+=1){const r=Be[t];pt.has(r)||(pt.add(r),r())}Be.length=0}while(Te.length);for(;Jt.length;)Jt.pop()();St=!1,pt.clear(),Fe(e)}function Dn(e){if(e.fragment!==null){e.update(),We(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Ct)}}function In(e){const t=[],r=[];Be.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),Be=t}const Ln=new Set;function Un(e,t){e&&e.i&&(Ln.delete(e),e.i(t))}function kn(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),Ct(()=>{const o=e.$$.on_mount.map(Rr).filter(jt);e.$$.on_destroy?e.$$.on_destroy.push(...o):We(o),e.$$.on_mount=[]}),i.forEach(Ct)}function Fn(e,t){const r=e.$$;r.fragment!==null&&(In(r.after_update),We(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function $n(e,t){e.$$.dirty[0]===-1&&(Te.push(e),Nn(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Gn(e,t,r,n,i,o,a=null,s=[-1]){const l=$e;Fe(e);const u=e.$$={fragment:null,ctx:[],props:o,update:ee,not_equal:i,bound:Qt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Qt(),dirty:s,skip_bound:!1,root:t.target||l.$$.root};a&&a(u.root);let h=!1;if(u.ctx=r?r(e,t.props||{},(c,f,...d)=>{const v=d.length?d[0]:f;return u.ctx&&i(u.ctx[c],u.ctx[c]=v)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](v),h&&$n(e,c)),f}):[],u.update(),h=!0,We(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){const c=Pn(t.target);u.fragment&&u.fragment.l(c),c.forEach(te)}else u.fragment&&u.fragment.c();t.intro&&Un(e.$$.fragment),kn(e,t.target,t.anchor),x()}Fe(l)}let Ir;typeof HTMLElement=="function"&&(Ir=class extends HTMLElement{constructor(t,r,n){super();K(this,"$$ctor");K(this,"$$s");K(this,"$$c");K(this,"$$cn",!1);K(this,"$$d",{});K(this,"$$r",!1);K(this,"$$p_d",{});K(this,"$$l",{});K(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return zt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let a;return{c:function(){a=E("slot"),o!=="default"&&p(a,"name",o)},m:function(u,h){ne(u,a,h)},d:function(u){u&&te(a)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=An(this);for(const o of this.$$s)o in n&&(r[o]=[t(o)]);for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=Je(a,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:qt(Xt({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const a=Je(o,this.$$d[o],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,a)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const a of this.$$l[o]){const s=this.$$c.$on(o,a);this.$$l_u.set(a,s)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Je(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Je(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function jn(e,t,r,n,i,o){let a=class extends Ir{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Object.keys(t).forEach(s=>{Object.defineProperty(a.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(l){var u;l=Je(s,l,t),this.$$d[s]=l,(u=this.$$c)==null||u.$set({[s]:l})}})}),n.forEach(s=>{Object.defineProperty(a.prototype,s,{get(){var l;return(l=this.$$c)==null?void 0:l[s]}})}),e.element=a,a}class Wn{constructor(){K(this,"$$");K(this,"$$set")}$destroy(){Fn(this,1),this.$destroy=ee}$on(t,r){if(!jt(r))return ee;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!Tn(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Vn="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Vn);/*! *****************************************************************************
1
+ "use strict";var vn=Object.defineProperty,yn=Object.defineProperties;var wn=Object.getOwnPropertyDescriptors;var Yt=Object.getOwnPropertySymbols;var _n=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable;var bt=(e,t,r)=>t in e?vn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xt=(e,t)=>{for(var r in t||(t={}))_n.call(t,r)&&bt(e,r,t[r]);if(Yt)for(var r of Yt(t))En.call(t,r)&&bt(e,r,t[r]);return e},qt=(e,t)=>yn(e,wn(t));var K=(e,t,r)=>bt(e,typeof t!="symbol"?t+"":t,r);var zt=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(u){i(u)}},a=l=>{try{s(r.throw(l))}catch(u){i(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function ee(){}function Rr(e){return e()}function Qt(){return Object.create(null)}function We(e){e.forEach(Rr)}function jt(e){return typeof e=="function"}function Nr(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let ze;function Zt(e,t){return e===t?!0:(ze||(ze=document.createElement("a")),ze.href=t,e===ze.href)}function Tn(e){return Object.keys(e).length===0}function Dr(e,...t){if(e==null){for(const n of t)n(void 0);return ee}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function xn(e,t,r){e.$$.on_destroy.push(Dr(t,r))}function m(e,t){e.appendChild(t)}function Bn(e,t,r){const n=Sn(e);if(!n.getElementById(t)){const i=E("style");i.id=t,i.textContent=r,Cn(n,i)}}function Sn(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Cn(e,t){return m(e.head||e,t),t.sheet}function ne(e,t,r){e.insertBefore(t,r||null)}function te(e){e.parentNode&&e.parentNode.removeChild(e)}function E(e){return document.createElement(e)}function P(e){return document.createTextNode(e)}function M(){return P(" ")}function On(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function p(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Pn(e){return Array.from(e.childNodes)}function R(e,t){t=""+t,e.data!==t&&(e.data=t)}function An(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}let $e;function Fe(e){$e=e}function Hn(){if(!$e)throw new Error("Function called outside component initialization");return $e}function Mn(e){Hn().$$.on_mount.push(e)}const Te=[],Bt=[];let Be=[];const Jt=[],Rn=Promise.resolve();let St=!1;function Nn(){St||(St=!0,Rn.then(x))}function Ct(e){Be.push(e)}const pt=new Set;let we=0;function x(){if(we!==0)return;const e=$e;do{try{for(;we<Te.length;){const t=Te[we];we++,Fe(t),Dn(t.$$)}}catch(t){throw Te.length=0,we=0,t}for(Fe(null),Te.length=0,we=0;Bt.length;)Bt.pop()();for(let t=0;t<Be.length;t+=1){const r=Be[t];pt.has(r)||(pt.add(r),r())}Be.length=0}while(Te.length);for(;Jt.length;)Jt.pop()();St=!1,pt.clear(),Fe(e)}function Dn(e){if(e.fragment!==null){e.update(),We(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Ct)}}function In(e){const t=[],r=[];Be.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),Be=t}const Ln=new Set;function Un(e,t){e&&e.i&&(Ln.delete(e),e.i(t))}function kn(e,t,r){const{fragment:n,after_update:i}=e.$$;n&&n.m(t,r),Ct(()=>{const o=e.$$.on_mount.map(Rr).filter(jt);e.$$.on_destroy?e.$$.on_destroy.push(...o):We(o),e.$$.on_mount=[]}),i.forEach(Ct)}function Fn(e,t){const r=e.$$;r.fragment!==null&&(In(r.after_update),We(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function $n(e,t){e.$$.dirty[0]===-1&&(Te.push(e),Nn(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Gn(e,t,r,n,i,o,a=null,s=[-1]){const l=$e;Fe(e);const u=e.$$={fragment:null,ctx:[],props:o,update:ee,not_equal:i,bound:Qt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Qt(),dirty:s,skip_bound:!1,root:t.target||l.$$.root};a&&a(u.root);let h=!1;if(u.ctx=r?r(e,t.props||{},(c,f,...d)=>{const v=d.length?d[0]:f;return u.ctx&&i(u.ctx[c],u.ctx[c]=v)&&(!u.skip_bound&&u.bound[c]&&u.bound[c](v),h&&$n(e,c)),f}):[],u.update(),h=!0,We(u.before_update),u.fragment=n?n(u.ctx):!1,t.target){if(t.hydrate){const c=Pn(t.target);u.fragment&&u.fragment.l(c),c.forEach(te)}else u.fragment&&u.fragment.c();t.intro&&Un(e.$$.fragment),kn(e,t.target,t.anchor),x()}Fe(l)}let Ir;typeof HTMLElement=="function"&&(Ir=class extends HTMLElement{constructor(t,r,n){super();K(this,"$$ctor");K(this,"$$s");K(this,"$$c");K(this,"$$cn",!1);K(this,"$$d",{});K(this,"$$r",!1);K(this,"$$p_d",{});K(this,"$$l",{});K(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return zt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let a;return{c:function(){a=E("slot"),o!=="default"&&p(a,"name",o)},m:function(u,h){ne(u,a,h)},d:function(u){u&&te(a)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=An(this);for(const o of this.$$s)o in n&&(r[o]=[t(o)]);for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=Je(a,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:qt(Xt({},this.$$d),{$$slots:r,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const a=Je(o,this.$$d[o],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,a)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const a of this.$$l[o]){const s=this.$$c.$on(o,a);this.$$l_u.set(a,s)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Je(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Je(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function jn(e,t,r,n,i,o){let a=class extends Ir{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Object.keys(t).forEach(s=>{Object.defineProperty(a.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(l){var u;l=Je(s,l,t),this.$$d[s]=l,(u=this.$$c)==null||u.$set({[s]:l})}})}),n.forEach(s=>{Object.defineProperty(a.prototype,s,{get(){var l;return(l=this.$$c)==null?void 0:l[s]}})}),e.element=a,a}class Wn{constructor(){K(this,"$$");K(this,"$$set")}$destroy(){Fn(this,1),this.$destroy=ee}$on(t,r){if(!jt(r))return ee;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!Tn(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Vn="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Vn);/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -10,7 +10,7 @@ var bt = (e, t, r) => t in e ? gn(e, t, { enumerable: !0, configurable: !0, writ
10
10
  _n.call(t, r) && bt(e, r, t[r]);
11
11
  return e;
12
12
  }, qt = (e, t) => vn(e, yn(t));
13
- var K = (e, t, r) => (bt(e, typeof t != "symbol" ? t + "" : t, r), r);
13
+ var K = (e, t, r) => bt(e, typeof t != "symbol" ? t + "" : t, r);
14
14
  var zt = (e, t, r) => new Promise((n, i) => {
15
15
  var o = (l) => {
16
16
  try {
@@ -74,8 +74,7 @@ function xn(e, t, r) {
74
74
  }
75
75
  }
76
76
  function Bn(e) {
77
- if (!e)
78
- return document;
77
+ if (!e) return document;
79
78
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
80
79
  return t && /** @type {ShadowRoot} */
81
80
  t.host ? (
@@ -132,8 +131,7 @@ function Fe(e) {
132
131
  $e = e;
133
132
  }
134
133
  function An() {
135
- if (!$e)
136
- throw new Error("Function called outside component initialization");
134
+ if (!$e) throw new Error("Function called outside component initialization");
137
135
  return $e;
138
136
  }
139
137
  function Hn(e) {
@@ -164,8 +162,7 @@ function x() {
164
162
  } catch (t) {
165
163
  throw Te.length = 0, we = 0, t;
166
164
  }
167
- for (Fe(null), Te.length = 0, we = 0; Bt.length; )
168
- Bt.pop()();
165
+ for (Fe(null), Te.length = 0, we = 0; Bt.length; ) Bt.pop()();
169
166
  for (let t = 0; t < Be.length; t += 1) {
170
167
  const r = Be[t];
171
168
  pt.has(r) || (pt.add(r), r());
@@ -492,8 +489,7 @@ var Ot = function(e, t) {
492
489
  return Ot = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
493
490
  r.__proto__ = n;
494
491
  } || function(r, n) {
495
- for (var i in n)
496
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
492
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
497
493
  }, Ot(e, t);
498
494
  };
499
495
  function Ve(e, t) {
@@ -507,40 +503,34 @@ function Ve(e, t) {
507
503
  }
508
504
  function Pt(e) {
509
505
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
510
- if (r)
511
- return r.call(e);
512
- if (e && typeof e.length == "number")
513
- return {
514
- next: function() {
515
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
516
- }
517
- };
506
+ if (r) return r.call(e);
507
+ if (e && typeof e.length == "number") return {
508
+ next: function() {
509
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
510
+ }
511
+ };
518
512
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
519
513
  }
520
514
  function At(e, t) {
521
515
  var r = typeof Symbol == "function" && e[Symbol.iterator];
522
- if (!r)
523
- return e;
516
+ if (!r) return e;
524
517
  var n = r.call(e), i, o = [], a;
525
518
  try {
526
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
527
- o.push(i.value);
519
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
528
520
  } catch (s) {
529
521
  a = { error: s };
530
522
  } finally {
531
523
  try {
532
524
  i && !i.done && (r = n.return) && r.call(n);
533
525
  } finally {
534
- if (a)
535
- throw a.error;
526
+ if (a) throw a.error;
536
527
  }
537
528
  }
538
529
  return o;
539
530
  }
540
531
  function Ht(e, t, r) {
541
- if (arguments.length === 2)
542
- for (var n = 0, i = t.length, o; n < i; n++)
543
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
532
+ if (arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
533
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
544
534
  return e.concat(o || t);
545
535
  }
546
536
  function ue(e) {
@@ -589,8 +579,7 @@ var ut = function() {
589
579
  try {
590
580
  l && !l.done && (r = s.return) && r.call(s);
591
581
  } finally {
592
- if (t)
593
- throw t.error;
582
+ if (t) throw t.error;
594
583
  }
595
584
  }
596
585
  else
@@ -620,8 +609,7 @@ var ut = function() {
620
609
  try {
621
610
  d && !d.done && (i = f.return) && i.call(f);
622
611
  } finally {
623
- if (n)
624
- throw n.error;
612
+ if (n) throw n.error;
625
613
  }
626
614
  }
627
615
  }
@@ -888,8 +876,7 @@ var ri = Lr(function(e) {
888
876
  try {
889
877
  s && !s.done && (o = a.return) && o.call(a);
890
878
  } finally {
891
- if (i)
892
- throw i.error;
879
+ if (i) throw i.error;
893
880
  }
894
881
  }
895
882
  }
@@ -1134,8 +1121,7 @@ var Nt = function(e, t) {
1134
1121
  return Nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1135
1122
  r.__proto__ = n;
1136
1123
  } || function(r, n) {
1137
- for (var i in n)
1138
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1124
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1139
1125
  }, Nt(e, t);
1140
1126
  };
1141
1127
  function ht(e, t) {
@@ -1151,25 +1137,22 @@ var re = function() {
1151
1137
  return re = Object.assign || function(t) {
1152
1138
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1153
1139
  r = arguments[n];
1154
- for (var o in r)
1155
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1140
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1156
1141
  }
1157
1142
  return t;
1158
1143
  }, re.apply(this, arguments);
1159
1144
  };
1160
1145
  function Ei(e, t) {
1161
1146
  var r = {};
1162
- for (var n in e)
1163
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1147
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1164
1148
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
1165
1149
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1166
1150
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1167
1151
  return r;
1168
1152
  }
1169
1153
  function vt(e, t, r) {
1170
- if (r || arguments.length === 2)
1171
- for (var n = 0, i = t.length, o; n < i; n++)
1172
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1154
+ if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
1155
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1173
1156
  return e.concat(o || Array.prototype.slice.call(t));
1174
1157
  }
1175
1158
  function yt(e, t) {
@@ -1224,8 +1207,7 @@ var Ci = function() {
1224
1207
  return rt = Object.assign || function(t) {
1225
1208
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1226
1209
  r = arguments[n];
1227
- for (var o in r)
1228
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1210
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1229
1211
  }
1230
1212
  return t;
1231
1213
  }, rt.apply(this, arguments);
@@ -1371,8 +1353,7 @@ var H = function() {
1371
1353
  return H = Object.assign || function(t) {
1372
1354
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1373
1355
  r = arguments[n];
1374
- for (var o in r)
1375
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1356
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1376
1357
  }
1377
1358
  return t;
1378
1359
  }, H.apply(this, arguments);
@@ -3014,8 +2995,7 @@ function Fi(e, t) {
3014
2995
  r += l;
3015
2996
  for (; a-- > 0; )
3016
2997
  r = u + r;
3017
- } else
3018
- i === "J" ? r += "H" : r += i;
2998
+ } else i === "J" ? r += "H" : r += i;
3019
2999
  }
3020
3000
  return r;
3021
3001
  }
@@ -3618,8 +3598,7 @@ function Ft(e) {
3618
3598
  if (delete t.location, zr(t) || Qr(t))
3619
3599
  for (var r in t.options)
3620
3600
  delete t.options[r].location, Ft(t.options[r].value);
3621
- else
3622
- Yr(t) && Jr(t.style) || (Xr(t) || qr(t)) && Dt(t.style) ? delete t.style.location : Zr(t) && Ft(t.children);
3601
+ else Yr(t) && Jr(t.style) || (Xr(t) || qr(t)) && Dt(t.style) ? delete t.style.location : Zr(t) && Ft(t.children);
3623
3602
  });
3624
3603
  }
3625
3604
  function oo(e, t) {
@@ -4557,8 +4536,7 @@ function Qo(e, t) {
4557
4536
  }
4558
4537
  }
4559
4538
  function Zo(e, t) {
4560
- if (!e || !t)
4561
- return;
4539
+ if (!e || !t) return;
4562
4540
  const r = new URL(t);
4563
4541
  fetch(r.href).then((n) => n.text()).then((n) => {
4564
4542
  const i = document.createElement("style");
@@ -4568,8 +4546,7 @@ function Zo(e, t) {
4568
4546
  });
4569
4547
  }
4570
4548
  function Jo(e, t, r, n = !1) {
4571
- if (!window.emMessageBus)
4572
- return;
4549
+ if (!window.emMessageBus) return;
4573
4550
  if (!("adoptedStyleSheets" in Document.prototype) || !n)
4574
4551
  return r = Ko(e, t), r;
4575
4552
  window[xe] || (window[xe] = {}), r = ea(e, t);
@@ -4590,8 +4567,7 @@ function Ko(e, t) {
4590
4567
  }
4591
4568
  function ea(e, t) {
4592
4569
  return window.emMessageBus.subscribe(t, (r) => {
4593
- if (!e)
4594
- return;
4570
+ if (!e) return;
4595
4571
  const n = e.getRootNode(), i = window[xe];
4596
4572
  let o = i[t] && i[t].sheet;
4597
4573
  o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
@@ -5704,11 +5680,9 @@ function ka(e, t) {
5704
5680
  function Fa(e) {
5705
5681
  return function(t) {
5706
5682
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.match(e.matchPattern);
5707
- if (!n)
5708
- return null;
5683
+ if (!n) return null;
5709
5684
  var i = n[0], o = t.match(e.parsePattern);
5710
- if (!o)
5711
- return null;
5685
+ if (!o) return null;
5712
5686
  var a = e.valueCallback ? e.valueCallback(o[0]) : o[0];
5713
5687
  a = r.valueCallback ? r.valueCallback(a) : a;
5714
5688
  var s = t.slice(i.length);
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerBonusCard-2aHcklvE.cjs")).then(({default:t})=>{!customElements.get("player-bonus-card")&&customElements.define("player-bonus-card",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerBonusCard-DXssabGy.cjs")).then(({default:t})=>{!customElements.get("player-bonus-card")&&customElements.define("player-bonus-card",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/PlayerBonusCard-CByWl5Nh.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/PlayerBonusCard-r6xK0abN.js").then(({ default: t }) => {
14
14
  !customElements.get("player-bonus-card") && customElements.define("player-bonus-card", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { P as s } from "../components/PlayerBonusCard-B2VlcFVN.js";
1
+ import { P as s } from "../components/PlayerBonusCard-C-Q_5U5m.js";
2
2
  function r(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-bonus-card",
3
- "version": "1.99.56",
3
+ "version": "1.99.59",
4
4
  "type": "module",
5
5
  "main": "es2015/player-bonus-card.cjs",
6
6
  "module": "esnext/player-bonus-card.js",