@everymatrix/prize-engine-history 0.4.31 → 0.4.32

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.
@@ -18,7 +18,7 @@ function cr(e, t) {
18
18
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
19
19
  }
20
20
  let Se;
21
- function Le(e, t) {
21
+ function Ae(e, t) {
22
22
  return e === t ? !0 : (Se || (Se = document.createElement("a")), Se.href = t, e === Se.href);
23
23
  }
24
24
  function tn(e) {
@@ -137,8 +137,8 @@ function cn(e) {
137
137
  }
138
138
  ), t;
139
139
  }
140
- const Ae = /* @__PURE__ */ new Map();
141
- let Be = 0;
140
+ const Be = /* @__PURE__ */ new Map();
141
+ let Le = 0;
142
142
  function fn(e) {
143
143
  let t = 5381, r = e.length;
144
144
  for (; r--; )
@@ -147,7 +147,7 @@ function fn(e) {
147
147
  }
148
148
  function dn(e, t) {
149
149
  const r = { stylesheet: sn(t), rules: {} };
150
- return Ae.set(e, r), r;
150
+ return Be.set(e, r), r;
151
151
  }
152
152
  function mn(e, t, r, n, i, o, a, s = 0) {
153
153
  const l = 16.666 / n;
@@ -159,24 +159,24 @@ function mn(e, t, r, n, i, o, a, s = 0) {
159
159
  `;
160
160
  }
161
161
  const h = u + `100% {${a(r, 1 - r)}}
162
- }`, c = `__svelte_${fn(h)}_${s}`, f = Et(e), { stylesheet: d, rules: p } = Ae.get(f) || dn(f, e);
162
+ }`, c = `__svelte_${fn(h)}_${s}`, f = Et(e), { stylesheet: d, rules: p } = Be.get(f) || dn(f, e);
163
163
  p[c] || (p[c] = !0, d.insertRule(`@keyframes ${c} ${h}`, d.cssRules.length));
164
164
  const v = e.style.animation || "";
165
- return e.style.animation = `${v ? `${v}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, Be += 1, c;
165
+ return e.style.animation = `${v ? `${v}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, Le += 1, c;
166
166
  }
167
167
  function Ht(e, t) {
168
168
  const r = (e.style.animation || "").split(", "), n = r.filter(
169
169
  t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
170
170
  // remove all Svelte animations
171
171
  ), i = r.length - n.length;
172
- i && (e.style.animation = n.join(", "), Be -= i, Be || pn());
172
+ i && (e.style.animation = n.join(", "), Le -= i, Le || pn());
173
173
  }
174
174
  function pn() {
175
175
  wt(() => {
176
- Be || (Ae.forEach((e) => {
176
+ Le || (Be.forEach((e) => {
177
177
  const { ownerNode: t } = e.stylesheet;
178
178
  t && I(t);
179
- }), Ae.clear());
179
+ }), Be.clear());
180
180
  });
181
181
  }
182
182
  let ve;
@@ -497,7 +497,7 @@ function Pe(e, t, r, n) {
497
497
  return t;
498
498
  }
499
499
  }
