playlight-sdk 0.1.0 → 0.1.2

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.
@@ -33,20 +33,20 @@ const M = Symbol();
33
33
  function lifecycle_outside_component(e2) {
34
34
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
35
35
  }
36
- let q = null;
36
+ let T = null;
37
37
  function set_component_context(e2) {
38
- q = e2;
38
+ T = e2;
39
39
  }
40
40
  function push(e2, t2 = false, n2) {
41
- q = {
42
- p: q,
41
+ T = {
42
+ p: T,
43
43
  c: null,
44
44
  e: null,
45
45
  m: false,
46
46
  s: e2,
47
47
  x: null,
48
48
  l: null
49
- }, S && !t2 && (q.l = {
49
+ }, S && !t2 && (T.l = {
50
50
  s: null,
51
51
  u: null,
52
52
  r1: [],
@@ -54,7 +54,7 @@ function push(e2, t2 = false, n2) {
54
54
  });
55
55
  }
56
56
  function pop(e2) {
57
- const t2 = q;
57
+ const t2 = T;
58
58
  if (null !== t2) {
59
59
  const e3 = t2.e;
60
60
  if (null !== e3) {
@@ -69,12 +69,12 @@ function pop(e2) {
69
69
  set_active_effect(n2), set_active_reaction(o2);
70
70
  }
71
71
  }
72
- q = t2.p, t2.m = true;
72
+ T = t2.p, t2.m = true;
73
73
  }
74
74
  return {};
75
75
  }
76
76
  function is_runes() {
77
- return !S || null !== q && null === q.l;
77
+ return !S || null !== T && null === T.l;
78
78
  }
79
79
  function source(e2, t2) {
80
80
  return {
@@ -96,7 +96,7 @@ function mutable_source(e2, t2 = false) {
96
96
  const n2 = source(e2);
97
97
  return t2 || (n2.equals = safe_equals), // bind the signal to the component context, in case we need to
98
98
  // track updates to trigger beforeUpdate/afterUpdate callbacks
99
- S && null !== q && null !== q.l && ((_a2 = q.l).s ?? (_a2.s = [])).push(n2), n2;
99
+ S && null !== T && null !== T.l && ((_a2 = T.l).s ?? (_a2.s = [])).push(n2), n2;
100
100
  }
101
101
  function mutable_state(e2, t2 = false) {
102
102
  return /* @__PURE__ */ push_derived_source(/* @__PURE__ */ mutable_source(e2, t2));
@@ -280,7 +280,7 @@ function proxy(e2, n2 = null, o2) {
280
280
  function update_version(e2, t2 = 1) {
281
281
  set(e2, e2.v + t2);
282
282
  }
283
- var I, P, T, O, E;
283
+ var q, I, P, O, E;
284
284
  function create_text(e2 = "") {
285
285
  return document.createTextNode(e2);
286
286
  }
@@ -323,7 +323,7 @@ function derived(e2) {
323
323
  H.f |= w
324
324
  );
325
325
  return {
326
- ctx: q,
326
+ ctx: T,
327
327
  deps: null,
328
328
  effects: null,
329
329
  equals,
@@ -379,7 +379,7 @@ function update_derived(e2) {
379
379
  return t3;
380
380
  }(e2)
381
381
  );
382
- set_signal_status(e2, (J || e2.f & _) && null !== e2.deps ? m : g), e2.equals(t2) || (e2.v = t2, e2.wv = increment_write_version());
382
+ set_signal_status(e2, (Y || e2.f & _) && null !== e2.deps ? m : g), e2.equals(t2) || (e2.v = t2, e2.wv = increment_write_version());
383
383
  }
384
384
  function validate_effect(e2) {
385
385
  null === H && null === F && /**
@@ -395,13 +395,13 @@ function validate_effect(e2) {
395
395
  */
396
396
  function effect_in_unowned_derived() {
397
397
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
398
- }(), W && function effect_in_teardown(e3) {
398
+ }(), z && function effect_in_teardown(e3) {
399
399
  throw new Error("https://svelte.dev/e/effect_in_teardown");
400
400
  }();
401
401
  }
402
402
  function create_effect(e2, t2, n2, o2 = true) {
403
403
  var i2 = H, s2 = {
404
- ctx: q,
404
+ ctx: T,
405
405
  deps: null,
406
406
  nodes_start: null,
407
407
  nodes_end: null,
@@ -439,10 +439,10 @@ function teardown(e2) {
439
439
  return set_signal_status(t2, g), t2.teardown = e2, t2;
440
440
  }
441
441
  function user_effect(e2) {
442
- if (validate_effect(), !(null !== H && !!(H.f & f) && null !== q && !q.m)) return effect(e2);
442
+ if (validate_effect(), !(null !== H && !!(H.f & f) && null !== T && !T.m)) return effect(e2);
443
443
  var t2 = (
444
444
  /** @type {ComponentContext} */
445
- q
445
+ T
446
446
  );
447
447
  (t2.e ?? (t2.e = [])).push({
448
448
  fn: e2,
@@ -456,7 +456,7 @@ function effect(e2) {
456
456
  function legacy_pre_effect(e2, t2) {
457
457
  var n2 = (
458
458
  /** @type {ComponentContextLegacy} */
459
- q
459
+ T
460
460
  ), o2 = {
461
461
  effect: null,
462
462
  ran: false
@@ -470,7 +470,7 @@ function legacy_pre_effect(e2, t2) {
470
470
  function legacy_pre_effect_reset() {
471
471
  var e2 = (
472
472
  /** @type {ComponentContextLegacy} */
473
- q
473
+ T
474
474
  );
475
475
  render_effect(() => {
476
476
  if (get$1(e2.l.r2)) {
@@ -498,7 +498,7 @@ function branch(e2, t2 = true) {
498
498
  function execute_effect_teardown(e2) {
499
499
  var t2 = e2.teardown;
500
500
  if (null !== t2) {
501
- const e3 = W, n2 = F;
501
+ const e3 = z, n2 = F;
502
502
  set_is_destroying_effect(true), set_active_reaction(null);
503
503
  try {
504
504
  t2.call(null);
@@ -595,9 +595,9 @@ function flush_tasks() {
595
595
  N = [], run_all(e2);
596
596
  }();
597
597
  }
598
- let D = false, B = false, A = null, z = false, W = false;
598
+ let B = false, D = false, A = null, W = false, z = false;
599
599
  function set_is_destroying_effect(e2) {
600
- W = e2;
600
+ z = e2;
601
601
  }
602
602
  let L = [], F = null, G = false;
603
603
  function set_active_reaction(e2) {
@@ -609,7 +609,7 @@ function set_active_effect(e2) {
609
609
  }
610
610
  let R = null;
611
611
  let V = null, K = 0, U = null;
612
- let Z = 1, Y = 0, J = false;
612
+ let Z = 1, J = 0, Y = false;
613
613
  function increment_write_version() {
614
614
  return ++Z;
615
615
  }
@@ -620,7 +620,7 @@ function check_dirtiness(e2) {
620
620
  if (t2 & m) {
621
621
  var n2 = e2.deps, o2 = !!(t2 & _);
622
622
  if (null !== n2) {
623
- var i2, s2, a2 = !!(t2 & v), l2 = o2 && null !== H && !J, c2 = n2.length;
623
+ var i2, s2, a2 = !!(t2 & v), l2 = o2 && null !== H && !Y, c2 = n2.length;
624
624
  if (a2 || l2) {
625
625
  var u2 = (
626
626
  /** @type {Derived} */
@@ -640,19 +640,19 @@ function check_dirtiness(e2) {
640
640
  s2
641
641
  ), s2.wv > e2.wv) return true;
642
642
  }
643
- o2 && (null === H || J) || set_signal_status(e2, g);
643
+ o2 && (null === H || Y) || set_signal_status(e2, g);
644
644
  }
645
645
  return false;
646
646
  }
647
647
  function handle_error(e2, t2, n2, o2) {
648
- if (D) {
649
- if (null === n2 && (D = false), /**
648
+ if (B) {
649
+ if (null === n2 && (B = false), /**
650
650
  * @param {Effect} effect
651
651
  */
652
652
  function should_rethrow_error(e3) {
653
653
  return !(e3.f & y || null !== e3.parent && e3.parent.f & p);
654
654
  }(t2)) throw e2;
655
- } else null !== n2 && (D = true), function propagate_error(e3, t3) {
655
+ } else null !== n2 && (B = true), function propagate_error(e3, t3) {
656
656
  for (var n3 = t3; null !== n3; ) {
657
657
  if (n3.f & p) try {
658
658
  return void n3.fn(e3);
@@ -661,7 +661,7 @@ function handle_error(e2, t2, n2, o2) {
661
661
  }
662
662
  n3 = n3.parent;
663
663
  }
664
- throw D = false, e3;
664
+ throw B = false, e3;
665
665
  }(e2, t2);
666
666
  }
667
667
  function schedule_possible_effect_self_invalidation(e2, t2, n2 = true) {
@@ -681,9 +681,9 @@ function schedule_possible_effect_self_invalidation(e2, t2, n2 = true) {
681
681
  }
682
682
  function update_reaction(e2) {
683
683
  var _a2;
684
- var t2 = V, n2 = K, o2 = U, i2 = F, s2 = J, a2 = R, l2 = q, c2 = G, u2 = e2.f;
684
+ var t2 = V, n2 = K, o2 = U, i2 = F, s2 = Y, a2 = R, l2 = T, c2 = G, u2 = e2.f;
685
685
  V = /** @type {null | Value[]} */
686
- null, K = 0, U = null, J = !!(u2 & _) && (G || !z || null === F), F = 96 & u2 ? null : e2, R = null, set_component_context(e2.ctx), G = false, Y++;
686
+ null, K = 0, U = null, Y = !!(u2 & _) && (G || !W || null === F), F = 96 & u2 ? null : e2, R = null, set_component_context(e2.ctx), G = false, J++;
687
687
  try {
688
688
  var f2 = (
689
689
  /** @type {Function} */
@@ -694,7 +694,7 @@ function update_reaction(e2) {
694
694
  var p2;
695
695
  if (remove_reactions(e2, K), null !== d2 && K > 0) for (d2.length = K + V.length, p2 = 0; p2 < V.length; p2++) d2[K + p2] = V[p2];
696
696
  else e2.deps = d2 = V;
697
- if (!J) for (p2 = K; p2 < d2.length; p2++) ((_a2 = d2[p2]).reactions ?? (_a2.reactions = [])).push(e2);
697
+ if (!Y) for (p2 = K; p2 < d2.length; p2++) ((_a2 = d2[p2]).reactions ?? (_a2.reactions = [])).push(e2);
698
698
  } else null !== d2 && K < d2.length && (remove_reactions(e2, K), d2.length = K);
699
699
  if (is_runes() && null !== U && !G && null !== d2 && !(6146 & e2.f)) for (p2 = 0; p2 < /** @type {Source[]} */
700
700
  U.length; p2++) schedule_possible_effect_self_invalidation(
@@ -702,9 +702,9 @@ function update_reaction(e2) {
702
702
  /** @type {Effect} */
703
703
  e2
704
704
  );
705
- return null !== i2 && Y++, f2;
705
+ return null !== i2 && J++, f2;
706
706
  } finally {
707
- V = t2, K = n2, U = o2, F = i2, J = s2, R = a2, set_component_context(l2), G = c2;
707
+ V = t2, K = n2, U = o2, F = i2, Y = s2, R = a2, set_component_context(l2), G = c2;
708
708
  }
709
709
  }
710
710
  function remove_reaction(e2, t2) {
@@ -742,8 +742,8 @@ function update_effect(t2) {
742
742
  var n2 = t2.f;
743
743
  if (!(n2 & y)) {
744
744
  set_signal_status(t2, g);
745
- var o2 = H, i2 = q, s2 = z;
746
- H = t2, z = true;
745
+ var o2 = H, i2 = T, s2 = W;
746
+ H = t2, W = true;
747
747
  try {
748
748
  16 & n2 ? function destroy_block_effect_children(e2) {
749
749
  for (var t3 = e2.first; null !== t3; ) {
@@ -758,7 +758,7 @@ function update_effect(t2) {
758
758
  } catch (e2) {
759
759
  handle_error(e2, t2, o2, i2 || t2.ctx);
760
760
  } finally {
761
- z = s2, H = o2;
761
+ W = s2, H = o2;
762
762
  }
763
763
  }
764
764
  }
@@ -773,10 +773,10 @@ function infinite_loop_guard() {
773
773
  }
774
774
  }
775
775
  function flush_queued_root_effects() {
776
- var e2 = z;
776
+ var e2 = W;
777
777
  try {
778
778
  var t2 = 0;
779
- for (z = true; L.length > 0; ) {
779
+ for (W = true; L.length > 0; ) {
780
780
  t2++ > 1e3 && infinite_loop_guard();
781
781
  var n2 = L, o2 = n2.length;
782
782
  L = [];
@@ -785,7 +785,7 @@ function flush_queued_root_effects() {
785
785
  }
786
786
  }
787
787
  } finally {
788
- B = false, z = e2, A = null;
788
+ D = false, W = e2, A = null;
789
789
  }
790
790
  }
791
791
  function flush_queued_effects(e2) {
@@ -811,7 +811,7 @@ function flush_queued_effects(e2) {
811
811
  }
812
812
  }
813
813
  function schedule_effect(e2) {
814
- B || (B = true, queueMicrotask(flush_queued_root_effects));
814
+ D || (D = true, queueMicrotask(flush_queued_root_effects));
815
815
  for (var t2 = A = e2; null !== t2.parent; ) {
816
816
  var n2 = (t2 = t2.parent).f;
817
817
  if (96 & n2) {
@@ -852,7 +852,7 @@ async function tick() {
852
852
  await Promise.resolve(), // By calling flushSync we guarantee that any pending state changes are applied after one tick.
853
853
  // TODO look into whether we can make flushing subsequent updates synchronously in the future.
854
854
  function flushSync(e2) {
855
- for (flush_tasks(); L.length > 0; ) B = true, flush_queued_root_effects(), flush_tasks();
855
+ for (flush_tasks(); L.length > 0; ) D = true, flush_queued_root_effects(), flush_tasks();
856
856
  }();
857
857
  }
858
858
  function get$1(e2) {
@@ -875,10 +875,10 @@ function get$1(e2) {
875
875
  throw new Error("https://svelte.dev/e/state_unsafe_local_read");
876
876
  }();
877
877
  var i2 = F.deps;
878
- e2.rv < Y && (e2.rv = Y, // If the signal is accessing the same dependencies in the same
878
+ e2.rv < J && (e2.rv = J, // If the signal is accessing the same dependencies in the same
879
879
  // order as it did last time, increment `skipped_deps`
880
880
  // rather than updating `new_deps`, which creates GC cost
881
- null === V && null !== i2 && i2[K] === e2 ? K++ : null === V ? V = [e2] : J && V.includes(e2) || // Normally we can push duplicated dependencies to `new_deps`, but if we're inside
881
+ null === V && null !== i2 && i2[K] === e2 ? K++ : null === V ? V = [e2] : Y && V.includes(e2) || // Normally we can push duplicated dependencies to `new_deps`, but if we're inside
882
882
  // an unowned derived because skip_reaction is true, then we need to ensure that
883
883
  // we don't have duplicates
884
884
  V.push(e2));
@@ -1103,7 +1103,7 @@ function template(e2, t2) {
1103
1103
  /* @__PURE__ */ get_first_child(n2)));
1104
1104
  var t3 = (
1105
1105
  /** @type {TemplateNode} */
1106
- i2 || T ? document.importNode(n2, true) : n2.cloneNode(true)
1106
+ i2 || P ? document.importNode(n2, true) : n2.cloneNode(true)
1107
1107
  );
1108
1108
  o2 ? assign_nodes(
1109
1109
  /** @type {TemplateNode} */
@@ -1166,8 +1166,8 @@ function mount(e2, t2) {
1166
1166
  * where these globals are not available while avoiding a separate server entry point
1167
1167
  */
1168
1168
  function init_operations() {
1169
- if (void 0 === I) {
1170
- I = window, P = document, T = /Firefox/.test(navigator.userAgent);
1169
+ if (void 0 === q) {
1170
+ q = window, I = document, P = /Firefox/.test(navigator.userAgent);
1171
1171
  var e4 = Element.prototype, t4 = Node.prototype;
1172
1172
  O = s(t4, "firstChild").get, // @ts-ignore
1173
1173
  E = s(t4, "nextSibling").get, // the following assignments improve perf of lookups on DOM nodes
@@ -1218,7 +1218,7 @@ function mount(e2, t2) {
1218
1218
  var o2 = n2 ?? t3.appendChild(create_text());
1219
1219
  return branch(() => {
1220
1220
  l2 && (push({}), /** @type {ComponentContext} */
1221
- q.c = l2);
1221
+ T.c = l2);
1222
1222
  a2 && // We can't spread the object or else we'd lose the state proxy stuff, if it is one
1223
1223
  /** @type {any} */
1224
1224
  (i2.$$events = a2), se = c2, // @ts-expect-error the public typings are not what the actual function looks like
@@ -1300,10 +1300,10 @@ function each(e2, n2, i2, s2, a2, l2 = null) {
1300
1300
  if (x2.length < k2.length) {
1301
1301
  var C2, S2 = k2[0];
1302
1302
  w2 = S2.prev;
1303
- var M2 = x2[0], q2 = x2[x2.length - 1];
1303
+ var M2 = x2[0], T2 = x2[x2.length - 1];
1304
1304
  for (C2 = 0; C2 < x2.length; C2 += 1) move(x2[C2], S2, n3);
1305
1305
  for (C2 = 0; C2 < k2.length; C2 += 1) c3.delete(k2[C2]);
1306
- link(t3, M2.prev, q2.next), link(t3, w2, M2), link(t3, q2, S2), $2 = S2, w2 = q2, _2 -= 1, x2 = [], k2 = [];
1306
+ link(t3, M2.prev, T2.next), link(t3, w2, M2), link(t3, T2, S2), $2 = S2, w2 = T2, _2 -= 1, x2 = [], k2 = [];
1307
1307
  } else
1308
1308
  c3.delete(p3), move(p3, $2, n3), link(t3, p3.prev, p3.next), link(t3, p3, null === w2 ? t3.first : w2.next), link(t3, w2, p3), w2 = p3;
1309
1309
  continue;
@@ -1321,14 +1321,14 @@ function each(e2, n2, i2, s2, a2, l2 = null) {
1321
1321
  ) : n3, t3, w2, null === w2 ? t3.first : w2.next, f3, d3, _2, i3, s3, l3), m2.set(d3, w2), x2 = [], k2 = [], $2 = w2.next;
1322
1322
  }
1323
1323
  if (null !== $2 || void 0 !== c3) {
1324
- for (var I2 = void 0 === c3 ? [] : o(c3); null !== $2; )
1325
- $2.e.f & b || I2.push($2), $2 = $2.next;
1326
- var P2 = I2.length;
1327
- if (P2 > 0) {
1328
- var T2 = 4 & s3 && 0 === h2 ? n3 : null;
1324
+ for (var q2 = void 0 === c3 ? [] : o(c3); null !== $2; )
1325
+ $2.e.f & b || q2.push($2), $2 = $2.next;
1326
+ var I2 = q2.length;
1327
+ if (I2 > 0) {
1328
+ var P2 = 4 & s3 && 0 === h2 ? n3 : null;
1329
1329
  if (v2) {
1330
- for (_2 = 0; _2 < P2; _2 += 1) (_c2 = I2[_2].a) == null ? void 0 : _c2.measure();
1331
- for (_2 = 0; _2 < P2; _2 += 1) (_d = I2[_2].a) == null ? void 0 : _d.fix();
1330
+ for (_2 = 0; _2 < I2; _2 += 1) (_c2 = q2[_2].a) == null ? void 0 : _c2.measure();
1331
+ for (_2 = 0; _2 < I2; _2 += 1) (_d = q2[_2].a) == null ? void 0 : _d.fix();
1332
1332
  }
1333
1333
  !function pause_effects(e5, t4, n4, o2) {
1334
1334
  for (var i4 = [], s4 = t4.length, a4 = 0; a4 < s4; a4++) pause_children(t4[a4].e, i4, true);
@@ -1352,7 +1352,7 @@ function each(e2, n2, i2, s2, a2, l2 = null) {
1352
1352
  l4 || (o2.delete(i5.k), link(e5, i5.prev, i5.next)), destroy_effect(i5.e, !l4);
1353
1353
  }
1354
1354
  });
1355
- }(t3, I2, T2, m2);
1355
+ }(t3, q2, P2, m2);
1356
1356
  }
1357
1357
  }
1358
1358
  v2 && queue_micro_task(() => {
@@ -1845,7 +1845,7 @@ function bind_this(e2 = {}, t2, n2, o2) {
1845
1845
  function init(e2 = false) {
1846
1846
  const t2 = (
1847
1847
  /** @type {ComponentContextLegacy} */
1848
- q
1848
+ T
1849
1849
  ), n2 = t2.l.u;
1850
1850
  if (!n2) return;
1851
1851
  let props = () => deep_read_state(t2.s);
@@ -2129,7 +2129,7 @@ function prop(e2, t2, n2, o2) {
2129
2129
  };
2130
2130
  }
2131
2131
  function onMount(e2) {
2132
- null === q && lifecycle_outside_component(), S && null !== q.l ? (
2132
+ null === T && lifecycle_outside_component(), S && null !== T.l ? (
2133
2133
  /**
2134
2134
  * Legacy-mode: Init callbacks object for onMount/beforeUpdate/afterUpdate
2135
2135
  * @param {ComponentContext} context
@@ -2144,7 +2144,7 @@ function onMount(e2) {
2144
2144
  b: [],
2145
2145
  m: []
2146
2146
  });
2147
- }(q).m.push(e2)
2147
+ }(T).m.push(e2)
2148
2148
  ) : user_effect(() => {
2149
2149
  const t2 = untrack(e2);
2150
2150
  if ("function" == typeof t2) return t2;
@@ -2382,7 +2382,7 @@ function scale(e2, { delay: t2 = 0, duration: n2 = 400, easing: o2 = cubic_out,
2382
2382
  };
2383
2383
  }
2384
2384
  delegate(["click"]);
2385
- var Ce = /* @__PURE__ */ ns_template('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>'), Se = /* @__PURE__ */ ns_template('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>'), Me = /* @__PURE__ */ ns_template('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>'), qe = /* @__PURE__ */ ns_template('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');
2385
+ var Ce = /* @__PURE__ */ ns_template('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>'), Se = /* @__PURE__ */ ns_template('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>'), Me = /* @__PURE__ */ ns_template('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>'), Te = /* @__PURE__ */ ns_template('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');
2386
2386
  function Icon(e2, t2) {
2387
2387
  let n2 = prop(t2, "type", 8, "success");
2388
2388
  var o2 = comment(), i2 = first_child(o2), consequent = (e3) => {
@@ -2395,7 +2395,7 @@ function Icon(e2, t2) {
2395
2395
  append(e5, Me());
2396
2396
  }, alternate_2 = (e5, t5) => {
2397
2397
  var consequent_3 = (e6) => {
2398
- append(e6, qe());
2398
+ append(e6, Te());
2399
2399
  }, alternate_3 = (e6) => {
2400
2400
  };
2401
2401
  if_block(e5, (e6) => {
@@ -2414,30 +2414,30 @@ function Icon(e2, t2) {
2414
2414
  "success" === n2() ? e3(consequent) : e3(alternate, false);
2415
2415
  }), append(e2, o2);
2416
2416
  }
2417
- var Ie = /* @__PURE__ */ template('<div class="sonner-loading-bar"></div>'), Pe = /* @__PURE__ */ template('<div class="sonner-loading-wrapper"><div class="sonner-spinner"></div></div>');
2417
+ var qe = /* @__PURE__ */ template('<div class="sonner-loading-bar"></div>'), Ie = /* @__PURE__ */ template('<div class="sonner-loading-wrapper"><div class="sonner-spinner"></div></div>');
2418
2418
  function Loader(e2, t2) {
2419
2419
  push(t2, false);
2420
2420
  let n2 = prop(t2, "visible", 8);
2421
2421
  const o2 = Array(12).fill(0);
2422
2422
  init();
2423
- var i2 = Pe();
2423
+ var i2 = Ie();
2424
2424
  each(child(i2), 5, () => o2, index, (e3, t3) => {
2425
- append(e3, Ie());
2425
+ append(e3, qe());
2426
2426
  }), template_effect(() => set_attribute(i2, "data-visible", n2())), append(e2, i2), pop();
2427
2427
  }
2428
2428
  function cn(...e2) {
2429
2429
  return e2.filter(Boolean).join(" ");
2430
2430
  }
2431
- const Te = "undefined" != typeof document;
2431
+ const Pe = "undefined" != typeof document;
2432
2432
  function clientWritable(e2) {
2433
2433
  const t2 = writable(e2);
2434
2434
  return {
2435
2435
  subscribe: t2.subscribe,
2436
2436
  set: function set2(e3) {
2437
- Te && t2.set(e3);
2437
+ Pe && t2.set(e3);
2438
2438
  },
2439
2439
  update: function update2(e3) {
2440
- Te && t2.update(e3);
2440
+ Pe && t2.update(e3);
2441
2441
  }
2442
2442
  };
2443
2443
  }
@@ -2623,7 +2623,7 @@ const je = function toastFunction(e2, t2) {
2623
2623
  dismiss: Ee.dismiss,
2624
2624
  loading: Ee.loading
2625
2625
  });
2626
- var De = /* @__PURE__ */ template('<button aria-label="Close toast" data-close-button=""><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg></button>'), Be = /* @__PURE__ */ template('<div data-icon=""><!> <!></div>'), Ae = /* @__PURE__ */ template('<div data-title=""><!></div>'), ze = /* @__PURE__ */ template('<div data-description=""><!></div>'), We = /* @__PURE__ */ template('<button data-button="" data-cancel=""> </button>'), Le = /* @__PURE__ */ template('<button data-button=""> </button>'), Fe = /* @__PURE__ */ template('<!> <div data-content=""><!> <!></div> <!> <!>', 1), Ge = /* @__PURE__ */ template('<li aria-atomic="true" role="status" data-sonner-toast=""><!> <!></li>');
2626
+ var Be = /* @__PURE__ */ template('<button aria-label="Close toast" data-close-button=""><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg></button>'), De = /* @__PURE__ */ template('<div data-icon=""><!> <!></div>'), Ae = /* @__PURE__ */ template('<div data-title=""><!></div>'), We = /* @__PURE__ */ template('<div data-description=""><!></div>'), ze = /* @__PURE__ */ template('<button data-button="" data-cancel=""> </button>'), Le = /* @__PURE__ */ template('<button data-button=""> </button>'), Fe = /* @__PURE__ */ template('<!> <div data-content=""><!> <!></div> <!> <!>', 1), Ge = /* @__PURE__ */ template('<li aria-atomic="true" role="status" data-sonner-toast=""><!> <!></li>');
2627
2627
  function Toast(e2, t2) {
2628
2628
  const n2 = legacy_rest_props(t2, ["children", "$$slots", "$$events", "$$legacy"]);
2629
2629
  push(t2, false);
@@ -2643,38 +2643,38 @@ function Toast(e2, t2) {
2643
2643
  info: "",
2644
2644
  loading: ""
2645
2645
  }, { toasts: b2, heights: y2, removeHeight: $2, setHeight: w2, remove: x2 } = Ee;
2646
- let k2 = prop(t2, "toast", 9), C2 = prop(t2, "index", 9), S2 = prop(t2, "expanded", 9), M2 = prop(t2, "invert", 13), q2 = prop(t2, "position", 9), I2 = prop(t2, "visibleToasts", 9), P2 = prop(t2, "expandByDefault", 9), T2 = prop(t2, "closeButton", 9), O2 = prop(t2, "interacting", 9), E2 = prop(t2, "cancelButtonStyle", 9, ""), j2 = prop(t2, "actionButtonStyle", 9, ""), N2 = prop(t2, "duration", 9, 4e3), D2 = prop(t2, "descriptionClass", 9, ""), B2 = prop(t2, "classes", 29, () => ({})), A2 = prop(t2, "unstyled", 9, false), z2 = mutable_state(false, true), W2 = mutable_state(false, true), L2 = mutable_state(false, true), F2 = mutable_state(false, true), G2 = mutable_state(0, true), H2 = mutable_state(0, true), R2 = mutable_state(void 0, true), V2 = mutable_state(0, true), K2 = 0, U2 = 0, Z2 = null;
2646
+ let k2 = prop(t2, "toast", 9), C2 = prop(t2, "index", 9), S2 = prop(t2, "expanded", 9), M2 = prop(t2, "invert", 13), T2 = prop(t2, "position", 9), q2 = prop(t2, "visibleToasts", 9), I2 = prop(t2, "expandByDefault", 9), P2 = prop(t2, "closeButton", 9), O2 = prop(t2, "interacting", 9), E2 = prop(t2, "cancelButtonStyle", 9, ""), j2 = prop(t2, "actionButtonStyle", 9, ""), N2 = prop(t2, "duration", 9, 4e3), B2 = prop(t2, "descriptionClass", 9, ""), D2 = prop(t2, "classes", 29, () => ({})), A2 = prop(t2, "unstyled", 9, false), W2 = mutable_state(false, true), z2 = mutable_state(false, true), L2 = mutable_state(false, true), F2 = mutable_state(false, true), G2 = mutable_state(0, true), H2 = mutable_state(0, true), R2 = mutable_state(void 0, true), V2 = mutable_state(0, true), K2 = 0, U2 = 0, Z2 = null;
2647
2647
  function deleteToast() {
2648
- set(W2, true), // Save the offset for the exit swipe animation
2648
+ set(z2, true), // Save the offset for the exit swipe animation
2649
2649
  set(G2, get$1(V2)), $2(k2().id), setTimeout(() => {
2650
2650
  x2(k2().id);
2651
2651
  }, 200);
2652
2652
  }
2653
- let Y2 = mutable_state(void 0, true), J2 = mutable_state(k2().duration || N2() || 4e3, true);
2653
+ let J2 = mutable_state(void 0, true), Y2 = mutable_state(k2().duration || N2() || 4e3, true);
2654
2654
  function startTimer() {
2655
2655
  K2 = (/* @__PURE__ */ new Date()).getTime(), // Let the toast know it has started
2656
- set(Y2, setTimeout(() => {
2656
+ set(J2, setTimeout(() => {
2657
2657
  var _a2, _b2;
2658
2658
  (_b2 = (_a2 = k2()).onAutoClose) == null ? void 0 : _b2.call(_a2, k2()), deleteToast();
2659
- }, get$1(J2)));
2659
+ }, get$1(Y2)));
2660
2660
  }
2661
2661
  let Q2 = mutable_state(void 0, true);
2662
2662
  onMount(() => {
2663
- set(z2, true);
2663
+ set(W2, true);
2664
2664
  const e3 = get$1(R2).getBoundingClientRect().height;
2665
2665
  return set(H2, e3), w2({
2666
2666
  toastId: k2().id,
2667
2667
  height: e3
2668
2668
  }), () => $2(k2().id);
2669
- }), legacy_pre_effect(() => deep_read_state(B2()), () => {
2670
- B2({
2669
+ }), legacy_pre_effect(() => deep_read_state(D2()), () => {
2670
+ D2({
2671
2671
  ...m2,
2672
- ...B2()
2672
+ ...D2()
2673
2673
  });
2674
2674
  }), legacy_pre_effect(() => deep_read_state(C2()), () => {
2675
2675
  set(s2, 0 === C2());
2676
- }), legacy_pre_effect(() => (deep_read_state(C2()), deep_read_state(I2())), () => {
2677
- set(a2, C2() + 1 <= I2());
2676
+ }), legacy_pre_effect(() => (deep_read_state(C2()), deep_read_state(q2())), () => {
2677
+ set(a2, C2() + 1 <= q2());
2678
2678
  }), legacy_pre_effect(() => deep_read_state(k2()), () => {
2679
2679
  set(l2, k2().title);
2680
2680
  }), legacy_pre_effect(() => deep_read_state(k2()), () => {
@@ -2687,8 +2687,8 @@ function Toast(e2, t2) {
2687
2687
  set(d2, k2().descriptionClass || "");
2688
2688
  }), legacy_pre_effect(() => ($heights(), deep_read_state(k2())), () => {
2689
2689
  set(p2, $heights().findIndex((e3) => e3.toastId === k2().id) || 0);
2690
- }), legacy_pre_effect(() => deep_read_state(q2()), () => {
2691
- set(_2, q2().split("-"));
2690
+ }), legacy_pre_effect(() => deep_read_state(T2()), () => {
2691
+ set(_2, T2().split("-"));
2692
2692
  }), legacy_pre_effect(() => ($heights(), get$1(p2)), () => {
2693
2693
  set(v2, $heights().reduce((e3, t3, n3) => (
2694
2694
  // Calculate offset up untill current toast
@@ -2703,9 +2703,9 @@ function Toast(e2, t2) {
2703
2703
  }), legacy_pre_effect(() => (get$1(l2), get$1(c2)), () => {
2704
2704
  get$1(l2), get$1(c2), // Listen to height changes
2705
2705
  async function updateHeights() {
2706
- if (!get$1(z2)) return;
2706
+ if (!get$1(W2)) return;
2707
2707
  let e3;
2708
- await tick(), e3 = S2() || P2() ? 1 : 1 - 0.05 * C2(), get$1(R2).style.setProperty("height", "auto");
2708
+ await tick(), e3 = S2() || I2() ? 1 : 1 - 0.05 * C2(), get$1(R2).style.setProperty("height", "auto");
2709
2709
  const t3 = get$1(R2).offsetHeight, n3 = get$1(R2).getBoundingClientRect().height, o3 = Math.round(100 * (n3 / e3 + Number.EPSILON)) / 100;
2710
2710
  let i3;
2711
2711
  get$1(R2).style.removeProperty("height"), // Use scaledRectHeight as it's more precise
@@ -2714,14 +2714,14 @@ function Toast(e2, t2) {
2714
2714
  height: i3
2715
2715
  });
2716
2716
  }();
2717
- }), legacy_pre_effect(() => (deep_read_state(k2()), get$1(Y2), deep_read_state(N2())), () => {
2717
+ }), legacy_pre_effect(() => (deep_read_state(k2()), get$1(J2), deep_read_state(N2())), () => {
2718
2718
  k2().updated && // if the toast has been updated after the initial render,
2719
2719
  // we want to reset the timer and set the remaining time to the
2720
2720
  // new duration
2721
- (clearTimeout(get$1(Y2)), set(J2, k2().duration || N2() || 4e3), startTimer());
2721
+ (clearTimeout(get$1(J2)), set(Y2, k2().duration || N2() || 4e3), startTimer());
2722
2722
  }), legacy_pre_effect(() => (deep_read_state(k2()), get$1(u2)), () => {
2723
2723
  set(h2, k2().promise && "loading" === get$1(u2) || k2().duration === Number.POSITIVE_INFINITY);
2724
- }), legacy_pre_effect(() => (get$1(h2), deep_read_state(S2()), deep_read_state(O2()), get$1(Y2)), () => {
2724
+ }), legacy_pre_effect(() => (get$1(h2), deep_read_state(S2()), deep_read_state(O2()), get$1(J2)), () => {
2725
2725
  var e3;
2726
2726
  !function store_unsub(e4, t3, n3) {
2727
2727
  let o3 = n3[t3];
@@ -2735,11 +2735,11 @@ function Toast(e2, t2) {
2735
2735
  function pauseTimer() {
2736
2736
  if (U2 < K2) {
2737
2737
  const e4 = (/* @__PURE__ */ new Date()).getTime() - K2;
2738
- set(J2, get$1(J2) - e4);
2738
+ set(Y2, get$1(Y2) - e4);
2739
2739
  }
2740
2740
  U2 = (/* @__PURE__ */ new Date()).getTime();
2741
2741
  }()
2742
- ) : startTimer()), () => clearTimeout(get$1(Y2))), {
2742
+ ) : startTimer()), () => clearTimeout(get$1(J2))), {
2743
2743
  subscribe: e3
2744
2744
  })), "$effect", o2);
2745
2745
  }), legacy_pre_effect(() => $effect(), () => {
@@ -2751,12 +2751,12 @@ function Toast(e2, t2) {
2751
2751
  let te2;
2752
2752
  set_attribute(ee2, "tabindex", 0);
2753
2753
  var ne2 = child(ee2), consequent = (e3) => {
2754
- var t3 = De();
2754
+ var t3 = Be();
2755
2755
  template_effect((e4) => {
2756
2756
  set_attribute(t3, "data-disabled", get$1(g2)), set_class(t3, 1, e4);
2757
2757
  }, [() => {
2758
2758
  var _a2, _b2, _c2;
2759
- return clsx(cn((_a2 = B2()) == null ? void 0 : _a2.closeButton, (_c2 = (_b2 = k2()) == null ? void 0 : _b2.classes) == null ? void 0 : _c2.closeButton));
2759
+ return clsx(cn((_a2 = D2()) == null ? void 0 : _a2.closeButton, (_c2 = (_b2 = k2()) == null ? void 0 : _b2.classes) == null ? void 0 : _c2.closeButton));
2760
2760
  }], derived_safe_equal), event("click", t3, function(...e4) {
2761
2761
  var _a2;
2762
2762
  (_a2 = get$1(g2) ? void 0 : () => {
@@ -2766,7 +2766,7 @@ function Toast(e2, t2) {
2766
2766
  }), append(e3, t3);
2767
2767
  };
2768
2768
  if_block(ne2, (e3) => {
2769
- T2() && !k2().component && e3(consequent);
2769
+ P2() && !k2().component && e3(consequent);
2770
2770
  });
2771
2771
  var re2 = sibling(ne2, 2), consequent_1 = (e3) => {
2772
2772
  var t3 = comment();
@@ -2779,7 +2779,7 @@ function Toast(e2, t2) {
2779
2779
  }), append(e3, t3);
2780
2780
  }, alternate = (e3) => {
2781
2781
  var n3 = Fe(), o3 = first_child(n3), consequent_8 = (e4) => {
2782
- var n4 = Be(), o4 = child(n4), consequent_2 = (e5) => {
2782
+ var n4 = De(), o4 = child(n4), consequent_2 = (e5) => {
2783
2783
  var n5 = comment();
2784
2784
  slot(first_child(n5), t2, "loading-icon", {}, null), append(e5, n5);
2785
2785
  };
@@ -2845,14 +2845,14 @@ function Toast(e2, t2) {
2845
2845
  "string" != typeof k2().title ? e5(consequent_9) : e5(alternate_5, false);
2846
2846
  }), template_effect((e5) => set_class(t3, 1, e5), [() => {
2847
2847
  var _a2, _b2, _c2;
2848
- return clsx(cn((_a2 = B2()) == null ? void 0 : _a2.title, (_c2 = (_b2 = k2()) == null ? void 0 : _b2.classes) == null ? void 0 : _c2.title));
2848
+ return clsx(cn((_a2 = D2()) == null ? void 0 : _a2.title, (_c2 = (_b2 = k2()) == null ? void 0 : _b2.classes) == null ? void 0 : _c2.title));
2849
2849
  }], derived_safe_equal), append(e4, t3);
2850
2850
  };
2851
2851
  if_block(s3, (e4) => {
2852
2852
  k2().title && e4(consequent_10);
2853
2853
  });
2854
2854
  var a3 = sibling(s3, 2), consequent_12 = (e4) => {
2855
- var t3 = ze(), n4 = child(t3), consequent_11 = (e5) => {
2855
+ var t3 = We(), n4 = child(t3), consequent_11 = (e5) => {
2856
2856
  var t4 = comment();
2857
2857
  component(first_child(t4), () => k2().description, (e6, t5) => {
2858
2858
  t5(e6, spread_props(() => k2().componentProps));
@@ -2865,19 +2865,19 @@ function Toast(e2, t2) {
2865
2865
  "string" != typeof k2().description ? e5(consequent_11) : e5(alternate_6, false);
2866
2866
  }), template_effect((e5) => set_class(t3, 1, e5), [() => {
2867
2867
  var _a2, _b2;
2868
- return clsx(cn(D2(), get$1(d2), (_a2 = B2()) == null ? void 0 : _a2.description, (_b2 = k2().classes) == null ? void 0 : _b2.description));
2868
+ return clsx(cn(B2(), get$1(d2), (_a2 = D2()) == null ? void 0 : _a2.description, (_b2 = k2().classes) == null ? void 0 : _b2.description));
2869
2869
  }], derived_safe_equal), append(e4, t3);
2870
2870
  };
2871
2871
  if_block(a3, (e4) => {
2872
2872
  k2().description && e4(consequent_12);
2873
2873
  });
2874
2874
  var l3 = sibling(i3, 2), consequent_13 = (e4) => {
2875
- var t3 = We(), n4 = child(t3);
2875
+ var t3 = ze(), n4 = child(t3);
2876
2876
  template_effect((e5) => {
2877
2877
  set_style(t3, E2()), set_class(t3, 1, e5), set_text(n4, k2().cancel.label);
2878
2878
  }, [() => {
2879
2879
  var _a2, _b2, _c2;
2880
- return clsx(cn((_a2 = B2()) == null ? void 0 : _a2.cancelButton, (_c2 = (_b2 = k2()) == null ? void 0 : _b2.classes) == null ? void 0 : _c2.cancelButton));
2880
+ return clsx(cn((_a2 = D2()) == null ? void 0 : _a2.cancelButton, (_c2 = (_b2 = k2()) == null ? void 0 : _b2.classes) == null ? void 0 : _c2.cancelButton));
2881
2881
  }], derived_safe_equal), event("click", t3, () => {
2882
2882
  var _a2;
2883
2883
  deleteToast(), ((_a2 = k2().cancel) == null ? void 0 : _a2.onClick) && k2().cancel.onClick();
@@ -2892,7 +2892,7 @@ function Toast(e2, t2) {
2892
2892
  set_style(t3, j2()), set_class(t3, 1, e5), set_text(n4, k2().action.label);
2893
2893
  }, [() => {
2894
2894
  var _a2, _b2, _c2;
2895
- return clsx(cn((_a2 = B2()) == null ? void 0 : _a2.actionButton, (_c2 = (_b2 = k2()) == null ? void 0 : _b2.classes) == null ? void 0 : _c2.actionButton));
2895
+ return clsx(cn((_a2 = D2()) == null ? void 0 : _a2.actionButton, (_c2 = (_b2 = k2()) == null ? void 0 : _b2.classes) == null ? void 0 : _c2.actionButton));
2896
2896
  }], derived_safe_equal), event("click", t3, (e5) => {
2897
2897
  var _a2;
2898
2898
  (_a2 = k2().action) == null ? void 0 : _a2.onClick(e5), e5.defaultPrevented || deleteToast();
@@ -2906,17 +2906,17 @@ function Toast(e2, t2) {
2906
2906
  k2().component ? e3(consequent_1) : e3(alternate, false);
2907
2907
  }), bind_this(ee2, (e3) => set(R2, e3), () => get$1(R2)), template_effect((e3, t3, i3) => {
2908
2908
  var _a2;
2909
- set_attribute(ee2, "aria-live", k2().important ? "assertive" : "polite"), set_class(ee2, 1, e3), set_attribute(ee2, "data-styled", !(k2().component || ((_a2 = k2()) == null ? void 0 : _a2.unstyled) || A2())), set_attribute(ee2, "data-mounted", get$1(z2)), set_attribute(ee2, "data-promise", t3), set_attribute(ee2, "data-removed", get$1(W2)), set_attribute(ee2, "data-visible", get$1(a2)), set_attribute(ee2, "data-y-position", get$1(_2)[0]), set_attribute(ee2, "data-x-position", get$1(_2)[1]), set_attribute(ee2, "data-index", C2()), set_attribute(ee2, "data-front", get$1(s2)), set_attribute(ee2, "data-swiping", get$1(L2)), set_attribute(ee2, "data-type", get$1(u2)), set_attribute(ee2, "data-invert", M2()), set_attribute(ee2, "data-swipe-out", get$1(F2)), set_attribute(ee2, "data-expanded", i3), te2 = set_style(ee2, `${n2.style} ${k2().style}`, te2, {
2909
+ set_attribute(ee2, "aria-live", k2().important ? "assertive" : "polite"), set_class(ee2, 1, e3), set_attribute(ee2, "data-styled", !(k2().component || ((_a2 = k2()) == null ? void 0 : _a2.unstyled) || A2())), set_attribute(ee2, "data-mounted", get$1(W2)), set_attribute(ee2, "data-promise", t3), set_attribute(ee2, "data-removed", get$1(z2)), set_attribute(ee2, "data-visible", get$1(a2)), set_attribute(ee2, "data-y-position", get$1(_2)[0]), set_attribute(ee2, "data-x-position", get$1(_2)[1]), set_attribute(ee2, "data-index", C2()), set_attribute(ee2, "data-front", get$1(s2)), set_attribute(ee2, "data-swiping", get$1(L2)), set_attribute(ee2, "data-type", get$1(u2)), set_attribute(ee2, "data-invert", M2()), set_attribute(ee2, "data-swipe-out", get$1(F2)), set_attribute(ee2, "data-expanded", i3), te2 = set_style(ee2, `${n2.style} ${k2().style}`, te2, {
2910
2910
  "--index": C2(),
2911
2911
  "--toasts-before": C2(),
2912
2912
  "--z-index": store_get(b2, "$toasts", o2).length - C2(),
2913
- "--offset": `${get$1(W2) ? get$1(G2) : get$1(V2)}px`,
2913
+ "--offset": `${get$1(z2) ? get$1(G2) : get$1(V2)}px`,
2914
2914
  "--initial-height": `${get$1(H2)}px`
2915
2915
  });
2916
2916
  }, [() => {
2917
2917
  var _a2, _b2, _c2, _d, _e2, _f;
2918
- return clsx(cn(n2.class, get$1(f2), (_a2 = B2()) == null ? void 0 : _a2.toast, (_c2 = (_b2 = k2()) == null ? void 0 : _b2.classes) == null ? void 0 : _c2.toast, (_d = B2()) == null ? void 0 : _d[get$1(u2)], (_f = (_e2 = k2()) == null ? void 0 : _e2.classes) == null ? void 0 : _f[get$1(u2)]));
2919
- }, () => Boolean(k2().promise), () => Boolean(S2() || P2() && get$1(z2))], derived_safe_equal), event("pointerdown", ee2, function onPointerDown(e3) {
2918
+ return clsx(cn(n2.class, get$1(f2), (_a2 = D2()) == null ? void 0 : _a2.toast, (_c2 = (_b2 = k2()) == null ? void 0 : _b2.classes) == null ? void 0 : _c2.toast, (_d = D2()) == null ? void 0 : _d[get$1(u2)], (_f = (_e2 = k2()) == null ? void 0 : _e2.classes) == null ? void 0 : _f[get$1(u2)]));
2919
+ }, () => Boolean(k2().promise), () => Boolean(S2() || I2() && get$1(W2))], derived_safe_equal), event("pointerdown", ee2, function onPointerDown(e3) {
2920
2920
  if (get$1(g2)) return;
2921
2921
  set(G2, get$1(V2));
2922
2922
  const t3 = e3.target;
@@ -2952,9 +2952,9 @@ function Toaster(e2, t2) {
2952
2952
  }
2953
2953
  let f2 = prop(t2, "invert", 8, false), d2 = prop(t2, "theme", 8, "light"), p2 = prop(t2, "position", 8, "bottom-right"), _2 = prop(t2, "hotkey", 24, () => ["altKey", "KeyT"]), v2 = prop(t2, "containerAriaLabel", 8, "Notifications"), g2 = prop(t2, "richColors", 8, false), h2 = prop(t2, "expand", 8, false), m2 = prop(t2, "duration", 8, 4e3), b2 = prop(t2, "visibleToasts", 8, 3), y2 = prop(t2, "closeButton", 8, false), $2 = prop(t2, "toastOptions", 24, () => ({})), w2 = prop(t2, "offset", 8, null), x2 = prop(t2, "dir", 24, getDocumentDirection);
2954
2954
  const { toasts: k2, heights: C2, reset: S2 } = Ee;
2955
- let M2 = mutable_state(false), I2 = mutable_state(false), P2 = mutable_state(function getInitialTheme(e3) {
2955
+ let M2 = mutable_state(false), q2 = mutable_state(false), I2 = mutable_state(function getInitialTheme(e3) {
2956
2956
  return "system" !== e3 ? e3 : "undefined" != typeof window && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? c2 : u2;
2957
- }(d2())), T2 = mutable_state(), O2 = null, E2 = false;
2957
+ }(d2())), P2 = mutable_state(), O2 = null, E2 = false;
2958
2958
  function handleBlur(e3) {
2959
2959
  E2 && !e3.currentTarget.contains(e3.relatedTarget) && (E2 = false, O2 && (O2.focus({
2960
2960
  preventScroll: true
@@ -2964,9 +2964,9 @@ function Toaster(e2, t2) {
2964
2964
  E2 || (E2 = true, O2 = e3.relatedTarget);
2965
2965
  }
2966
2966
  !function onDestroy(e3) {
2967
- null === q && lifecycle_outside_component(), onMount(() => () => untrack(e3));
2967
+ null === T && lifecycle_outside_component(), onMount(() => () => untrack(e3));
2968
2968
  }(() => {
2969
- get$1(T2) && O2 && (O2.focus({
2969
+ get$1(P2) && O2 && (O2.focus({
2970
2970
  preventScroll: true
2971
2971
  }), O2 = null, E2 = false);
2972
2972
  }), onMount(() => {
@@ -2976,7 +2976,7 @@ function Toaster(e2, t2) {
2976
2976
  _2().every((t3) => (
2977
2977
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2978
2978
  e3[t3] || e3.code === t3
2979
- )) && (set(M2, true), (_a2 = get$1(T2)) == null ? void 0 : _a2.focus()), "Escape" !== e3.code || document.activeElement !== get$1(T2) && !((_b2 = get$1(T2)) == null ? void 0 : _b2.contains(document.activeElement)) || set(M2, false);
2979
+ )) && (set(M2, true), (_a2 = get$1(P2)) == null ? void 0 : _a2.focus()), "Escape" !== e3.code || document.activeElement !== get$1(P2) && !((_b2 = get$1(P2)) == null ? void 0 : _b2.contains(document.activeElement)) || set(M2, false);
2980
2980
  };
2981
2981
  return document.addEventListener("keydown", handleKeydown), () => {
2982
2982
  document.removeEventListener("keydown", handleKeydown);
@@ -2997,17 +2997,17 @@ function Toaster(e2, t2) {
2997
2997
  k2.set(t3);
2998
2998
  }
2999
2999
  }), legacy_pre_effect(() => deep_read_state(d2()), () => {
3000
- if ("system" !== d2() && set(P2, d2()), "undefined" != typeof window) {
3000
+ if ("system" !== d2() && set(I2, d2()), "undefined" != typeof window) {
3001
3001
  "system" === d2() && // check if current preference is dark
3002
3002
  (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? (
3003
3003
  // it's currently dark
3004
- set(P2, c2)
3004
+ set(I2, c2)
3005
3005
  ) : (
3006
3006
  // it's not dark
3007
- set(P2, u2)
3007
+ set(I2, u2)
3008
3008
  ));
3009
3009
  const e3 = window.matchMedia("(prefers-color-scheme: dark)"), changeHandler = ({ matches: e4 }) => {
3010
- set(P2, e4 ? c2 : u2);
3010
+ set(I2, e4 ? c2 : u2);
3011
3011
  };
3012
3012
  "addEventListener" in e3 ? e3.addEventListener("change", changeHandler) : (
3013
3013
  // @ts-expect-error deprecated API
@@ -3054,7 +3054,7 @@ function Toaster(e2, t2) {
3054
3054
  return y2();
3055
3055
  },
3056
3056
  get interacting() {
3057
- return get$1(I2);
3057
+ return get$1(q2);
3058
3058
  },
3059
3059
  get position() {
3060
3060
  return get$1(s4);
@@ -3132,13 +3132,13 @@ function Toaster(e2, t2) {
3132
3132
  }
3133
3133
  }
3134
3134
  });
3135
- }), bind_this(c3, (e5) => set(T2, e5), () => get$1(T2)), template_effect((e5, t3, s5) => {
3135
+ }), bind_this(c3, (e5) => set(P2, e5), () => get$1(P2)), template_effect((e5, t3, s5) => {
3136
3136
  var _a2;
3137
3137
  u3 = set_attributes(c3, u3, {
3138
3138
  tabIndex: -1,
3139
3139
  class: n2.class,
3140
3140
  "data-sonner-toaster": true,
3141
- "data-theme": get$1(P2),
3141
+ "data-theme": get$1(I2),
3142
3142
  "data-rich-colors": g2(),
3143
3143
  dir: e5,
3144
3144
  "data-y-position": t3,
@@ -3153,8 +3153,8 @@ function Toaster(e2, t2) {
3153
3153
  }
3154
3154
  }, "svelte-1fo5d1m"), c3.dir = c3.dir;
3155
3155
  }, [() => "auto" === x2() ? getDocumentDirection() : x2(), () => get$1(s4).split("-")[0], () => get$1(s4).split("-")[1]], derived_safe_equal), event("blur", c3, handleBlur), event("focus", c3, handleFocus), event("mouseenter", c3, () => set(M2, true)), event("mousemove", c3, () => set(M2, true)), event("mouseleave", c3, () => {
3156
- get$1(I2) || set(M2, false);
3157
- }), event("pointerdown", c3, () => set(I2, true)), event("pointerup", c3, () => set(I2, false)), append(e4, c3);
3156
+ get$1(q2) || set(M2, false);
3157
+ }), event("pointerdown", c3, () => set(q2, true)), event("pointerup", c3, () => set(q2, false)), append(e4, c3);
3158
3158
  }), template_effect(() => set_attribute(s3, "aria-label", `${v2()} ${get$1(l2)}`)), append(e3, s3);
3159
3159
  };
3160
3160
  if_block(N2, (e3) => {
@@ -3170,7 +3170,7 @@ function playGame(e2, t2) {
3170
3170
  var _a2;
3171
3171
  e2.stopPropagation(), e2.preventDefault(), (_a2 = t2.onClick) == null ? void 0 : _a2.call(t2, t2.game.id), window.open("https://" + t2.game.domain, "_blank", "noopener");
3172
3172
  }
3173
- var Ue = /* @__PURE__ */ template('<div><p class="text-primary font-bold uppercase">New</p></div>'), Ze = /* @__PURE__ */ template('<video playsinline="" loop preload="auto"></video>', 2), Ye = /* @__PURE__ */ template("<button>Play</button>"), Je = /* @__PURE__ */ template('<div class="bg-background/75 text-foreground absolute right-0 bottom-0 left-0 z-11 flex max-h-1/3 flex-col overflow-hidden backdrop-blur-xl"><div class="hide-scrollbar h-full w-full overflow-y-auto p-3 svelte-rulnq9"><h3 class="mb-2 truncate text-center text-lg font-bold"> </h3> <p class="text-muted-foreground mb-4 text-center text-sm text-balance"> </p></div> <div class="fade-mask bg-background/75 pointer-events-none absolute right-0 bottom-0 left-0 h-8 svelte-rulnq9"></div></div>'), Xe = /* @__PURE__ */ template('<div role="button" tabindex="0"><!> <!> <img alt="cover" loading="eager"> <!> <!> <img alt="game logo" loading="eager"></div>');
3173
+ var Ue = /* @__PURE__ */ template('<div><p class="text-primary font-bold uppercase">New</p></div>'), Ze = /* @__PURE__ */ template('<video playsinline="" loop preload="auto"></video>', 2), Je = /* @__PURE__ */ template("<button>Play</button>"), Xe = /* @__PURE__ */ template('<div class="bg-background/75 text-foreground absolute right-0 bottom-0 left-0 z-11 flex max-h-1/3 flex-col overflow-hidden backdrop-blur-xl"><div class="hide-scrollbar h-full w-full overflow-y-auto p-3 svelte-rulnq9"><h3 class="mb-2 truncate text-center text-lg font-bold"> </h3> <p class="text-muted-foreground mb-4 text-center text-sm text-balance"> </p></div> <div class="fade-mask bg-background/75 pointer-events-none absolute right-0 bottom-0 left-0 h-8 svelte-rulnq9"></div></div>'), Ye = /* @__PURE__ */ template('<div role="button" tabindex="0"><!> <!> <img alt="cover" loading="eager"> <!> <!> <img alt="game logo" loading="eager"></div>');
3174
3174
  function GameCard(e2, t2) {
3175
3175
  push(t2, true);
3176
3176
  const [n2, o2] = setup_stores();
@@ -3191,8 +3191,8 @@ function GameCard(e2, t2) {
3191
3191
  user_effect(() => {
3192
3192
  set(u2, "ontouchstart" in window);
3193
3193
  });
3194
- var d2 = Xe();
3195
- event("touchstart", I, () => set(u2, true), void 0, true), event("touchstart", P, function handleDocumentTouch(e3) {
3194
+ var d2 = Ye();
3195
+ event("touchstart", q, () => set(u2, true), void 0, true), event("touchstart", I, function handleDocumentTouch(e3) {
3196
3196
  get$1(f2) && !get$1(f2).contains(e3.target) && set(i2, false);
3197
3197
  }, void 0, true), d2.__touchstart = handleMouseEnter, d2.__click = [handleClick, u2, t2];
3198
3198
  var p2 = child(d2), consequent = (e3) => {
@@ -3226,7 +3226,7 @@ function GameCard(e2, t2) {
3226
3226
  var v2 = sibling(_2, 2);
3227
3227
  let g2;
3228
3228
  var h2 = sibling(v2, 2), consequent_2 = (e3) => {
3229
- var n3 = Ye();
3229
+ var n3 = Je();
3230
3230
  let o3;
3231
3231
  n3.__click = [playGame, t2], template_effect((e4) => o3 = set_class(n3, 1, "bg-foreground text-background hover:bg-foreground/90 absolute right-4 bottom-4 z-15 flex items-center justify-center rounded-sm px-3 py-1 font-bold uppercase transition-all", null, o3, e4), [() => ({
3232
3232
  "opacity-0": get$1(i2)
@@ -3236,7 +3236,7 @@ function GameCard(e2, t2) {
3236
3236
  get$1(u2) && e3(consequent_2);
3237
3237
  });
3238
3238
  var m2 = sibling(h2, 2), consequent_3 = (e3) => {
3239
- var n3 = Je(), o3 = child(n3), i3 = child(o3), s3 = child(i3), a3 = child(sibling(i3, 2));
3239
+ var n3 = Xe(), o3 = child(n3), i3 = child(o3), s3 = child(i3), a3 = child(sibling(i3, 2));
3240
3240
  template_effect(() => {
3241
3241
  set_text(s3, t2.game.name), set_text(a3, t2.game.description || "No description.");
3242
3242
  }), transition(3, n3, () => slide), append(e3, n3);
@@ -3378,7 +3378,7 @@ function Navigation(e2, t2) {
3378
3378
  set(p2, proxy(f2[e3])), d2 = e3;
3379
3379
  });
3380
3380
  var _2 = it();
3381
- event("click", P, function handleClickOutside(e3) {
3381
+ event("click", I, function handleClickOutside(e3) {
3382
3382
  get$1(c2) && !get$1(c2).contains(e3.target) && n2 && !n2.contains(e3.target) && set(s2, false);
3383
3383
  });
3384
3384
  var v2 = child(_2), g2 = child(v2), h2 = child(g2), m2 = sibling(g2, 2);
@@ -3432,6 +3432,7 @@ function Navigation(e2, t2) {
3432
3432
  }));
3433
3433
  }(child(f3), {
3434
3434
  size: 18,
3435
+ strokeWidth: 2.5,
3435
3436
  class: "text-muted-foreground"
3436
3437
  });
3437
3438
  var d3 = sibling(f3, 2), p3 = child(sibling(n3, 2)), consequent = (e4) => {
@@ -3597,7 +3598,7 @@ function DiscoveryOverlay(e2, t2) {
3597
3598
  get$1(g2) && i2 && i2.observe(get$1(g2));
3598
3599
  });
3599
3600
  var m2 = ut();
3600
- event("keydown", P, (e3) => {
3601
+ event("keydown", I, (e3) => {
3601
3602
  "Escape" == e3.key && store_set(Ve, false);
3602
3603
  });
3603
3604
  var b2 = child(m2), y2 = child(b2), $2 = child(y2), w2 = child(sibling(y2, 2)), consequent = (e3) => {
@@ -3629,7 +3630,8 @@ function DiscoveryOverlay(e2, t2) {
3629
3630
  }
3630
3631
  }));
3631
3632
  }(child(x2), {
3632
- size: 24
3633
+ size: 24,
3634
+ strokeWidth: 2.5
3633
3635
  });
3634
3636
  var k2 = sibling(b2, 2);
3635
3637
  Navigation(child(k2), {
@@ -3703,14 +3705,13 @@ function DiscoveryOverlay(e2, t2) {
3703
3705
  }
3704
3706
  }));
3705
3707
  }(sibling(child(M2)), {
3706
- size: 14,
3707
- style: "margin-top: 1px;"
3708
+ size: 14
3708
3709
  }), template_effect(() => set_attribute($2, "src", store_get(Ke, "$projectUrl", n2) + "/static/images/logo-white-small.png")), transition(3, m2, () => blur, () => ({
3709
3710
  duration: 250
3710
3711
  })), append(e2, m2), pop(), o2();
3711
3712
  }
3712
3713
  delegate(["click"]);
3713
- var ft = /* @__PURE__ */ template('<div class="fixed top-0 right-0 left-0 z-99990 h-2"></div>');
3714
+ var ft = /* @__PURE__ */ template('<div class="fixed top-0 right-0 left-0 h-2"></div> <div class="fixed top-2 right-0 left-0 h-2"></div>', 1);
3714
3715
  delegate(["mouseover"]);
3715
3716
  var dt = /* @__PURE__ */ template("<!> <!> <!> <!>", 1);
3716
3717
  function App(e2, t2) {
@@ -3752,17 +3753,15 @@ function App(e2, t2) {
3752
3753
  });
3753
3754
  !function ExitIntentDetector(e3, t3) {
3754
3755
  push(t3, true);
3755
- let n3, o3 = prop(t3, "enabled", 3, true), i3 = 0;
3756
- onMount(() => {
3757
- "undefined" != typeof window && (n3 = window.innerHeight);
3758
- });
3759
- var s3 = ft();
3760
- event("mousemove", P, (e4) => {
3761
- n3 = e4.clientY, i3 = Date.now();
3762
- }), s3.__mouseover = (e4) => {
3756
+ let n3 = prop(t3, "enabled", 3, true), o3 = null, i3 = 0;
3757
+ var s3 = ft(), a3 = first_child(s3);
3758
+ a3.__mouseover = // Time threshold in milliseconds between bar triggers
3759
+ function handleTopBarTrigger() {
3763
3760
  var _a3;
3764
- const s4 = e4.clientY, a3 = Date.now();
3765
- s4 < n3 && a3 - i3 < 100 && o3() && !localStorage.getItem("playlight_exit_intent_disabled_by_user") && ((_a3 = t3.onIntent) == null ? void 0 : _a3.call(t3));
3761
+ const e4 = Date.now();
3762
+ "bottom" === o3 && e4 - i3 < 500 && n3() && !localStorage.getItem("playlight_exit_intent_disabled_by_user") && ((_a3 = t3.onIntent) == null ? void 0 : _a3.call(t3)), o3 = "top", i3 = e4;
3763
+ }, sibling(a3, 2).__mouseover = function handleBottomBarTrigger() {
3764
+ o3 = "bottom", i3 = Date.now();
3766
3765
  }, append(e3, s3), pop();
3767
3766
  }(u2, {
3768
3767
  get enabled() {
@@ -3832,13 +3831,17 @@ const vt = new (_c = class {
3832
3831
  * @private
3833
3832
  */
3834
3833
  t_fn = function() {
3835
- this.container = document.createElement("div"), this.container.id = "playlight-sdk-container", this.container.className = "playlight-sdk-container", document.body.appendChild(this.container), // Mount (client-side alternative to render)
3836
- this.app = mount(App, {
3837
- target: this.container,
3838
- props: {
3839
- config: this.config
3840
- }
3841
- });
3834
+ try {
3835
+ this.container = document.createElement("div"), this.container.id = "playlight-sdk-container", this.container.className = "playlight-sdk-container", document.body.appendChild(this.container), // Mount (client-side alternative to render)
3836
+ this.app = mount(App, {
3837
+ target: this.container,
3838
+ props: {
3839
+ config: this.config
3840
+ }
3841
+ });
3842
+ } catch (e2) {
3843
+ console.error("Playlight error occured during mount:", e2);
3844
+ }
3842
3845
  }, _c)();
3843
3846
  "undefined" != typeof window && (window.playlightSDK = vt);
3844
3847
  export {