@everymatrix/prize-engine-chest 0.9.57 → 0.9.60

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.
@@ -10,7 +10,7 @@ var MA = (A, e, t) => e in A ? Rt(A, e, { enumerable: !0, configurable: !0, writ
10
10
  Yt.call(e, t) && MA(A, t, e[t]);
11
11
  return A;
12
12
  }, Ee = (A, e) => Ht(A, St(e));
13
- var D = (A, e, t) => (MA(A, typeof e != "symbol" ? e + "" : e, t), t);
13
+ var D = (A, e, t) => MA(A, typeof e != "symbol" ? e + "" : e, t);
14
14
  var RA = (A, e, t) => new Promise((i, r) => {
15
15
  var n = (s) => {
16
16
  try {
@@ -31,8 +31,7 @@ function F() {
31
31
  }
32
32
  const bt = (A) => A;
33
33
  function le(A, e) {
34
- for (const t in e)
35
- A[t] = e[t];
34
+ for (const t in e) A[t] = e[t];
36
35
  return (
37
36
  /** @type {T & S} */
38
37
  A
@@ -102,8 +101,7 @@ function Jt(A, e, t) {
102
101
  }
103
102
  }
104
103
  function Vt(A) {
105
- if (!A)
106
- return document;
104
+ if (!A) return document;
107
105
  const e = A.getRootNode ? A.getRootNode() : A.ownerDocument;
108
106
  return e && /** @type {ShadowRoot} */
109
107
  e.host ? (
@@ -159,8 +157,7 @@ function eA(A) {
159
157
  tA = A;
160
158
  }
161
159
  function Lt() {
162
- if (!tA)
163
- throw new Error("Function called outside component initialization");
160
+ if (!tA) throw new Error("Function called outside component initialization");
164
161
  return tA;
165
162
  }
166
163
  function Pt(A) {
@@ -191,8 +188,7 @@ function U() {
191
188
  } catch (e) {
192
189
  throw x.length = 0, N = 0, e;
193
190
  }
194
- for (eA(null), x.length = 0, N = 0; NA.length; )
195
- NA.pop()();
191
+ for (eA(null), x.length = 0, N = 0; NA.length; ) NA.pop()();
196
192
  for (let e = 0; e < L.length; e += 1) {
197
193
  const t = L[e];
198
194
  HA.has(t) || (HA.add(t), t());
@@ -509,8 +505,7 @@ function ai(A, e) {
509
505
  }
510
506
  }
511
507
  function si(A, e) {
512
- if (!A || !e)
513
- return;
508
+ if (!A || !e) return;
514
509
  const t = new URL(e);
515
510
  fetch(t.href).then((i) => i.text()).then((i) => {
516
511
  const r = document.createElement("style");
@@ -520,8 +515,7 @@ function si(A, e) {
520
515
  });
521
516
  }
522
517
  function Bi(A, e, t, i = !1) {
523
- if (!window.emMessageBus)
524
- return;
518
+ if (!window.emMessageBus) return;
525
519
  if (!("adoptedStyleSheets" in Document.prototype) || !i)
526
520
  return t = ui(A, e), t;
527
521
  window[W] || (window[W] = {}), t = hi(A, e);
@@ -542,8 +536,7 @@ function ui(A, e) {
542
536
  }
543
537
  function hi(A, e) {
544
538
  return window.emMessageBus.subscribe(e, (t) => {
545
- if (!A)
546
- return;
539
+ if (!A) return;
547
540
  const i = A.getRootNode(), r = window[W];
548
541
  let n = r[e] && r[e].sheet;
549
542
  n ? r[e].refCount = r[e].refCount + 1 : (n = new CSSStyleSheet(), n.replaceSync(t), r[e] = {
@@ -572,8 +565,7 @@ var WA = function(A, e) {
572
565
  return WA = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
573
566
  t.__proto__ = i;
574
567
  } || function(t, i) {
575
- for (var r in i)
576
- Object.prototype.hasOwnProperty.call(i, r) && (t[r] = i[r]);
568
+ for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (t[r] = i[r]);
577
569
  }, WA(A, e);
578
570
  };
579
571
  function aA(A, e) {
@@ -587,40 +579,34 @@ function aA(A, e) {
587
579
  }
588
580
  function vA(A) {
589
581
  var e = typeof Symbol == "function" && Symbol.iterator, t = e && A[e], i = 0;
590
- if (t)
591
- return t.call(A);
592
- if (A && typeof A.length == "number")
593
- return {
594
- next: function() {
595
- return A && i >= A.length && (A = void 0), { value: A && A[i++], done: !A };
596
- }
597
- };
582
+ if (t) return t.call(A);
583
+ if (A && typeof A.length == "number") return {
584
+ next: function() {
585
+ return A && i >= A.length && (A = void 0), { value: A && A[i++], done: !A };
586
+ }
587
+ };
598
588
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
599
589
  }
600
590
  function LA(A, e) {
601
591
  var t = typeof Symbol == "function" && A[Symbol.iterator];
602
- if (!t)
603
- return A;
592
+ if (!t) return A;
604
593
  var i = t.call(A), r, n = [], o;
605
594
  try {
606
- for (; (e === void 0 || e-- > 0) && !(r = i.next()).done; )
607
- n.push(r.value);
595
+ for (; (e === void 0 || e-- > 0) && !(r = i.next()).done; ) n.push(r.value);
608
596
  } catch (a) {
609
597
  o = { error: a };
610
598
  } finally {
611
599
  try {
612
600
  r && !r.done && (t = i.return) && t.call(i);
613
601
  } finally {
614
- if (o)
615
- throw o.error;
602
+ if (o) throw o.error;
616
603
  }
617
604
  }
618
605
  return n;
619
606
  }
620
607
  function PA(A, e, t) {
621
- if (arguments.length === 2)
622
- for (var i = 0, r = e.length, n; i < r; i++)
623
- (n || !(i in e)) && (n || (n = Array.prototype.slice.call(e, 0, i)), n[i] = e[i]);
608
+ if (arguments.length === 2) for (var i = 0, r = e.length, n; i < r; i++)
609
+ (n || !(i in e)) && (n || (n = Array.prototype.slice.call(e, 0, i)), n[i] = e[i]);
624
610
  return A.concat(n || e);
625
611
  }
626
612
  function S(A) {
@@ -669,8 +655,7 @@ var qA = function() {
669
655
  try {
670
656
  s && !s.done && (t = a.return) && t.call(a);
671
657
  } finally {
672
- if (e)
673
- throw e.error;
658
+ if (e) throw e.error;
674
659
  }
675
660
  }
676
661
  else
@@ -700,8 +685,7 @@ var qA = function() {
700
685
  try {
701
686
  c && !c.done && (r = h.return) && r.call(h);
702
687
  } finally {
703
- if (i)
704
- throw i.error;
688
+ if (i) throw i.error;
705
689
  }
706
690
  }
707
691
  }
@@ -968,8 +952,7 @@ var di = _e(function(A) {
968
952
  try {
969
953
  a && !a.done && (n = o.return) && n.call(o);
970
954
  } finally {
971
- if (r)
972
- throw r.error;
955
+ if (r) throw r.error;
973
956
  }
974
957
  }
975
958
  }
@@ -1214,8 +1197,7 @@ var zA = function(A, e) {
1214
1197
  return zA = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
1215
1198
  t.__proto__ = i;
1216
1199
  } || function(t, i) {
1217
- for (var r in i)
1218
- Object.prototype.hasOwnProperty.call(i, r) && (t[r] = i[r]);
1200
+ for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (t[r] = i[r]);
1219
1201
  }, zA(A, e);
1220
1202
  };
1221
1203
  function DA(A, e) {
@@ -1231,25 +1213,22 @@ var M = function() {
1231
1213
  return M = Object.assign || function(e) {
1232
1214
  for (var t, i = 1, r = arguments.length; i < r; i++) {
1233
1215
  t = arguments[i];
1234
- for (var n in t)
1235
- Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1216
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1236
1217
  }
1237
1218
  return e;
1238
1219
  }, M.apply(this, arguments);
1239
1220
  };
1240
1221
  function xi(A, e) {
1241
1222
  var t = {};
1242
- for (var i in A)
1243
- Object.prototype.hasOwnProperty.call(A, i) && e.indexOf(i) < 0 && (t[i] = A[i]);
1223
+ for (var i in A) Object.prototype.hasOwnProperty.call(A, i) && e.indexOf(i) < 0 && (t[i] = A[i]);
1244
1224
  if (A != null && typeof Object.getOwnPropertySymbols == "function")
1245
1225
  for (var r = 0, i = Object.getOwnPropertySymbols(A); r < i.length; r++)
1246
1226
  e.indexOf(i[r]) < 0 && Object.prototype.propertyIsEnumerable.call(A, i[r]) && (t[i[r]] = A[i[r]]);
1247
1227
  return t;
1248
1228
  }
1249
1229
  function UA(A, e, t) {
1250
- if (t || arguments.length === 2)
1251
- for (var i = 0, r = e.length, n; i < r; i++)
1252
- (n || !(i in e)) && (n || (n = Array.prototype.slice.call(e, 0, i)), n[i] = e[i]);
1230
+ if (t || arguments.length === 2) for (var i = 0, r = e.length, n; i < r; i++)
1231
+ (n || !(i in e)) && (n || (n = Array.prototype.slice.call(e, 0, i)), n[i] = e[i]);
1253
1232
  return A.concat(n || Array.prototype.slice.call(e));
1254
1233
  }
1255
1234
  function YA(A, e) {
@@ -1304,8 +1283,7 @@ var Ti = function() {
1304
1283
  return wA = Object.assign || function(e) {
1305
1284
  for (var t, i = 1, r = arguments.length; i < r; i++) {
1306
1285
  t = arguments[i];
1307
- for (var n in t)
1308
- Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1286
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1309
1287
  }
1310
1288
  return e;
1311
1289
  }, wA.apply(this, arguments);
@@ -1451,8 +1429,7 @@ var w = function() {
1451
1429
  return w = Object.assign || function(e) {
1452
1430
  for (var t, i = 1, r = arguments.length; i < r; i++) {
1453
1431
  t = arguments[i];
1454
- for (var n in t)
1455
- Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1432
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1456
1433
  }
1457
1434
  return e;
1458
1435
  }, w.apply(this, arguments);
@@ -3094,8 +3071,7 @@ function ar(A, e) {
3094
3071
  t += s;
3095
3072
  for (; o-- > 0; )
3096
3073
  t = B + t;
3097
- } else
3098
- r === "J" ? t += "H" : t += r;
3074
+ } else r === "J" ? t += "H" : t += r;
3099
3075
  }
3100
3076
  return t;
3101
3077
  }
@@ -3698,8 +3674,7 @@ function te(A) {
3698
3674
  if (delete e.location, ut(e) || ht(e))
3699
3675
  for (var t in e.options)
3700
3676
  delete e.options[t].location, te(e.options[t].value);
3701
- else
3702
- at(e) && Et(e.style) || (st(e) || Bt(e)) && jA(e.style) ? delete e.style.location : gt(e) && te(e.children);
3677
+ else at(e) && Et(e.style) || (st(e) || Bt(e)) && jA(e.style) ? delete e.style.location : gt(e) && te(e.children);
3703
3678
  });
3704
3679
  }
3705
3680
  function Fr(A, e) {
@@ -4369,8 +4344,7 @@ function Ne(A) {
4369
4344
  return e * e * e + 1;
4370
4345
  }
4371
4346
  function ne(A, e) {
4372
- if (A === e || A !== A)
4373
- return () => A;
4347
+ if (A === e || A !== A) return () => A;
4374
4348
  const t = typeof A;
4375
4349
  if (t !== typeof e || Array.isArray(A) !== Array.isArray(e))
4376
4350
  throw new Error("Cannot interpolate values of different type");
@@ -4379,8 +4353,7 @@ function ne(A, e) {
4379
4353
  return (r) => i.map((n) => n(r));
4380
4354
  }
4381
4355
  if (t === "object") {
4382
- if (!A || !e)
4383
- throw new Error("Object cannot be null");
4356
+ if (!A || !e) throw new Error("Object cannot be null");
4384
4357
  if (Ve(A) && Ve(e)) {
4385
4358
  A = A.getTime(), e = e.getTime();
4386
4359
  const n = e - A;
@@ -4420,8 +4393,7 @@ function ke(A, e = {}) {
4420
4393
  const m = yt() + u;
4421
4394
  let I;
4422
4395
  return i = Ot((f) => {
4423
- if (f < m)
4424
- return !0;
4396
+ if (f < m) return !0;
4425
4397
  B || (I = c(A, o), typeof g == "function" && (g = g(A, o)), B = !0), s && (s.abort(), s = null);
4426
4398
  const q = f - m;
4427
4399
  return q > /** @type {number} */
@@ -2,8 +2,7 @@ function D() {
2
2
  }
3
3
  const ft = (A) => A;
4
4
  function ne(A, e) {
5
- for (const t in e)
6
- A[t] = e[t];
5
+ for (const t in e) A[t] = e[t];
7
6
  return (
8
7
  /** @type {T & S} */
9
8
  A
@@ -73,8 +72,7 @@ function Dt(A, e, t) {
73
72
  }
74
73
  }
75
74
  function Ft(A) {
76
- if (!A)
77
- return document;
75
+ if (!A) return document;
78
76
  const e = A.getRootNode ? A.getRootNode() : A.ownerDocument;
79
77
  return e && /** @type {ShadowRoot} */
80
78
  e.host ? (
@@ -130,8 +128,7 @@ function AA(A) {
130
128
  eA = A;
131
129
  }
132
130
  function St() {
133
- if (!eA)
134
- throw new Error("Function called outside component initialization");
131
+ if (!eA) throw new Error("Function called outside component initialization");
135
132
  return eA;
136
133
  }
137
134
  function Ut(A) {
@@ -162,8 +159,7 @@ function S() {
162
159
  } catch (e) {
163
160
  throw k.length = 0, V = 0, e;
164
161
  }
165
- for (AA(null), k.length = 0, V = 0; yA.length; )
166
- yA.pop()();
162
+ for (AA(null), k.length = 0, V = 0; yA.length; ) yA.pop()();
167
163
  for (let e = 0; e < v.length; e += 1) {
168
164
  const t = v[e];
169
165
  ZA.has(t) || (ZA.add(t), t());
@@ -472,8 +468,7 @@ function Pt(A, e) {
472
468
  }
473
469
  }
474
470
  function Tt(A, e) {
475
- if (!A || !e)
476
- return;
471
+ if (!A || !e) return;
477
472
  const t = new URL(e);
478
473
  fetch(t.href).then((i) => i.text()).then((i) => {
479
474
  const r = document.createElement("style");
@@ -483,8 +478,7 @@ function Tt(A, e) {
483
478
  });
484
479
  }
485
480
  function Xt(A, e, t, i = !1) {
486
- if (!window.emMessageBus)
487
- return;
481
+ if (!window.emMessageBus) return;
488
482
  if (!("adoptedStyleSheets" in Document.prototype) || !i)
489
483
  return t = zt(A, e), t;
490
484
  window[x] || (window[x] = {}), t = jt(A, e);
@@ -505,8 +499,7 @@ function zt(A, e) {
505
499
  }
506
500
  function jt(A, e) {
507
501
  return window.emMessageBus.subscribe(e, (t) => {
508
- if (!A)
509
- return;
502
+ if (!A) return;
510
503
  const i = A.getRootNode(), r = window[x];
511
504
  let n = r[e] && r[e].sheet;
512
505
  n ? r[e].refCount = r[e].refCount + 1 : (n = new CSSStyleSheet(), n.replaceSync(t), r[e] = {
@@ -535,8 +528,7 @@ var VA = function(A, e) {
535
528
  return VA = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
536
529
  t.__proto__ = i;
537
530
  } || function(t, i) {
538
- for (var r in i)
539
- Object.prototype.hasOwnProperty.call(i, r) && (t[r] = i[r]);
531
+ for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (t[r] = i[r]);
540
532
  }, VA(A, e);
541
533
  };
542
534
  function oA(A, e) {
@@ -550,40 +542,34 @@ function oA(A, e) {
550
542
  }
551
543
  function NA(A) {
552
544
  var e = typeof Symbol == "function" && Symbol.iterator, t = e && A[e], i = 0;
553
- if (t)
554
- return t.call(A);
555
- if (A && typeof A.length == "number")
556
- return {
557
- next: function() {
558
- return A && i >= A.length && (A = void 0), { value: A && A[i++], done: !A };
559
- }
560
- };
545
+ if (t) return t.call(A);
546
+ if (A && typeof A.length == "number") return {
547
+ next: function() {
548
+ return A && i >= A.length && (A = void 0), { value: A && A[i++], done: !A };
549
+ }
550
+ };
561
551
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
562
552
  }
563
553
  function kA(A, e) {
564
554
  var t = typeof Symbol == "function" && A[Symbol.iterator];
565
- if (!t)
566
- return A;
555
+ if (!t) return A;
567
556
  var i = t.call(A), r, n = [], o;
568
557
  try {
569
- for (; (e === void 0 || e-- > 0) && !(r = i.next()).done; )
570
- n.push(r.value);
558
+ for (; (e === void 0 || e-- > 0) && !(r = i.next()).done; ) n.push(r.value);
571
559
  } catch (a) {
572
560
  o = { error: a };
573
561
  } finally {
574
562
  try {
575
563
  r && !r.done && (t = i.return) && t.call(i);
576
564
  } finally {
577
- if (o)
578
- throw o.error;
565
+ if (o) throw o.error;
579
566
  }
580
567
  }
581
568
  return n;
582
569
  }
583
570
  function xA(A, e, t) {
584
- if (arguments.length === 2)
585
- for (var i = 0, r = e.length, n; i < r; i++)
586
- (n || !(i in e)) && (n || (n = Array.prototype.slice.call(e, 0, i)), n[i] = e[i]);
571
+ if (arguments.length === 2) for (var i = 0, r = e.length, n; i < r; i++)
572
+ (n || !(i in e)) && (n || (n = Array.prototype.slice.call(e, 0, i)), n[i] = e[i]);
587
573
  return A.concat(n || e);
588
574
  }
589
575
  function R(A) {
@@ -632,8 +618,7 @@ var pA = function() {
632
618
  try {
633
619
  s && !s.done && (t = a.return) && t.call(a);
634
620
  } finally {
635
- if (e)
636
- throw e.error;
621
+ if (e) throw e.error;
637
622
  }
638
623
  }
639
624
  else
@@ -663,8 +648,7 @@ var pA = function() {
663
648
  try {
664
649
  c && !c.done && (r = h.return) && r.call(h);
665
650
  } finally {
666
- if (i)
667
- throw i.error;
651
+ if (i) throw i.error;
668
652
  }
669
653
  }
670
654
  }
@@ -931,8 +915,7 @@ var Bi = xe(function(A) {
931
915
  try {
932
916
  a && !a.done && (n = o.return) && n.call(o);
933
917
  } finally {
934
- if (r)
935
- throw r.error;
918
+ if (r) throw r.error;
936
919
  }
937
920
  }
938
921
  }
@@ -1177,8 +1160,7 @@ var LA = function(A, e) {
1177
1160
  return LA = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
1178
1161
  t.__proto__ = i;
1179
1162
  } || function(t, i) {
1180
- for (var r in i)
1181
- Object.prototype.hasOwnProperty.call(i, r) && (t[r] = i[r]);
1163
+ for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (t[r] = i[r]);
1182
1164
  }, LA(A, e);
1183
1165
  };
1184
1166
  function dA(A, e) {
@@ -1194,25 +1176,22 @@ var G = function() {
1194
1176
  return G = Object.assign || function(e) {
1195
1177
  for (var t, i = 1, r = arguments.length; i < r; i++) {
1196
1178
  t = arguments[i];
1197
- for (var n in t)
1198
- Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1179
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1199
1180
  }
1200
1181
  return e;
1201
1182
  }, G.apply(this, arguments);
1202
1183
  };
1203
1184
  function Mi(A, e) {
1204
1185
  var t = {};
1205
- for (var i in A)
1206
- Object.prototype.hasOwnProperty.call(A, i) && e.indexOf(i) < 0 && (t[i] = A[i]);
1186
+ for (var i in A) Object.prototype.hasOwnProperty.call(A, i) && e.indexOf(i) < 0 && (t[i] = A[i]);
1207
1187
  if (A != null && typeof Object.getOwnPropertySymbols == "function")
1208
1188
  for (var r = 0, i = Object.getOwnPropertySymbols(A); r < i.length; r++)
1209
1189
  e.indexOf(i[r]) < 0 && Object.prototype.propertyIsEnumerable.call(A, i[r]) && (t[i[r]] = A[i[r]]);
1210
1190
  return t;
1211
1191
  }
1212
1192
  function MA(A, e, t) {
1213
- if (t || arguments.length === 2)
1214
- for (var i = 0, r = e.length, n; i < r; i++)
1215
- (n || !(i in e)) && (n || (n = Array.prototype.slice.call(e, 0, i)), n[i] = e[i]);
1193
+ if (t || arguments.length === 2) for (var i = 0, r = e.length, n; i < r; i++)
1194
+ (n || !(i in e)) && (n || (n = Array.prototype.slice.call(e, 0, i)), n[i] = e[i]);
1216
1195
  return A.concat(n || Array.prototype.slice.call(e));
1217
1196
  }
1218
1197
  function RA(A, e) {
@@ -1267,8 +1246,7 @@ var Yi = function() {
1267
1246
  return mA = Object.assign || function(e) {
1268
1247
  for (var t, i = 1, r = arguments.length; i < r; i++) {
1269
1248
  t = arguments[i];
1270
- for (var n in t)
1271
- Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1249
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1272
1250
  }
1273
1251
  return e;
1274
1252
  }, mA.apply(this, arguments);
@@ -1414,8 +1392,7 @@ var w = function() {
1414
1392
  return w = Object.assign || function(e) {
1415
1393
  for (var t, i = 1, r = arguments.length; i < r; i++) {
1416
1394
  t = arguments[i];
1417
- for (var n in t)
1418
- Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1395
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1419
1396
  }
1420
1397
  return e;
1421
1398
  }, w.apply(this, arguments);
@@ -3057,8 +3034,7 @@ function Pi(A, e) {
3057
3034
  t += s;
3058
3035
  for (; o-- > 0; )
3059
3036
  t = B + t;
3060
- } else
3061
- r === "J" ? t += "H" : t += r;
3037
+ } else r === "J" ? t += "H" : t += r;
3062
3038
  }
3063
3039
  return t;
3064
3040
  }
@@ -3661,8 +3637,7 @@ function _A(A) {
3661
3637
  if (delete e.location, et(e) || tt(e))
3662
3638
  for (var t in e.options)
3663
3639
  delete e.options[t].location, _A(e.options[t].value);
3664
- else
3665
- _e(e) && rt(e.style) || ($e(e) || At(e)) && PA(e.style) ? delete e.style.location : it(e) && _A(e.children);
3640
+ else _e(e) && rt(e.style) || ($e(e) || At(e)) && PA(e.style) ? delete e.style.location : it(e) && _A(e.children);
3666
3641
  });
3667
3642
  }
3668
3643
  function gr(A, e) {
@@ -4332,8 +4307,7 @@ function Se(A) {
4332
4307
  return e * e * e + 1;
4333
4308
  }
4334
4309
  function ee(A, e) {
4335
- if (A === e || A !== A)
4336
- return () => A;
4310
+ if (A === e || A !== A) return () => A;
4337
4311
  const t = typeof A;
4338
4312
  if (t !== typeof e || Array.isArray(A) !== Array.isArray(e))
4339
4313
  throw new Error("Cannot interpolate values of different type");
@@ -4342,8 +4316,7 @@ function ee(A, e) {
4342
4316
  return (r) => i.map((n) => n(r));
4343
4317
  }
4344
4318
  if (t === "object") {
4345
- if (!A || !e)
4346
- throw new Error("Object cannot be null");
4319
+ if (!A || !e) throw new Error("Object cannot be null");
4347
4320
  if (He(A) && He(e)) {
4348
4321
  A = A.getTime(), e = e.getTime();
4349
4322
  const n = e - A;
@@ -4383,8 +4356,7 @@ function Ue(A, e = {}) {
4383
4356
  const C = dt() + u;
4384
4357
  let I;
4385
4358
  return i = qt((f) => {
4386
- if (f < C)
4387
- return !0;
4359
+ if (f < C) return !0;
4388
4360
  B || (I = c(A, o), typeof g == "function" && (g = g(A, o)), B = !0), s && (s.abort(), s = null);
4389
4361
  const q = f - C;
4390
4362
  return q > /** @type {number} */
@@ -1,4 +1,4 @@
1
- "use strict";var Ht=Object.defineProperty,St=Object.defineProperties;var Ut=Object.getOwnPropertyDescriptors;var he=Object.getOwnPropertySymbols;var Yt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable;var MA=(A,e,t)=>e in A?Ht(A,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):A[e]=t,ge=(A,e)=>{for(var t in e||(e={}))Yt.call(e,t)&&MA(A,t,e[t]);if(he)for(var t of he(e))bt.call(e,t)&&MA(A,t,e[t]);return A},Ee=(A,e)=>St(A,Ut(e));var D=(A,e,t)=>(MA(A,typeof e!="symbol"?e+"":e,t),t);var RA=(A,e,t)=>new Promise((i,r)=>{var n=s=>{try{a(t.next(s))}catch(B){r(B)}},o=s=>{try{a(t.throw(s))}catch(B){r(B)}},a=s=>s.done?i(s.value):Promise.resolve(s.value).then(n,o);a((t=t.apply(A,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function F(){}const Kt=A=>A;function le(A,e){for(const t in e)A[t]=e[t];return A}function ve(A){return A()}function ce(){return Object.create(null)}function nA(A){A.forEach(ve)}function oe(A){return typeof A=="function"}function Le(A,e){return A!=A?e==e:A!==e||A&&typeof A=="object"||typeof A=="function"}let hA;function JA(A,e){return A===e?!0:(hA||(hA=document.createElement("a")),hA.href=e,A===hA.href)}function yt(A){return Object.keys(A).length===0}function Pe(A,...e){if(A==null){for(const i of e)i(void 0);return F}const t=A.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ie(A,e,t){A.$$.on_destroy.push(Pe(e,t))}const Te=typeof window!="undefined";let Ot=Te?()=>window.performance.now():()=>Date.now(),Xe=Te?A=>requestAnimationFrame(A):F;const v=new Set;function je(A){v.forEach(e=>{e.c(A)||(v.delete(e),e.f())}),v.size!==0&&Xe(je)}function Jt(A){let e;return v.size===0&&Xe(je),{promise:new Promise(t=>{v.add(e={c:A,f:t})}),abort(){v.delete(e)}}}function cA(A,e){A.appendChild(e)}function Vt(A,e,t){const i=Nt(A);if(!i.getElementById(e)){const r=O("style");r.id=e,r.textContent=t,kt(i,r)}}function Nt(A){if(!A)return document;const e=A.getRootNode?A.getRootNode():A.ownerDocument;return e&&e.host?e:A.ownerDocument}function kt(A,e){return cA(A.head||A,e),e.sheet}function dA(A,e,t){A.insertBefore(e,t||null)}function oA(A){A.parentNode&&A.parentNode.removeChild(A)}function O(A){return document.createElement(A)}function xt(A){return document.createTextNode(A)}function Wt(){return xt(" ")}function G(A,e,t){t==null?A.removeAttribute(e):A.getAttribute(e)!==t&&A.setAttribute(e,t)}function vt(A){return Array.from(A.childNodes)}function Ce(A,e,t,i){t==null?A.style.removeProperty(e):A.style.setProperty(e,t,"")}function VA(A,e,t){A.classList.toggle(e,!!t)}function Lt(A){const e={};return A.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}let tA;function eA(A){tA=A}function Pt(){if(!tA)throw new Error("Function called outside component initialization");return tA}function Tt(A){Pt().$$.on_mount.push(A)}const x=[],NA=[];let L=[];const me=[],Xt=Promise.resolve();let kA=!1;function jt(){kA||(kA=!0,Xt.then(U))}function xA(A){L.push(A)}const HA=new Set;let N=0;function U(){if(N!==0)return;const A=tA;do{try{for(;N<x.length;){const e=x[N];N++,eA(e),zt(e.$$)}}catch(e){throw x.length=0,N=0,e}for(eA(null),x.length=0,N=0;NA.length;)NA.pop()();for(let e=0;e<L.length;e+=1){const t=L[e];HA.has(t)||(HA.add(t),t())}L.length=0}while(x.length);for(;me.length;)me.pop()();kA=!1,HA.clear(),eA(A)}function zt(A){if(A.fragment!==null){A.update(),nA(A.before_update);const e=A.dirty;A.dirty=[-1],A.fragment&&A.fragment.p(A.ctx,e),A.after_update.forEach(xA)}}function _t(A){const e=[],t=[];L.forEach(i=>A.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),L=e}const $t=new Set;function Ai(A,e){A&&A.i&&($t.delete(A),A.i(e))}function ei(A,e,t){const{fragment:i,after_update:r}=A.$$;i&&i.m(e,t),xA(()=>{const n=A.$$.on_mount.map(ve).filter(oe);A.$$.on_destroy?A.$$.on_destroy.push(...n):nA(n),A.$$.on_mount=[]}),r.forEach(xA)}function ti(A,e){const t=A.$$;t.fragment!==null&&(_t(t.after_update),nA(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ii(A,e){A.$$.dirty[0]===-1&&(x.push(A),jt(),A.$$.dirty.fill(0)),A.$$.dirty[e/31|0]|=1<<e%31}function ri(A,e,t,i,r,n,o=null,a=[-1]){const s=tA;eA(A);const B=A.$$={fragment:null,ctx:[],props:n,update:F,not_equal:r,bound:ce(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:ce(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};o&&o(B.root);let u=!1;if(B.ctx=t?t(A,e.props||{},(g,h,...c)=>{const m=c.length?c[0]:h;return B.ctx&&r(B.ctx[g],B.ctx[g]=m)&&(!B.skip_bound&&B.bound[g]&&B.bound[g](m),u&&ii(A,g)),h}):[],B.update(),u=!0,nA(B.before_update),B.fragment=i?i(B.ctx):!1,e.target){if(e.hydrate){const g=vt(e.target);B.fragment&&B.fragment.l(g),g.forEach(oA)}else B.fragment&&B.fragment.c();e.intro&&Ai(A.$$.fragment),ei(A,e.target,e.anchor),U()}eA(s)}let ze;typeof HTMLElement=="function"&&(ze=class extends HTMLElement{constructor(e,t,i){super();D(this,"$$ctor");D(this,"$$s");D(this,"$$c");D(this,"$$cn",!1);D(this,"$$d",{});D(this,"$$r",!1);D(this,"$$p_d",{});D(this,"$$l",{});D(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,i&&this.attachShadow({mode:"open"})}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}connectedCallback(){return RA(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(n){return()=>{let o;return{c:function(){o=O("slot"),n!=="default"&&G(o,"name",n)},m:function(B,u){dA(B,o,u)},d:function(B){B&&oA(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=Lt(this);for(const n of this.$$s)n in i&&(t[n]=[e(n)]);for(const n of this.attributes){const o=this.$$g_p(n.name);o in this.$$d||(this.$$d[o]=IA(o,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Ee(ge({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const n in this.$$p_d)if(this.$$d[n]=this.$$c.$$.ctx[this.$$c.$$.props[n]],this.$$p_d[n].reflect){const o=IA(n,this.$$d[n],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,o)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const n in this.$$l)for(const o of this.$$l[n]){const a=this.$$c.$on(n,o);this.$$l_u.set(o,a)}this.$$l={}}})}attributeChangedCallback(e,t,i){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=IA(e,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function IA(A,e,t,i){var n;const r=(n=t[A])==null?void 0:n.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!t[A])return e;if(i==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function ni(A,e,t,i,r,n){let o=class extends ze{constructor(){super(A,t,r),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).forEach(a=>{Object.defineProperty(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(s){var B;s=IA(a,s,e),this.$$d[a]=s,(B=this.$$c)==null||B.$set({[a]:s})}})}),i.forEach(a=>{Object.defineProperty(o.prototype,a,{get(){var s;return(s=this.$$c)==null?void 0:s[a]}})}),A.element=o,o}class oi{constructor(){D(this,"$$");D(this,"$$set")}$destroy(){ti(this,1),this.$destroy=F}$on(e,t){if(!oe(t))return F;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const r=i.indexOf(t);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!yt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ai="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ai);const W="__WIDGET_GLOBAL_STYLE_CACHE__";function si(A,e){if(A){const t=document.createElement("style");t.innerHTML=e,A.appendChild(t)}}function Bi(A,e){if(!A||!e)return;const t=new URL(e);fetch(t.href).then(i=>i.text()).then(i=>{const r=document.createElement("style");r.innerHTML=i,A&&A.appendChild(r)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function ui(A,e,t,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return t=hi(A,e),t;window[W]||(window[W]={}),t=gi(A,e);const n=t.unsubscribe.bind(t),o=()=>{if(window[W][e]){const a=window[W][e];a.refCount>1?a.refCount=a.refCount-1:delete window[W][e]}n()};return t.unsubscribe=o,t}function hi(A,e){const t=document.createElement("style");return window.emMessageBus.subscribe(e,i=>{A&&(t.innerHTML=i,A.appendChild(t))})}function gi(A,e){return window.emMessageBus.subscribe(e,t=>{if(!A)return;const i=A.getRootNode(),r=window[W];let n=r[e]&&r[e].sheet;n?r[e].refCount=r[e].refCount+1:(n=new CSSStyleSheet,n.replaceSync(t),r[e]={sheet:n,refCount:1});const o=i.adoptedStyleSheets||[];o.includes(n)||(i.adoptedStyleSheets=[...o,n])})}/*! *****************************************************************************
1
+ "use strict";var Ht=Object.defineProperty,St=Object.defineProperties;var Ut=Object.getOwnPropertyDescriptors;var he=Object.getOwnPropertySymbols;var Yt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable;var MA=(A,e,t)=>e in A?Ht(A,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):A[e]=t,ge=(A,e)=>{for(var t in e||(e={}))Yt.call(e,t)&&MA(A,t,e[t]);if(he)for(var t of he(e))bt.call(e,t)&&MA(A,t,e[t]);return A},Ee=(A,e)=>St(A,Ut(e));var D=(A,e,t)=>MA(A,typeof e!="symbol"?e+"":e,t);var RA=(A,e,t)=>new Promise((i,r)=>{var n=s=>{try{a(t.next(s))}catch(B){r(B)}},o=s=>{try{a(t.throw(s))}catch(B){r(B)}},a=s=>s.done?i(s.value):Promise.resolve(s.value).then(n,o);a((t=t.apply(A,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function F(){}const Kt=A=>A;function le(A,e){for(const t in e)A[t]=e[t];return A}function ve(A){return A()}function ce(){return Object.create(null)}function nA(A){A.forEach(ve)}function oe(A){return typeof A=="function"}function Le(A,e){return A!=A?e==e:A!==e||A&&typeof A=="object"||typeof A=="function"}let hA;function JA(A,e){return A===e?!0:(hA||(hA=document.createElement("a")),hA.href=e,A===hA.href)}function yt(A){return Object.keys(A).length===0}function Pe(A,...e){if(A==null){for(const i of e)i(void 0);return F}const t=A.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Ie(A,e,t){A.$$.on_destroy.push(Pe(e,t))}const Te=typeof window!="undefined";let Ot=Te?()=>window.performance.now():()=>Date.now(),Xe=Te?A=>requestAnimationFrame(A):F;const v=new Set;function je(A){v.forEach(e=>{e.c(A)||(v.delete(e),e.f())}),v.size!==0&&Xe(je)}function Jt(A){let e;return v.size===0&&Xe(je),{promise:new Promise(t=>{v.add(e={c:A,f:t})}),abort(){v.delete(e)}}}function cA(A,e){A.appendChild(e)}function Vt(A,e,t){const i=Nt(A);if(!i.getElementById(e)){const r=O("style");r.id=e,r.textContent=t,kt(i,r)}}function Nt(A){if(!A)return document;const e=A.getRootNode?A.getRootNode():A.ownerDocument;return e&&e.host?e:A.ownerDocument}function kt(A,e){return cA(A.head||A,e),e.sheet}function dA(A,e,t){A.insertBefore(e,t||null)}function oA(A){A.parentNode&&A.parentNode.removeChild(A)}function O(A){return document.createElement(A)}function xt(A){return document.createTextNode(A)}function Wt(){return xt(" ")}function G(A,e,t){t==null?A.removeAttribute(e):A.getAttribute(e)!==t&&A.setAttribute(e,t)}function vt(A){return Array.from(A.childNodes)}function Ce(A,e,t,i){t==null?A.style.removeProperty(e):A.style.setProperty(e,t,"")}function VA(A,e,t){A.classList.toggle(e,!!t)}function Lt(A){const e={};return A.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}let tA;function eA(A){tA=A}function Pt(){if(!tA)throw new Error("Function called outside component initialization");return tA}function Tt(A){Pt().$$.on_mount.push(A)}const x=[],NA=[];let L=[];const me=[],Xt=Promise.resolve();let kA=!1;function jt(){kA||(kA=!0,Xt.then(U))}function xA(A){L.push(A)}const HA=new Set;let N=0;function U(){if(N!==0)return;const A=tA;do{try{for(;N<x.length;){const e=x[N];N++,eA(e),zt(e.$$)}}catch(e){throw x.length=0,N=0,e}for(eA(null),x.length=0,N=0;NA.length;)NA.pop()();for(let e=0;e<L.length;e+=1){const t=L[e];HA.has(t)||(HA.add(t),t())}L.length=0}while(x.length);for(;me.length;)me.pop()();kA=!1,HA.clear(),eA(A)}function zt(A){if(A.fragment!==null){A.update(),nA(A.before_update);const e=A.dirty;A.dirty=[-1],A.fragment&&A.fragment.p(A.ctx,e),A.after_update.forEach(xA)}}function _t(A){const e=[],t=[];L.forEach(i=>A.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),L=e}const $t=new Set;function Ai(A,e){A&&A.i&&($t.delete(A),A.i(e))}function ei(A,e,t){const{fragment:i,after_update:r}=A.$$;i&&i.m(e,t),xA(()=>{const n=A.$$.on_mount.map(ve).filter(oe);A.$$.on_destroy?A.$$.on_destroy.push(...n):nA(n),A.$$.on_mount=[]}),r.forEach(xA)}function ti(A,e){const t=A.$$;t.fragment!==null&&(_t(t.after_update),nA(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ii(A,e){A.$$.dirty[0]===-1&&(x.push(A),jt(),A.$$.dirty.fill(0)),A.$$.dirty[e/31|0]|=1<<e%31}function ri(A,e,t,i,r,n,o=null,a=[-1]){const s=tA;eA(A);const B=A.$$={fragment:null,ctx:[],props:n,update:F,not_equal:r,bound:ce(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:ce(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};o&&o(B.root);let u=!1;if(B.ctx=t?t(A,e.props||{},(g,h,...c)=>{const m=c.length?c[0]:h;return B.ctx&&r(B.ctx[g],B.ctx[g]=m)&&(!B.skip_bound&&B.bound[g]&&B.bound[g](m),u&&ii(A,g)),h}):[],B.update(),u=!0,nA(B.before_update),B.fragment=i?i(B.ctx):!1,e.target){if(e.hydrate){const g=vt(e.target);B.fragment&&B.fragment.l(g),g.forEach(oA)}else B.fragment&&B.fragment.c();e.intro&&Ai(A.$$.fragment),ei(A,e.target,e.anchor),U()}eA(s)}let ze;typeof HTMLElement=="function"&&(ze=class extends HTMLElement{constructor(e,t,i){super();D(this,"$$ctor");D(this,"$$s");D(this,"$$c");D(this,"$$cn",!1);D(this,"$$d",{});D(this,"$$r",!1);D(this,"$$p_d",{});D(this,"$$l",{});D(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,i&&this.attachShadow({mode:"open"})}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}connectedCallback(){return RA(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(n){return()=>{let o;return{c:function(){o=O("slot"),n!=="default"&&G(o,"name",n)},m:function(B,u){dA(B,o,u)},d:function(B){B&&oA(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=Lt(this);for(const n of this.$$s)n in i&&(t[n]=[e(n)]);for(const n of this.attributes){const o=this.$$g_p(n.name);o in this.$$d||(this.$$d[o]=IA(o,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Ee(ge({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const n in this.$$p_d)if(this.$$d[n]=this.$$c.$$.ctx[this.$$c.$$.props[n]],this.$$p_d[n].reflect){const o=IA(n,this.$$d[n],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,o)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const n in this.$$l)for(const o of this.$$l[n]){const a=this.$$c.$on(n,o);this.$$l_u.set(o,a)}this.$$l={}}})}attributeChangedCallback(e,t,i){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=IA(e,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function IA(A,e,t,i){var n;const r=(n=t[A])==null?void 0:n.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!t[A])return e;if(i==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function ni(A,e,t,i,r,n){let o=class extends ze{constructor(){super(A,t,r),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).forEach(a=>{Object.defineProperty(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(s){var B;s=IA(a,s,e),this.$$d[a]=s,(B=this.$$c)==null||B.$set({[a]:s})}})}),i.forEach(a=>{Object.defineProperty(o.prototype,a,{get(){var s;return(s=this.$$c)==null?void 0:s[a]}})}),A.element=o,o}class oi{constructor(){D(this,"$$");D(this,"$$set")}$destroy(){ti(this,1),this.$destroy=F}$on(e,t){if(!oe(t))return F;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const r=i.indexOf(t);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!yt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ai="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ai);const W="__WIDGET_GLOBAL_STYLE_CACHE__";function si(A,e){if(A){const t=document.createElement("style");t.innerHTML=e,A.appendChild(t)}}function Bi(A,e){if(!A||!e)return;const t=new URL(e);fetch(t.href).then(i=>i.text()).then(i=>{const r=document.createElement("style");r.innerHTML=i,A&&A.appendChild(r)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function ui(A,e,t,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return t=hi(A,e),t;window[W]||(window[W]={}),t=gi(A,e);const n=t.unsubscribe.bind(t),o=()=>{if(window[W][e]){const a=window[W][e];a.refCount>1?a.refCount=a.refCount-1:delete window[W][e]}n()};return t.unsubscribe=o,t}function hi(A,e){const t=document.createElement("style");return window.emMessageBus.subscribe(e,i=>{A&&(t.innerHTML=i,A.appendChild(t))})}function gi(A,e){return window.emMessageBus.subscribe(e,t=>{if(!A)return;const i=A.getRootNode(),r=window[W];let n=r[e]&&r[e].sheet;n?r[e].refCount=r[e].refCount+1:(n=new CSSStyleSheet,n.replaceSync(t),r[e]={sheet:n,refCount:1});const o=i.adoptedStyleSheets||[];o.includes(n)||(i.adoptedStyleSheets=[...o,n])})}/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -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/PrizeEngineChest-CHvWCl14.cjs")).then(({default:t})=>{!customElements.get("prize-engine-chest")&&customElements.define("prize-engine-chest",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/PrizeEngineChest-DXQ8CVwh.cjs")).then(({default:t})=>{!customElements.get("prize-engine-chest")&&customElements.define("prize-engine-chest",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/PrizeEngineChest-DLcvKPPl.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/PrizeEngineChest-BW4_txrn.js").then(({ default: t }) => {
14
14
  !customElements.get("prize-engine-chest") && customElements.define("prize-engine-chest", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { P as s } from "../components/PrizeEngineChest-ByJqm2HB.js";
1
+ import { P as s } from "../components/PrizeEngineChest-C7mQr3uk.js";
2
2
  function i(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/prize-engine-chest",
3
- "version": "0.9.57",
3
+ "version": "0.9.60",
4
4
  "type": "module",
5
5
  "main": "esnext/prize-engine-chest.js",
6
6
  "module": "esnext/prize-engine-chest.js",