500
- function Ln(e, t, r, n, i, o) {
500
+ function An(e, t, r, n, i, o) {
501
501
  let a = class extends gr {
502
502
  constructor() {
503
503
  super(e, r, i), this.$$p_d = t;
@@ -526,7 +526,7 @@ function Ln(e, t, r, n, i, o) {
526
526
  }), e.element = /** @type {any} */
527
527
  a, a;
528
528
  }
529
- class An {
529
+ class Bn {
530
530
  /**
531
531
  * ### PRIVATE API
532
532
  *
@@ -570,8 +570,8 @@ class An {
570
570
  this.$$set && !tn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
571
571
  }
572
572
  }
573
- const Bn = "4";
574
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Bn);
573
+ const Ln = "4";
574
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ln);
575
575
  function In(e, { delay: t = 0, duration: r = 400, easing: n = lr } = {}) {
576
576
  const i = +getComputedStyle(e).opacity;
577
577
  return {
@@ -769,7 +769,7 @@ var je = function() {
769
769
  for (var f = ut(c), d = f.next(); !d.done; d = f.next()) {
770
770
  var p = d.value;
771
771
  try {
772
- Lt(p);
772
+ At(p);
773
773
  } catch (v) {
774
774
  o = o ?? [], v instanceof Ze ? o = ht(ht([], lt(o)), lt(v.errors)) : o.push(v);
775
775
  }
@@ -792,7 +792,7 @@ var je = function() {
792
792
  var r;
793
793
  if (t && t !== this)
794
794
  if (this.closed)
795
- Lt(t);
795
+ At(t);
796
796
  else {
797
797
  if (t instanceof e) {
798
798
  if (t.closed || t._hasParent(this))
@@ -821,7 +821,7 @@ var je = function() {
821
821
  function _r(e) {
822
822
  return e instanceof je || e && "closed" in e && k(e.remove) && k(e.add) && k(e.unsubscribe);
823
823
  }
824
- function Lt(e) {
824
+ function At(e) {
825
825
  k(e) ? e() : e.unsubscribe();
826
826
  }
827
827
  var kn = {
@@ -842,7 +842,7 @@ function Gn(e) {
842
842
  throw e;
843
843
  });
844
844
  }
845
- function At() {
845
+ function Bt() {
846
846
  }
847
847
  function He(e) {
848
848
  e();
@@ -929,9 +929,9 @@ function Wn(e) {
929
929
  }
930
930
  var Vn = {
931
931
  closed: !0,
932
- next: At,
932
+ next: Bt,
933
933
  error: Wn,
934
- complete: At
934
+ complete: Bt
935
935
  }, Yn = function() {
936
936
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
937
937
  }();
@@ -945,7 +945,7 @@ function zn(e) {
945
945
  }, r);
946
946
  };
947
947
  }
948
- var Bt = function() {
948
+ var Lt = function() {
949
949
  function e(t) {
950
950
  t && (this._subscribe = t);
951
951
  }
@@ -1094,12 +1094,12 @@ var Zn = br(function(e) {
1094
1094
  var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
1095
1095
  i ? r.error(o) : a && r.complete();
1096
1096
  }, t.prototype.asObservable = function() {
1097
- var r = new Bt();
1097
+ var r = new Lt();
1098
1098
  return r.source = this, r;
1099
1099
  }, t.create = function(r, n) {
1100
1100
  return new Nt(r, n);
1101
1101
  }, t;
1102
- }(Bt), Nt = function(e) {
1102
+ }(Lt), Nt = function(e) {
1103
1103
  xe(t, e);
1104
1104
  function t(r, n) {
1105
1105
  var i = e.call(this) || this;
@@ -1420,16 +1420,16 @@ function Cr(e) {
1420
1420
  function Mr(e) {
1421
1421
  return e.type === S.select;
1422
1422
  }
1423
- function Lr(e) {
1423
+ function Ar(e) {
1424
1424
  return e.type === S.plural;
1425
1425
  }
1426
1426
  function Oi(e) {
1427
1427
  return e.type === S.pound;
1428
1428
  }
1429
- function Ar(e) {
1429
+ function Br(e) {
1430
1430
  return e.type === S.tag;
1431
1431
  }
1432
- function Br(e) {
1432
+ function Lr(e) {
1433
1433
  return !!(e && typeof e == "object" && e.type === ie.number);
1434
1434
  }
1435
1435
  function mt(e) {
@@ -1556,10 +1556,10 @@ function Mi(e) {
1556
1556
  }
1557
1557
  return r;
1558
1558
  }
1559
- function Li(e) {
1559
+ function Ai(e) {
1560
1560
  return e.replace(/^(.*?)-/, "");
1561
1561
  }
1562
- var kt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nr = /^(@+)?(\+|#+)?[rs]?$/g, Ai = /(\*)(0+)|(#+)(0+)|(0+)/g, Dr = /^(0+)$/;
1562
+ var kt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nr = /^(@+)?(\+|#+)?[rs]?$/g, Bi = /(\*)(0+)|(#+)(0+)|(0+)/g, Dr = /^(0+)$/;
1563
1563
  function Ft(e) {
1564
1564
  var t = {};
1565
1565
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Nr, function(r, n, i) {
@@ -1606,7 +1606,7 @@ function $r(e) {
1606
1606
  };
1607
1607
  }
1608
1608
  }
1609
- function Bi(e) {
1609
+ function Li(e) {
1610
1610
  var t;
1611
1611
  if (e[0] === "E" && e[1] === "E" ? (t = {
1612
1612
  notation: "engineering"
@@ -1648,7 +1648,7 @@ function Ii(e) {
1648
1648
  continue;
1649
1649
  case "measure-unit":
1650
1650
  case "unit":
1651
- t.style = "unit", t.unit = Li(i.options[0]);
1651
+ t.style = "unit", t.unit = Ai(i.options[0]);
1652
1652
  continue;
1653
1653
  case "compact-short":
1654
1654
  case "K":
@@ -1710,7 +1710,7 @@ function Ii(e) {
1710
1710
  case "integer-width":
1711
1711
  if (i.options.length > 1)
1712
1712
  throw new RangeError("integer-width stems only accept a single optional option");
1713
- i.options[0].replace(Ai, function(l, u, h, c, f, d) {
1713
+ i.options[0].replace(Bi, function(l, u, h, c, f, d) {
1714
1714
  if (u)
1715
1715
  t.minimumIntegerDigits = h.length;
1716
1716
  else {
@@ -1743,7 +1743,7 @@ function Ii(e) {
1743
1743
  }
1744
1744
  var a = $r(i.stem);
1745
1745
  a && (t = P(P({}, t), a));
1746
- var s = Bi(i.stem);
1746
+ var s = Li(i.stem);
1747
1747
  s && (t = P(P({}, t), s));
1748
1748
  }
1749
1749
  return t;
@@ -3555,7 +3555,7 @@ var Qi = (
3555
3555
  if (this.bumpSpace(), !this.bumpIf(","))
3556
3556
  return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(m, Ie({}, m)));
3557
3557
  this.bumpSpace();
3558
- var H = this.parseIdentifierIfPossible(), A = 0;
3558
+ var H = this.parseIdentifierIfPossible(), B = 0;
3559
3559
  if (s !== "select" && H.value === "offset") {
3560
3560
  if (!this.bumpIf(":"))
3561
3561
  return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
@@ -3563,7 +3563,7 @@ var Qi = (
3563
3563
  var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3564
3564
  if (c.err)
3565
3565
  return c;
3566
- this.bumpSpace(), H = this.parseIdentifierIfPossible(), A = c.val;
3566
+ this.bumpSpace(), H = this.parseIdentifierIfPossible(), B = c.val;
3567
3567
  }
3568
3568
  var R = this.tryParsePluralOrSelectOptions(t, s, r, H);
3569
3569
  if (R.err)
@@ -3585,7 +3585,7 @@ var Qi = (
3585
3585
  type: S.plural,
3586
3586
  value: n,
3587
3587
  options: Wt(R.val),
3588
- offset: A,
3588
+ offset: B,
3589
3589
  pluralType: s === "plural" ? "cardinal" : "ordinal",
3590
3590
  location: we
3591
3591
  },
@@ -3775,11 +3775,11 @@ function Ki(e) {
3775
3775
  }
3776
3776
  function yt(e) {
3777
3777
  e.forEach(function(t) {
3778
- if (delete t.location, Mr(t) || Lr(t))
3778
+ if (delete t.location, Mr(t) || Ar(t))
3779
3779
  for (var r in t.options)
3780
3780
  delete t.options[r].location, yt(t.options[r].value);
3781
3781
  else
3782
- Pr(t) && Br(t.style) || (Hr(t) || Cr(t)) && mt(t.style) ? delete t.style.location : Ar(t) && yt(t.children);
3782
+ Pr(t) && Lr(t.style) || (Hr(t) || Cr(t)) && mt(t.style) ? delete t.style.location : Br(t) && yt(t.children);
3783
3783
  });
3784
3784
  }
3785
3785
  function eo(e, t) {
@@ -3899,24 +3899,24 @@ function Ce(e, t, r, n, i, o, a) {
3899
3899
  continue;
3900
3900
  }
3901
3901
  if (Pr(h)) {
3902
- var d = typeof h.style == "string" ? n.number[h.style] : Br(h.style) ? h.style.parsedOptions : void 0;
3902
+ var d = typeof h.style == "string" ? n.number[h.style] : Lr(h.style) ? h.style.parsedOptions : void 0;
3903
3903
  d && d.scale && (f = f * (d.scale || 1)), s.push({
3904
3904
  type: C.literal,
3905
3905
  value: r.getNumberFormat(t, d).format(f)
3906
3906
  });
3907
3907
  continue;
3908
3908
  }
3909
- if (Ar(h)) {
3909
+ if (Br(h)) {
3910
3910
  var p = h.children, v = h.value, b = i[v];
3911
3911
  if (!io(b))
3912
3912
  throw new to(v, "function", a);
3913
- var g = Ce(p, t, r, n, i, o), x = b(g.map(function(A) {
3914
- return A.value;
3913
+ var g = Ce(p, t, r, n, i, o), x = b(g.map(function(B) {
3914
+ return B.value;
3915
3915
  }));
3916
- Array.isArray(x) || (x = [x]), s.push.apply(s, x.map(function(A) {
3916
+ Array.isArray(x) || (x = [x]), s.push.apply(s, x.map(function(B) {
3917
3917
  return {
3918
- type: typeof A == "string" ? C.literal : C.object,
3919
- value: A
3918
+ type: typeof B == "string" ? C.literal : C.object,
3919
+ value: B
3920
3920
  };
3921
3921
  }));
3922
3922
  }
@@ -3927,7 +3927,7 @@ function Ce(e, t, r, n, i, o, a) {
3927
3927
  s.push.apply(s, Ce(m.value, t, r, n, i));
3928
3928
  continue;
3929
3929
  }
3930
- if (Lr(h)) {
3930
+ if (Ar(h)) {
3931
3931
  var m = h.options["=".concat(f)];
3932
3932
  if (!m) {
3933
3933
  if (!Intl.PluralRules)
@@ -4334,14 +4334,14 @@ const ye = (e, t) => {
4334
4334
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4335
4335
  return n && (i = ye("number", n)), new Intl.NumberFormat(r, i);
4336
4336
  }
4337
- ), Lo = ze(
4337
+ ), Ao = ze(
4338
4338
  (e) => {
4339
4339
  var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
4340
4340
  if (r == null)
4341
4341
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4342
4342
  return n ? i = ye("date", n) : Object.keys(i).length === 0 && (i = ye("date", "short")), new Intl.DateTimeFormat(r, i);
4343
4343
  }
4344
- ), Ao = ze(
4344
+ ), Bo = ze(
4345
4345
  (e) => {
4346
4346
  var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
4347
4347
  if (r == null)
@@ -4350,7 +4350,7 @@ const ye = (e, t) => {
4350
4350
  );
4351
4351
  return n ? i = ye("time", n) : Object.keys(i).length === 0 && (i = ye("time", "short")), new Intl.DateTimeFormat(r, i);
4352
4352
  }
4353
- ), Bo = (e = {}) => {
4353
+ ), Lo = (e = {}) => {
4354
4354
  var t = e, {
4355
4355
  locale: r = z()
4356
4356
  } = t, n = he(t, [
@@ -4363,14 +4363,14 @@ const ye = (e, t) => {
4363
4363
  } = t, n = he(t, [
4364
4364
  "locale"
4365
4365
  ]);
4366
- return Lo(Tt({ locale: r }, n));
4366
+ return Ao(Tt({ locale: r }, n));
4367
4367
  }, No = (e = {}) => {
4368
4368
  var t = e, {
4369
4369
  locale: r = z()
4370
4370
  } = t, n = he(t, [
4371
4371
  "locale"
4372
4372
  ]);
4373
- return Ao(Tt({ locale: r }, n));
4373
+ return Bo(Tt({ locale: r }, n));
4374
4374
  }, Do = ze(
4375
4375
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4376
4376
  (e, t = z()) => new uo(e, t, ae().formats, {
@@ -4408,7 +4408,7 @@ const ye = (e, t) => {
4408
4408
  );
4409
4409
  }
4410
4410
  return c;
4411
- }, Uo = (e, t) => No(t).format(e), Ro = (e, t) => Io(t).format(e), ko = (e, t) => Bo(t).format(e), Fo = (e, t = z()) => Fr(e, t), Go = ue([V, le], () => $o);
4411
+ }, Uo = (e, t) => No(t).format(e), Ro = (e, t) => Io(t).format(e), ko = (e, t) => Lo(t).format(e), Fo = (e, t = z()) => Fr(e, t), Go = ue([V, le], () => $o);
4412
4412
  ue([V], () => Uo);
4413
4413
  ue([V], () => Ro);
4414
4414
  ue([V], () => ko);
@@ -4452,17 +4452,17 @@ function X(e) {
4452
4452
  var t = Number(e);
4453
4453
  return isNaN(t) ? t : t < 0 ? Math.ceil(t) : Math.floor(t);
4454
4454
  }
4455
- function L(e, t) {
4455
+ function A(e, t) {
4456
4456
  if (t.length < e)
4457
4457
  throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present");
4458
4458
  }
4459
4459
  function U(e) {
4460
- L(1, arguments);
4460
+ A(1, arguments);
4461
4461
  var t = Object.prototype.toString.call(e);
4462
4462
  return e instanceof Date || $e(e) === "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
4463
4463
  }
4464
4464
  function Xo(e, t) {
4465
- L(2, arguments);
4465
+ A(2, arguments);
4466
4466
  var r = U(e).getTime(), n = X(t);
4467
4467
  return new Date(r + n);
4468
4468
  }
@@ -4475,34 +4475,34 @@ function qo(e) {
4475
4475
  return t.setUTCFullYear(e.getFullYear()), e.getTime() - t.getTime();
4476
4476
  }
4477
4477
  function Qo(e) {
4478
- return L(1, arguments), e instanceof Date || $e(e) === "object" && Object.prototype.toString.call(e) === "[object Date]";
4478
+ return A(1, arguments), e instanceof Date || $e(e) === "object" && Object.prototype.toString.call(e) === "[object Date]";
4479
4479
  }
4480
4480
  function Zo(e) {
4481
- if (L(1, arguments), !Qo(e) && typeof e != "number")
4481
+ if (A(1, arguments), !Qo(e) && typeof e != "number")
4482
4482
  return !1;
4483
4483
  var t = U(e);
4484
4484
  return !isNaN(Number(t));
4485
4485
  }
4486
4486
  function Jo(e, t) {
4487
- L(2, arguments);
4487
+ A(2, arguments);
4488
4488
  var r = X(t);
4489
4489
  return Xo(e, -r);
4490
4490
  }
4491
4491
  var Ko = 864e5;
4492
4492
  function ea(e) {
4493
- L(1, arguments);
4493
+ A(1, arguments);
4494
4494
  var t = U(e), r = t.getTime();
4495
4495
  t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
4496
4496
  var n = t.getTime(), i = r - n;
4497
4497
  return Math.floor(i / Ko) + 1;
4498
4498
  }
4499
4499
  function Ue(e) {
4500
- L(1, arguments);
4500
+ A(1, arguments);
4501
4501
  var t = 1, r = U(e), n = r.getUTCDay(), i = (n < t ? 7 : 0) + n - t;
4502
4502
  return r.setUTCDate(r.getUTCDate() - i), r.setUTCHours(0, 0, 0, 0), r;
4503
4503
  }
4504
4504
  function qr(e) {
4505
- L(1, arguments);
4505
+ A(1, arguments);
4506
4506
  var t = U(e), r = t.getUTCFullYear(), n = /* @__PURE__ */ new Date(0);
4507
4507
  n.setUTCFullYear(r + 1, 0, 4), n.setUTCHours(0, 0, 0, 0);
4508
4508
  var i = Ue(n), o = /* @__PURE__ */ new Date(0);
@@ -4511,7 +4511,7 @@ function qr(e) {
4511
4511
  return t.getTime() >= i.getTime() ? r + 1 : t.getTime() >= a.getTime() ? r : r - 1;
4512
4512
  }
4513
4513
  function ta(e) {
4514
- L(1, arguments);
4514
+ A(1, arguments);
4515
4515
  var t = qr(e), r = /* @__PURE__ */ new Date(0);
4516
4516
  r.setUTCFullYear(t, 0, 4), r.setUTCHours(0, 0, 0, 0);
4517
4517
  var n = Ue(r);
@@ -4519,13 +4519,13 @@ function ta(e) {
4519
4519
  }
4520
4520
  var ra = 6048e5;
4521
4521
  function na(e) {
4522
- L(1, arguments);
4522
+ A(1, arguments);
4523
4523
  var t = U(e), r = Ue(t).getTime() - ta(t).getTime();
4524
4524
  return Math.round(r / ra) + 1;
4525
4525
  }
4526
4526
  function Re(e, t) {
4527
4527
  var r, n, i, o, a, s, l, u;
4528
- L(1, arguments);
4528
+ A(1, arguments);
4529
4529
  var h = qe(), c = X((r = (n = (i = (o = t?.weekStartsOn) !== null && o !== void 0 ? o : t == null || (a = t.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && i !== void 0 ? i : h.weekStartsOn) !== null && n !== void 0 ? n : (l = h.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && r !== void 0 ? r : 0);
4530
4530
  if (!(c >= 0 && c <= 6))
4531
4531
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
@@ -4534,7 +4534,7 @@ function Re(e, t) {
4534
4534
  }
4535
4535
  function Qr(e, t) {
4536
4536
  var r, n, i, o, a, s, l, u;
4537
- L(1, arguments);
4537
+ A(1, arguments);
4538
4538
  var h = U(e), c = h.getUTCFullYear(), f = qe(), d = X((r = (n = (i = (o = t?.firstWeekContainsDate) !== null && o !== void 0 ? o : t == null || (a = t.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && i !== void 0 ? i : f.firstWeekContainsDate) !== null && n !== void 0 ? n : (l = f.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && r !== void 0 ? r : 1);
4539
4539
  if (!(d >= 1 && d <= 7))
4540
4540
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
@@ -4547,7 +4547,7 @@ function Qr(e, t) {
4547
4547
  }
4548
4548
  function ia(e, t) {
4549
4549
  var r, n, i, o, a, s, l, u;
4550
- L(1, arguments);
4550
+ A(1, arguments);
4551
4551
  var h = qe(), c = X((r = (n = (i = (o = t?.firstWeekContainsDate) !== null && o !== void 0 ? o : t == null || (a = t.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && i !== void 0 ? i : h.firstWeekContainsDate) !== null && n !== void 0 ? n : (l = h.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && r !== void 0 ? r : 1), f = Qr(e, t), d = /* @__PURE__ */ new Date(0);
4552
4552
  d.setUTCFullYear(f, 0, c), d.setUTCHours(0, 0, 0, 0);
4553
4553
  var p = Re(d, t);
@@ -4555,7 +4555,7 @@ function ia(e, t) {
4555
4555
  }
4556
4556
  var oa = 6048e5;
4557
4557
  function aa(e, t) {
4558
- L(1, arguments);
4558
+ A(1, arguments);
4559
4559
  var r = U(e), n = Re(r, t).getTime() - ia(r, t).getTime();
4560
4560
  return Math.round(n / oa) + 1;
4561
4561
  }
@@ -5514,7 +5514,7 @@ function me(e) {
5514
5514
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = r.width, i = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], o = t.match(i);
5515
5515
  if (!o)
5516
5516
  return null;
5517
- var a = o[0], s = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(s) ? La(s, function(c) {
5517
+ var a = o[0], s = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(s) ? Aa(s, function(c) {
5518
5518
  return c.test(a);
5519
5519
  }) : Ma(s, function(c) {
5520
5520
  return c.test(a);
@@ -5532,12 +5532,12 @@ function Ma(e, t) {
5532
5532
  if (e.hasOwnProperty(r) && t(e[r]))
5533
5533
  return r;
5534
5534
  }
5535
- function La(e, t) {
5535
+ function Aa(e, t) {
5536
5536
  for (var r = 0; r < e.length; r++)
5537
5537
  if (t(e[r]))
5538
5538
  return r;
5539
5539
  }
5540
- function Aa(e) {
5540
+ function Ba(e) {
5541
5541
  return function(t) {
5542
5542
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.match(e.matchPattern);
5543
5543
  if (!n)
@@ -5554,7 +5554,7 @@ function Aa(e) {
5554
5554
  };
5555
5555
  };
5556
5556
  }
5557
- var Ba = /^(\d+)(th|st|nd|rd)?/i, Ia = /\d+/i, Na = {
5557
+ var La = /^(\d+)(th|st|nd|rd)?/i, Ia = /\d+/i, Na = {
5558
5558
  narrow: /^(b|a)/i,
5559
5559
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
5560
5560
  wide: /^(before christ|before common era|anno domini|common era)/i
@@ -5596,8 +5596,8 @@ var Ba = /^(\d+)(th|st|nd|rd)?/i, Ia = /\d+/i, Na = {
5596
5596
  night: /night/i
5597
5597
  }
5598
5598
  }, Va = {
5599
- ordinalNumber: Aa({
5600
- matchPattern: Ba,
5599
+ ordinalNumber: Ba({
5600
+ matchPattern: La,
5601
5601
  parsePattern: Ia,
5602
5602
  valueCallback: function(t) {
5603
5603
  return parseInt(t, 10);
@@ -5650,12 +5650,12 @@ var Ba = /^(\d+)(th|st|nd|rd)?/i, Ia = /\d+/i, Na = {
5650
5650
  }, Xa = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, za = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, qa = /^'([^]*?)'?$/, Qa = /''/g, Za = /[a-zA-Z]/;
5651
5651
  function Ja(e, t, r) {
5652
5652
  var n, i, o, a, s, l, u, h, c, f, d, p, v, b;
5653
- L(2, arguments);
5653
+ A(2, arguments);
5654
5654
  var g = String(t), x = qe(), m = (n = (i = void 0) !== null && i !== void 0 ? i : x.locale) !== null && n !== void 0 ? n : Ya, H = X((o = (a = (s = (l = void 0) !== null && l !== void 0 ? l : void 0) !== null && s !== void 0 ? s : x.firstWeekContainsDate) !== null && a !== void 0 ? a : (u = x.locale) === null || u === void 0 || (h = u.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
5655
5655
  if (!(H >= 1 && H <= 7))
5656
5656
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
5657
- var A = X((c = (f = (d = (p = void 0) !== null && p !== void 0 ? p : void 0) !== null && d !== void 0 ? d : x.weekStartsOn) !== null && f !== void 0 ? f : (v = x.locale) === null || v === void 0 || (b = v.options) === null || b === void 0 ? void 0 : b.weekStartsOn) !== null && c !== void 0 ? c : 0);
5658
- if (!(A >= 0 && A <= 6))
5657
+ var B = X((c = (f = (d = (p = void 0) !== null && p !== void 0 ? p : void 0) !== null && d !== void 0 ? d : x.weekStartsOn) !== null && f !== void 0 ? f : (v = x.locale) === null || v === void 0 || (b = v.options) === null || b === void 0 ? void 0 : b.weekStartsOn) !== null && c !== void 0 ? c : 0);
5658
+ if (!(B >= 0 && B <= 6))
5659
5659
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
5660
5660
  if (!m.localize)
5661
5661
  throw new RangeError("locale must contain localize property");
@@ -5666,28 +5666,28 @@ function Ja(e, t, r) {
5666
5666
  throw new RangeError("Invalid time value");
5667
5667
  var we = qo(R), Jr = Jo(R, we), Kr = {
5668
5668
  firstWeekContainsDate: H,
5669
- weekStartsOn: A,
5669
+ weekStartsOn: B,
5670
5670
  locale: m,
5671
5671
  _originalDate: R
5672
- }, en = g.match(za).map(function(B) {
5673
- var F = B[0];
5672
+ }, en = g.match(za).map(function(L) {
5673
+ var F = L[0];
5674
5674
  if (F === "p" || F === "P") {
5675
5675
  var Ee = la[F];
5676
- return Ee(B, m.formatLong);
5676
+ return Ee(L, m.formatLong);
5677
5677
  }
5678
- return B;
5679
- }).join("").match(Xa).map(function(B) {
5680
- if (B === "''")
5678
+ return L;
5679
+ }).join("").match(Xa).map(function(L) {
5680
+ if (L === "''")
5681
5681
  return "'";
5682
- var F = B[0];
5682
+ var F = L[0];
5683
5683
  if (F === "'")
5684
- return Ka(B);
5684
+ return Ka(L);
5685
5685
  var Ee = sa[F];
5686
5686
  if (Ee)
5687
- return da(B) && tr(B, t, String(e)), fa(B) && tr(B, t, String(e)), Ee(Jr, B, m.localize, Kr);
5687
+ return da(L) && tr(L, t, String(e)), fa(L) && tr(L, t, String(e)), Ee(Jr, L, m.localize, Kr);
5688
5688
  if (F.match(Za))
5689
5689
  throw new RangeError("Format string contains an unescaped latin alphabet character `" + F + "`");
5690
- return B;
5690
+ return L;
5691
5691
  }).join("");
5692
5692
  return en;
5693
5693
  }
@@ -5738,7 +5738,7 @@ const rr = async (e, t, r, n = {}) => {
5738
5738
  prizeName: m?.name?.[r] || m?.name?.["*"],
5739
5739
  prizeImage: m?.prizeImage?.[r] || m?.prizeImage?.["*"] || m?.image1?.[r] || m?.image1?.["*"],
5740
5740
  state: g.draw.state === "fulfilled",
5741
- date: Ja(new Date(g.draw.time), "LLL d, yyyy HH:mm:ss")
5741
+ date: Ja(new Date(g.draw.time), "dd/MM/yyyy hh:mm:ss a")
5742
5742
  };
5743
5743
  });
5744
5744
  return {
@@ -5862,7 +5862,7 @@ function ss(e) {
5862
5862
  let t, r;
5863
5863
  return {
5864
5864
  c() {
5865
- t = O("img"), Le(t.src, r = /*outcome*/
5865
+ t = O("img"), Ae(t.src, r = /*outcome*/
5866
5866
  e[24].prizeImage) || E(t, "src", r), E(t, "alt", "prize"), E(t, "class", "PrizeImg svelte-1r6yeh4");
5867
5867
  },
5868
5868
  m(n, i) {
@@ -5870,7 +5870,7 @@ function ss(e) {
5870
5870
  },
5871
5871
  p(n, i) {
5872
5872
  i & /*historyData*/
5873
- 4 && !Le(t.src, r = /*outcome*/
5873
+ 4 && !Ae(t.src, r = /*outcome*/
5874
5874
  n[24].prizeImage) && E(t, "src", r);
5875
5875
  },
5876
5876
  d(n) {
@@ -5921,7 +5921,7 @@ function sr(e) {
5921
5921
  return {
5922
5922
  c() {
5923
5923
  t = O("div"), r = O("div"), n = O("span"), n.textContent = `${/*index*/
5924
- e[26] + 1}`, i = j(), o = O("div"), g && g.c(), a = j(), s = O("img"), u = j(), h = O("div"), c = O("span"), d = se(f), p = j(), E(n, "class", "Index"), Le(s.src, l = /*outcome*/
5924
+ e[26] + 1}`, i = j(), o = O("div"), g && g.c(), a = j(), s = O("img"), u = j(), h = O("div"), c = O("span"), d = se(f), p = j(), E(n, "class", "Index"), Ae(s.src, l = /*outcome*/
5925
5925
  e[24].state ? nr : ir) || E(s, "src", l), E(s, "alt", "status"), E(s, "class", "StatusIcon svelte-1r6yeh4"), E(o, "class", "PrizeInfo svelte-1r6yeh4"), E(r, "class", "OutcomeLeft svelte-1r6yeh4"), E(c, "class", "Date svelte-1r6yeh4"), E(h, "class", "OutcomeRight"), E(t, "class", "OutcomeItem svelte-1r6yeh4");
5926
5926
  },
5927
5927
  m(x, m) {
@@ -5929,7 +5929,7 @@ function sr(e) {
5929
5929
  },
5930
5930
  p(x, m) {
5931
5931
  b === (b = v(x)) && g ? g.p(x, m) : (g && g.d(1), g = b && b(x), g && (g.c(), g.m(o, a))), m & /*historyData*/
5932
- 4 && !Le(s.src, l = /*outcome*/
5932
+ 4 && !Ae(s.src, l = /*outcome*/
5933
5933
  x[24].state ? nr : ir) && E(s, "src", l), m & /*historyData*/
5934
5934
  4 && f !== (f = /*outcome*/
5935
5935
  x[24].date + "") && Ge(d, f);
@@ -6076,8 +6076,8 @@ function ds(e, t, r) {
6076
6076
  Yo();
6077
6077
  const b = () => {
6078
6078
  fetch(u).then((H) => H.json()).then((H) => {
6079
- Object.keys(H).forEach((A) => {
6080
- zr(A, H[A]);
6079
+ Object.keys(H).forEach((B) => {
6080
+ zr(B, H[B]);
6081
6081
  });
6082
6082
  });
6083
6083
  }, g = async () => {
@@ -6126,7 +6126,7 @@ function ds(e, t, r) {
6126
6126
  x
6127
6127
  ];
6128
6128
  }
6129
- class ms extends An {
6129
+ class ms extends Bn {
6130
6130
  constructor(t) {
6131
6131
  super(), Mn(
6132
6132
  this,
@@ -6196,7 +6196,7 @@ class ms extends An {
6196
6196
  this.$$set({ type: t }), D();
6197
6197
  }
6198
6198
  }
6199
- customElements.define("prize-engine-history", Ln(ms, { endpoint: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, type: {} }, [], [], !0));
6199
+ customElements.define("prize-engine-history", An(ms, { endpoint: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, type: {} }, [], [], !0));
6200
6200
  export {
6201
6201
  ms as P
6202
6202
  };
@@ -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/PrizeEngineHistory-BAXTvHgT.cjs")).then(({default:t})=>{!customElements.get("prize-engine-history")&&customElements.define("prize-engine-history",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/PrizeEngineHistory-3xtMrxl1.cjs")).then(({default:t})=>{!customElements.get("prize-engine-history")&&customElements.define("prize-engine-history",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/PrizeEngineHistory-Bhgo19d7.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/PrizeEngineHistory-CivDmhAK.js").then(({ default: t }) => {
14
14
  !customElements.get("prize-engine-history") && customElements.define("prize-engine-history", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { P as s } from "../components/PrizeEngineHistory-Dix_MT_q.js";
1
+ import { P as s } from "../components/PrizeEngineHistory-DqFDCGGn.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-history",
3
- "version": "0.4.31",
3
+ "version": "0.4.32",
4
4
  "type": "module",
5
5
  "main": "esnext/prize-engine-history.js",
6
6
  "module": "esnext/prize-engine-history.js",