@pie-players/pie-tool-theme 1.0.0-beta.4 → 1.0.0-beta.6

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.
@@ -167,13 +167,13 @@ function In(e, t) {
167
167
  function Qs(e, t) {
168
168
  return e?.[Ns]?.(t), e;
169
169
  }
170
- var L = null;
170
+ var j = null;
171
171
  function $t(e) {
172
- L = e;
172
+ j = e;
173
173
  }
174
174
  function ai(e, t = !1, r) {
175
- L = {
176
- p: L,
175
+ j = {
176
+ p: j,
177
177
  i: !1,
178
178
  c: null,
179
179
  e: null,
@@ -188,18 +188,18 @@ function ai(e, t = !1, r) {
188
188
  };
189
189
  }
190
190
  function li(e) {
191
- var t = L, r = t.e;
191
+ var t = j, r = t.e;
192
192
  if (r !== null) {
193
193
  t.e = null;
194
194
  for (var n of r) Ci(n);
195
195
  }
196
- return e !== void 0 && (t.x = e), t.i = !0, L = t.p, vn(e);
196
+ return e !== void 0 && (t.x = e), t.i = !0, j = t.p, vn(e);
197
197
  }
198
198
  function vn(e = {}) {
199
199
  return Bt(e, ri, { value: !0 }), e;
200
200
  }
201
201
  function Jt() {
202
- return !Xt || L !== null && L.l === null;
202
+ return !Xt || j !== null && j.l === null;
203
203
  }
204
204
  var Je = [];
205
205
  function fi() {
@@ -219,14 +219,14 @@ function eo() {
219
219
  for (; Je.length > 0; ) fi();
220
220
  }
221
221
  var to = ~(oe | lt | ue);
222
- function D(e, t) {
222
+ function F(e, t) {
223
223
  e.f = e.f & to | t;
224
224
  }
225
225
  function hn(e) {
226
- (e.f & 512) !== 0 || e.deps === null ? D(e, ue) : D(e, lt);
226
+ (e.f & 512) !== 0 || e.deps === null ? F(e, ue) : F(e, lt);
227
227
  }
228
228
  function ui(e, t, r) {
229
- (e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), D(e, ue);
229
+ (e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), F(e, ue);
230
230
  }
231
231
  function Pr(e) {
232
232
  var t = T, r = S;
@@ -273,7 +273,7 @@ function ro(e, t, r, n) {
273
273
  }) : v();
274
274
  }
275
275
  function no() {
276
- var e = S, t = T, r = L, n = E;
276
+ var e = S, t = T, r = j, n = E;
277
277
  if (0) var i;
278
278
  return function(o = !0) {
279
279
  Oe(e), de(t), $t(r), o && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
@@ -293,7 +293,7 @@ function ci() {
293
293
  function Yt(e) {
294
294
  var t = 2 | oe;
295
295
  return S !== null && (S.f |= Tt), {
296
- ctx: L,
296
+ ctx: j,
297
297
  deps: null,
298
298
  effects: null,
299
299
  equals: si,
@@ -378,7 +378,7 @@ function pn(e) {
378
378
  function di(e) {
379
379
  var t = pn(e);
380
380
  if (!e.equals(t) && (e.wv = Di(), (!E?.is_fork || e.deps === null) && (E !== null ? (E.capture(e, t, !0), kt?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
381
- D(e, ue);
381
+ F(e, ue);
382
382
  return;
383
383
  }
384
384
  Le || (V !== null ? (yn() || E?.is_fork) && V.set(e, t) : hn(e));
@@ -413,9 +413,9 @@ function a(e, t) {
413
413
  return e.get(b(e, t));
414
414
  }
415
415
  var _i, wr = null, pt = null, E = null, kt = null, V = null, Jr = null, qt = !1, Lr = !1, Kt = null, br = null, pi = 0;
416
- var lo = 1, yr = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), Qr = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakSet(), ft = class gi {
416
+ var lo = 1, yr = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), Qr = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakSet(), ft = class gi {
417
417
  constructor() {
418
- gn(this, W), N(this, "id", lo++), k(this, yr, !1), N(this, "linked", !0), k(this, rt, null), k(this, Qe, null), N(this, "async_deriveds", /* @__PURE__ */ new Map()), N(this, "current", /* @__PURE__ */ new Map()), N(this, "previous", /* @__PURE__ */ new Map()), k(this, kr, /* @__PURE__ */ new Set()), k(this, or, /* @__PURE__ */ new Set()), k(this, gt, 0), k(this, Ge, /* @__PURE__ */ new Map()), k(this, Nt, null), k(this, ge, []), k(this, Qr, []), k(this, ot, /* @__PURE__ */ new Set()), k(this, Ne, /* @__PURE__ */ new Set()), k(this, qe, /* @__PURE__ */ new Map()), k(this, vr, /* @__PURE__ */ new Set()), N(this, "is_fork", !1), k(this, Wt, !1), pt === null ? wr = pt = this : (y(Qe, pt, this), y(rt, this, pt)), pt = this;
418
+ gn(this, L), N(this, "id", lo++), k(this, yr, !1), N(this, "linked", !0), k(this, rt, null), k(this, Qe, null), N(this, "async_deriveds", /* @__PURE__ */ new Map()), N(this, "current", /* @__PURE__ */ new Map()), N(this, "previous", /* @__PURE__ */ new Map()), k(this, kr, /* @__PURE__ */ new Set()), k(this, or, /* @__PURE__ */ new Set()), k(this, gt, 0), k(this, Ge, /* @__PURE__ */ new Map()), k(this, Nt, null), k(this, ge, []), k(this, Qr, []), k(this, ot, /* @__PURE__ */ new Set()), k(this, Ne, /* @__PURE__ */ new Set()), k(this, qe, /* @__PURE__ */ new Map()), k(this, vr, /* @__PURE__ */ new Set()), N(this, "is_fork", !1), k(this, Wt, !1), pt === null ? wr = pt = this : (y(Qe, pt, this), y(rt, this, pt)), pt = this;
419
419
  }
420
420
  skip_effect(t) {
421
421
  a(qe, this).has(t) || a(qe, this).set(t, {
@@ -428,9 +428,9 @@ var lo = 1, yr = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap
428
428
  if (n) {
429
429
  a(qe, this).delete(t);
430
430
  for (var i of n.d)
431
- D(i, oe), r(i);
431
+ F(i, oe), r(i);
432
432
  for (i of n.m)
433
- D(i, lt), r(i);
433
+ F(i, lt), r(i);
434
434
  }
435
435
  a(vr, this).add(t);
436
436
  }
@@ -445,7 +445,7 @@ var lo = 1, yr = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap
445
445
  }
446
446
  flush() {
447
447
  try {
448
- Lr = !0, E = this, b(W, this, $r).call(this);
448
+ Lr = !0, E = this, b(L, this, $r).call(this);
449
449
  } finally {
450
450
  pi = 0, Jr = null, Kt = null, br = null, Lr = !1, E = null, V = null, Me.clear();
451
451
  }
@@ -454,7 +454,7 @@ var lo = 1, yr = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap
454
454
  for (const t of a(or, this)) t(this);
455
455
  a(or, this).clear();
456
456
  for (const t of this.async_deriveds.values()) t.reject(It);
457
- b(W, this, xr).call(this), a(Nt, this)?.resolve();
457
+ b(L, this, xr).call(this), a(Nt, this)?.resolve();
458
458
  }
459
459
  register_created_effect(t) {
460
460
  a(Qr, this).push(t);
@@ -563,43 +563,43 @@ function mi() {
563
563
  function $r() {
564
564
  y(yr, this, !0);
565
565
  for (const o of a(ot, this))
566
- a(Ne, this).delete(o), D(o, oe), this.schedule(o);
566
+ a(Ne, this).delete(o), F(o, oe), this.schedule(o);
567
567
  for (const o of a(Ne, this))
568
- D(o, lt), this.schedule(o);
568
+ F(o, lt), this.schedule(o);
569
569
  this.apply();
570
570
  for (var e = Kt = [], t = [], r = br = []; a(ge, this).length > 0; ) {
571
- pi++ > 1e3 && (b(W, this, xr).call(this), vo());
572
- for (const o of b(W, this, mi).call(this)) try {
573
- b(W, this, wi).call(this, o, e, t);
571
+ pi++ > 1e3 && (b(L, this, xr).call(this), vo());
572
+ for (const o of b(L, this, mi).call(this)) try {
573
+ b(L, this, wi).call(this, o, e, t);
574
574
  } catch (l) {
575
- throw ki(o), b(W, this, Nn).call(this) || this.discard(), l;
575
+ throw ki(o), b(L, this, Nn).call(this) || this.discard(), l;
576
576
  }
577
577
  }
578
578
  if (E = null, r.length > 0) {
579
579
  var n = _i.ensure();
580
580
  for (const o of r) n.schedule(o);
581
581
  }
582
- if (Kt = null, br = null, b(W, this, Nn).call(this)) {
583
- b(W, this, Lt).call(this, t), b(W, this, Lt).call(this, e);
582
+ if (Kt = null, br = null, b(L, this, Nn).call(this)) {
583
+ b(L, this, Lt).call(this, t), b(L, this, Lt).call(this, e);
584
584
  for (const [o, l] of a(qe, this)) yi(o, l);
585
- r.length > 0 && b(W, E, $r).call(E);
585
+ r.length > 0 && b(L, E, $r).call(E);
586
586
  return;
587
587
  }
588
- const i = b(W, this, fo).call(this);
588
+ const i = b(L, this, fo).call(this);
589
589
  if (i) {
590
- b(W, this, Lt).call(this, t), b(W, this, Lt).call(this, e), b(W, i, uo).call(i, this);
590
+ b(L, this, Lt).call(this, t), b(L, this, Lt).call(this, e), b(L, i, uo).call(i, this);
591
591
  return;
592
592
  }
593
593
  a(ot, this).clear(), a(Ne, this).clear();
594
594
  for (const o of a(kr, this)) o(this);
595
595
  a(kr, this).clear(), kt = this, Wn(t), Wn(e), kt = null, a(Nt, this)?.resolve();
596
596
  var s = E;
597
- if (a(gt, this) === 0 && (a(ge, this).length === 0 || s !== null) && (b(W, this, xr).call(this), Ue && (b(W, this, co).call(this), E = s)), a(ge, this).length > 0)
597
+ if (a(gt, this) === 0 && (a(ge, this).length === 0 || s !== null) && (b(L, this, xr).call(this), Ue && (b(L, this, co).call(this), E = s)), a(ge, this).length > 0)
598
598
  if (s !== null) {
599
599
  for (const o of a(ge, this)) a(ge, s).push(o);
600
600
  y(ge, this, []);
601
601
  } else s = this;
602
- s !== null && (Me.clear(), b(W, s, $r).call(s));
602
+ s !== null && (Me.clear(), b(L, s, $r).call(s));
603
603
  }
604
604
  function wi(e, t, r) {
605
605
  e.f ^= ue;
@@ -648,12 +648,12 @@ function uo(e) {
648
648
  if ((i & 2) !== 0) t(o);
649
649
  else {
650
650
  var s = o;
651
- i & 4194320 && !this.async_deriveds.has(s) && (a(Ne, this).delete(s), D(s, oe), this.schedule(s));
651
+ i & 4194320 && !this.async_deriveds.has(s) && (a(Ne, this).delete(s), F(s, oe), this.schedule(s));
652
652
  }
653
653
  }
654
654
  };
655
655
  for (const r of this.current.keys()) t(r);
656
- this.oncommit(() => e.discard()), b(W, e, xr).call(e), E = this, b(W, this, $r).call(this);
656
+ this.oncommit(() => e.discard()), b(L, e, xr).call(e), E = this, b(L, this, $r).call(this);
657
657
  }
658
658
  function Lt(e) {
659
659
  for (var t = 0; t < e.length; t += 1) ui(e[t], a(ot, this), a(Ne, this));
@@ -680,7 +680,7 @@ function co() {
680
680
  e && _.discard();
681
681
  else if (t.length > 0) {
682
682
  if (e) for (const d of a(vr, this)) _.unskip_effect(d, (v) => {
683
- (v.f & 4194320) !== 0 ? _.schedule(v) : b(W, _, Lt).call(_, [v]);
683
+ (v.f & 4194320) !== 0 ? _.schedule(v) : b(L, _, Lt).call(_, [v]);
684
684
  });
685
685
  _.activate();
686
686
  var s = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
@@ -691,10 +691,10 @@ function co() {
691
691
  return u ? u[0] !== v[0] || u[1] !== v[1] : !0;
692
692
  }).map(([d]) => d);
693
693
  if (f.length > 0)
694
- for (const d of a(Qr, this)) (d.f & 155648) === 0 && mn(d, f, o) && ((d.f & 4194320) !== 0 ? (D(d, oe), _.schedule(d)) : a(ot, _).add(d));
694
+ for (const d of a(Qr, this)) (d.f & 155648) === 0 && mn(d, f, o) && ((d.f & 4194320) !== 0 ? (F(d, oe), _.schedule(d)) : a(ot, _).add(d));
695
695
  if (a(ge, _).length > 0 && !a(Wt, _)) {
696
696
  _.apply();
697
- for (var h of b(W, _, mi).call(_)) b(W, _, wi).call(_, h, [], []);
697
+ for (var h of b(L, _, mi).call(_)) b(L, _, wi).call(_, h, [], []);
698
698
  }
699
699
  _.deactivate();
700
700
  }
@@ -761,7 +761,7 @@ function bi(e, t, r, n) {
761
761
  if (!r.has(e) && (r.add(e), e.reactions !== null))
762
762
  for (const i of e.reactions) {
763
763
  const s = i.f;
764
- (s & 2) !== 0 ? bi(i, t, r, n) : (s & 4194320) !== 0 && (s & 2048) === 0 && mn(i, t, n) && (D(i, oe), wn(i));
764
+ (s & 2) !== 0 ? bi(i, t, r, n) : (s & 4194320) !== 0 && (s & 2048) === 0 && mn(i, t, n) && (F(i, oe), wn(i));
765
765
  }
766
766
  }
767
767
  function mn(e, t, r) {
@@ -779,13 +779,13 @@ function wn(e) {
779
779
  }
780
780
  function yi(e, t) {
781
781
  if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
782
- (e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), D(e, ue);
782
+ (e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), F(e, ue);
783
783
  for (var r = e.first; r !== null; )
784
784
  yi(r, t), r = r.next;
785
785
  }
786
786
  }
787
787
  function ki(e) {
788
- D(e, ue);
788
+ F(e, ue);
789
789
  for (var t = e.first; t !== null; )
790
790
  ki(t), t = t.next;
791
791
  }
@@ -810,13 +810,13 @@ function G(e, t) {
810
810
  // @__NO_SIDE_EFFECTS__
811
811
  function xi(e, t = !1, r = !0) {
812
812
  const n = at(e);
813
- if (t || (n.equals = oi), Xt && r && L !== null && L.l !== null) {
813
+ if (t || (n.equals = oi), Xt && r && j !== null && j.l !== null) {
814
814
  var i;
815
- ((i = L.l).s ?? (i.s = [])).push(n);
815
+ ((i = j.l).s ?? (i.s = [])).push(n);
816
816
  }
817
817
  return n;
818
818
  }
819
- function j(e, t, r = !1) {
819
+ function D(e, t, r = !1) {
820
820
  T !== null && (!me || (T.f & 131072) !== 0) && Jt() && (T.f & 4325394) !== 0 && (be === null || !be.has(e)) && Xs();
821
821
  let n = r ? bt(t) : t;
822
822
  return xt(e, n, br);
@@ -837,7 +837,7 @@ function xt(e, t, r = null) {
837
837
  function ho() {
838
838
  $i = !1;
839
839
  for (const e of Er) {
840
- (e.f & 1024) !== 0 && D(e, lt);
840
+ (e.f & 1024) !== 0 && F(e, lt);
841
841
  let t;
842
842
  try {
843
843
  t = Qt(e);
@@ -849,7 +849,7 @@ function ho() {
849
849
  Er.clear();
850
850
  }
851
851
  function Ht(e) {
852
- j(e, e.v + 1);
852
+ D(e, e.v + 1);
853
853
  }
854
854
  function Si(e, t, r) {
855
855
  var n = e.reactions;
@@ -863,7 +863,7 @@ function Si(e, t, r) {
863
863
  var l = n[o], f = l.f;
864
864
  if (!(!i && l === S)) {
865
865
  var h = (f & oe) === 0;
866
- if (h && D(l, t), (f & 131072) !== 0) Er.add(l);
866
+ if (h && F(l, t), (f & 131072) !== 0) Er.add(l);
867
867
  else if ((f & 2) !== 0) {
868
868
  var _ = l;
869
869
  V?.delete(_), Si(_, lt, r);
@@ -904,7 +904,7 @@ function bt(e) {
904
904
  return m === void 0 ? l(() => {
905
905
  var g = /* @__PURE__ */ G(u.value, s);
906
906
  return r.set(v, g), g;
907
- }) : j(m, u.value, !0), !0;
907
+ }) : D(m, u.value, !0), !0;
908
908
  },
909
909
  deleteProperty(d, v) {
910
910
  var u = r.get(v);
@@ -914,7 +914,7 @@ function bt(e) {
914
914
  r.set(v, m), Ht(i);
915
915
  }
916
916
  } else
917
- j(u, H), Ht(i);
917
+ D(u, H), Ht(i);
918
918
  return !0;
919
919
  },
920
920
  get(d, v, u) {
@@ -957,20 +957,20 @@ function bt(e) {
957
957
  var g = r.get(v), p = v in d;
958
958
  if (n && v === "length") for (var w = u; w < g.v; w += 1) {
959
959
  var A = r.get(w + "");
960
- A !== void 0 ? j(A, H) : w in d && (A = l(() => /* @__PURE__ */ G(H, s)), r.set(w + "", A));
960
+ A !== void 0 ? D(A, H) : w in d && (A = l(() => /* @__PURE__ */ G(H, s)), r.set(w + "", A));
961
961
  }
962
962
  if (g === void 0)
963
- (!p || tt(d, v)?.writable) && (g = l(() => /* @__PURE__ */ G(void 0, s)), j(g, bt(u)), r.set(v, g));
963
+ (!p || tt(d, v)?.writable) && (g = l(() => /* @__PURE__ */ G(void 0, s)), D(g, bt(u)), r.set(v, g));
964
964
  else {
965
965
  p = g.v !== H;
966
966
  var R = l(() => bt(u));
967
- j(g, R);
967
+ D(g, R);
968
968
  }
969
969
  var $ = Reflect.getOwnPropertyDescriptor(d, v);
970
970
  if ($?.set && $.set.call(m, u), !p) {
971
971
  if (n && typeof v == "string") {
972
972
  var U = r.get("length"), q = Number(v);
973
- Number.isInteger(q) && q >= U.v && j(U, q + 1);
973
+ Number.isInteger(q) && q >= U.v && D(U, q + 1);
974
974
  }
975
975
  Ht(i);
976
976
  }
@@ -1107,7 +1107,7 @@ function Re(e, t) {
1107
1107
  var r = S;
1108
1108
  r !== null && (r.f & 8192) !== 0 && (e |= fn);
1109
1109
  var n = {
1110
- ctx: L,
1110
+ ctx: j,
1111
1111
  deps: null,
1112
1112
  nodes: null,
1113
1113
  f: e | oe | 512,
@@ -1145,13 +1145,13 @@ function yn() {
1145
1145
  }
1146
1146
  function ko(e) {
1147
1147
  const t = Re(8, null);
1148
- return D(t, ue), t.teardown = e, t;
1148
+ return F(t, ue), t.teardown = e, t;
1149
1149
  }
1150
1150
  function Ze(e) {
1151
1151
  bo("$effect");
1152
1152
  var t = S.f;
1153
- if (!T && (t & 32) !== 0 && L !== null && !L.i) {
1154
- var r = L;
1153
+ if (!T && (t & 32) !== 0 && j !== null && !j.i) {
1154
+ var r = j;
1155
1155
  (r.e ?? (r.e = [])).push(e);
1156
1156
  } else return Ci(e);
1157
1157
  }
@@ -1279,7 +1279,7 @@ function Tr(e) {
1279
1279
  }
1280
1280
  function Wi(e, t) {
1281
1281
  if ((e.f & 256) === 0 && (e.f & 8192) !== 0) {
1282
- e.f ^= fn, (e.f & 1024) === 0 && (D(e, oe), ft.ensure().schedule(e));
1282
+ e.f ^= fn, (e.f & 1024) === 0 && (F(e, oe), ft.ensure().schedule(e));
1283
1283
  for (var r = e.first; r !== null; ) {
1284
1284
  var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
1285
1285
  Wi(r, i ? t : !1), r = n;
@@ -1331,7 +1331,7 @@ function Qt(e) {
1331
1331
  var s = r[i];
1332
1332
  if (Qt(s) && di(s), s.wv > e.wv) return !0;
1333
1333
  }
1334
- (t & 512) !== 0 && V === null && D(e, ue);
1334
+ (t & 512) !== 0 && V === null && F(e, ue);
1335
1335
  }
1336
1336
  return !1;
1337
1337
  }
@@ -1340,11 +1340,11 @@ function Fi(e, t, r = !0) {
1340
1340
  if (n !== null && !(!Ue && be !== null && be.has(e)))
1341
1341
  for (var i = 0; i < n.length; i++) {
1342
1342
  var s = n[i];
1343
- (s.f & 2) !== 0 ? Fi(s, t, !1) : t === s && (r ? D(s, oe) : (s.f & 1024) !== 0 && D(s, lt), wn(s));
1343
+ (s.f & 2) !== 0 ? Fi(s, t, !1) : t === s && (r ? F(s, oe) : (s.f & 1024) !== 0 && F(s, lt), wn(s));
1344
1344
  }
1345
1345
  }
1346
1346
  function qi(e) {
1347
- var t = Q, r = re, n = fe, i = T, s = be, o = L, l = me, f = nt, h = e.f;
1347
+ var t = Q, r = re, n = fe, i = T, s = be, o = j, l = me, f = nt, h = e.f;
1348
1348
  Q = null, re = 0, fe = null, T = (h & 96) === 0 ? e : null, be = null, $t(e.ctx), me = !1, nt = ++et, e.ac !== null && (Pr(() => {
1349
1349
  e.ac.abort(Zt);
1350
1350
  }), e.ac = null);
@@ -1392,7 +1392,7 @@ function Oo(e, t) {
1392
1392
  if (r === null && (t.f & 2) !== 0 && (Q === null || !zt.call(Q, t))) {
1393
1393
  var s = t;
1394
1394
  (s.f & 512) !== 0 && (s.f ^= 512), s.v !== H && hn(s), s.ac !== null && Pr(() => {
1395
- s.ac.abort(Zt), s.ac = null, D(s, oe);
1395
+ s.ac.abort(Zt), s.ac = null, F(s, oe);
1396
1396
  }), ao(s), Vt(s, 0);
1397
1397
  }
1398
1398
  }
@@ -1404,7 +1404,7 @@ function Vt(e, t) {
1404
1404
  function St(e) {
1405
1405
  var t = e.f;
1406
1406
  if ((t & 16384) === 0) {
1407
- D(e, ue);
1407
+ F(e, ue);
1408
1408
  var r = S;
1409
1409
  if (S = e, 0)
1410
1410
  var n, i;
@@ -1688,9 +1688,9 @@ var Ho = cn | Tt;
1688
1688
  function zo(e, t, r, n) {
1689
1689
  new Bo(e, t, r, n);
1690
1690
  }
1691
- var ye = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), sn = /* @__PURE__ */ new WeakMap(), on = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), Hn = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakSet(), Bo = class {
1691
+ var ye = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), sn = /* @__PURE__ */ new WeakMap(), on = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), Hn = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakSet(), Bo = class {
1692
1692
  constructor(e, t, r, n) {
1693
- gn(this, P), N(this, "parent", void 0), N(this, "is_pending", !1), N(this, "transform_error", void 0), k(this, ye, void 0), k(this, nn, O ? C : null), k(this, Te, void 0), k(this, Gt, void 0), k(this, ee, void 0), k(this, ke, null), k(this, se, null), k(this, we, null), k(this, He, null), k(this, mt, 0), k(this, it, 0), k(this, lr, !1), k(this, sn, /* @__PURE__ */ new Set()), k(this, on, /* @__PURE__ */ new Set()), k(this, Ke, null), k(this, Hn, qo(() => (y(Ke, this, at(a(mt, this))), () => {
1693
+ gn(this, I), N(this, "parent", void 0), N(this, "is_pending", !1), N(this, "transform_error", void 0), k(this, ye, void 0), k(this, nn, O ? C : null), k(this, Te, void 0), k(this, Gt, void 0), k(this, ee, void 0), k(this, ke, null), k(this, se, null), k(this, we, null), k(this, He, null), k(this, mt, 0), k(this, it, 0), k(this, lr, !1), k(this, sn, /* @__PURE__ */ new Set()), k(this, on, /* @__PURE__ */ new Set()), k(this, Ke, null), k(this, Hn, qo(() => (y(Ke, this, at(a(mt, this))), () => {
1694
1694
  y(Ke, this, null);
1695
1695
  }))), y(ye, this, e), y(Te, this, t), y(Gt, this, (i) => {
1696
1696
  var s = S;
@@ -1702,9 +1702,9 @@ var ye = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), Te =
1702
1702
  const s = i === "[!";
1703
1703
  if (i.startsWith("[?")) {
1704
1704
  const o = JSON.parse(i.slice(2));
1705
- b(P, this, Yo).call(this, o);
1706
- } else s ? b(P, this, Ko).call(this) : b(P, this, Uo).call(this);
1707
- } else b(P, this, Ki).call(this);
1705
+ b(I, this, Yo).call(this, o);
1706
+ } else s ? b(I, this, Ko).call(this) : b(I, this, Uo).call(this);
1707
+ } else b(I, this, Ki).call(this);
1708
1708
  }, Ho)), O && y(ye, this, C);
1709
1709
  }
1710
1710
  defer_effect(e) {
@@ -1717,7 +1717,7 @@ var ye = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), Te =
1717
1717
  return !!a(Te, this).pending;
1718
1718
  }
1719
1719
  update_pending_count(e, t) {
1720
- b(P, this, Vi).call(this, e, t), y(mt, this, a(mt, this) + e), !(!a(Ke, this) || a(lr, this)) && (y(lr, this, !0), Be(() => {
1720
+ b(I, this, Vi).call(this, e, t), y(mt, this, a(mt, this) + e), !(!a(Ke, this) || a(lr, this)) && (y(lr, this, !0), Be(() => {
1721
1721
  y(lr, this, !1), a(Ke, this) && xt(a(Ke, this), a(mt, this));
1722
1722
  }));
1723
1723
  }
@@ -1727,8 +1727,8 @@ var ye = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), Te =
1727
1727
  error(e) {
1728
1728
  if (e === ze || !a(Te, this).onerror && !a(Te, this).failed) throw e;
1729
1729
  E?.is_fork ? (a(ke, this) && E.skip_effect(a(ke, this)), a(se, this) && E.skip_effect(a(se, this)), a(we, this) && E.skip_effect(a(we, this)), E.oncommit(() => {
1730
- b(P, this, st).call(this) || b(P, this, zn).call(this, e);
1731
- })) : b(P, this, zn).call(this, e);
1730
+ b(I, this, st).call(this) || b(I, this, zn).call(this, e);
1731
+ })) : b(I, this, zn).call(this, e);
1732
1732
  }
1733
1733
  };
1734
1734
  function Uo() {
@@ -1739,7 +1739,7 @@ function Uo() {
1739
1739
  }
1740
1740
  }
1741
1741
  function Yo(e) {
1742
- const t = a(Te, this).failed, { reset: r, invoke_onerror: n } = b(P, this, Yi).call(this, e);
1742
+ const t = a(Te, this).failed, { reset: r, invoke_onerror: n } = b(I, this, Yi).call(this, e);
1743
1743
  Be(n), t && y(we, this, ce(() => {
1744
1744
  t(a(ye, this), () => e, () => r);
1745
1745
  }));
@@ -1747,22 +1747,22 @@ function Yo(e) {
1747
1747
  function Yi(e) {
1748
1748
  var t = !1, r = !1;
1749
1749
  const n = () => {
1750
- if (!b(P, this, st).call(this)) {
1750
+ if (!b(I, this, st).call(this)) {
1751
1751
  if (t) {
1752
1752
  js();
1753
1753
  return;
1754
1754
  }
1755
1755
  t = !0, r && Js(), a(we, this) !== null && ut(a(we, this), () => {
1756
1756
  y(we, this, null);
1757
- }), b(P, this, En).call(this, () => {
1758
- b(P, this, Ki).call(this);
1757
+ }), b(I, this, En).call(this, () => {
1758
+ b(I, this, Ki).call(this);
1759
1759
  });
1760
1760
  }
1761
1761
  };
1762
1762
  return {
1763
1763
  reset: n,
1764
1764
  invoke_onerror: () => {
1765
- if (!b(P, this, st).call(this))
1765
+ if (!b(I, this, st).call(this))
1766
1766
  try {
1767
1767
  r = !0, a(Te, this).onerror?.(e, n), r = !1;
1768
1768
  } catch (s) {
@@ -1777,9 +1777,9 @@ function st() {
1777
1777
  function Ko() {
1778
1778
  const e = a(Te, this).pending;
1779
1779
  e && (this.is_pending = !0, y(se, this, ce(() => e(a(ye, this)))), Be(() => {
1780
- if (!b(P, this, st).call(this)) {
1780
+ if (!b(I, this, st).call(this)) {
1781
1781
  var t = y(He, this, document.createDocumentFragment()), r = ie(), n = !1;
1782
- if (t.append(r), y(ke, this, b(P, this, En).call(this, () => {
1782
+ if (t.append(r), y(ke, this, b(I, this, En).call(this, () => {
1783
1783
  try {
1784
1784
  return ce(() => a(Gt, this).call(this, r));
1785
1785
  } catch (i) {
@@ -1791,12 +1791,12 @@ function Ko() {
1791
1791
  return null;
1792
1792
  }
1793
1793
  })), a(ke, this) === null) {
1794
- y(He, this, null), n && b(P, this, Mr).call(this, E);
1794
+ y(He, this, null), n && b(I, this, Mr).call(this, E);
1795
1795
  return;
1796
1796
  }
1797
1797
  a(it, this) === 0 && (a(ye, this).before(t), y(He, this, null), ut(a(se, this), () => {
1798
1798
  y(se, this, null);
1799
- }), b(P, this, Mr).call(this, E));
1799
+ }), b(I, this, Mr).call(this, E));
1800
1800
  }
1801
1801
  }));
1802
1802
  }
@@ -1809,7 +1809,7 @@ function Ki() {
1809
1809
  Sn(a(ke, this), e);
1810
1810
  const t = a(Te, this).pending;
1811
1811
  y(se, this, ce(() => t(a(ye, this))));
1812
- } else b(P, this, Mr).call(this, E);
1812
+ } else b(I, this, Mr).call(this, E);
1813
1813
  } catch (t) {
1814
1814
  this.error(t);
1815
1815
  }
@@ -1818,7 +1818,7 @@ function Mr(e) {
1818
1818
  this.is_pending = !1, e.transfer_effects(a(sn, this), a(on, this));
1819
1819
  }
1820
1820
  function En(e) {
1821
- var t = S, r = T, n = L;
1821
+ var t = S, r = T, n = j;
1822
1822
  Oe(a(ee, this)), de(a(ee, this)), $t(a(ee, this).ctx);
1823
1823
  try {
1824
1824
  return ft.ensure(), e();
@@ -1830,11 +1830,11 @@ function Vi(e, t) {
1830
1830
  if (!this.has_pending_snippet()) {
1831
1831
  if (this.parent) {
1832
1832
  var r;
1833
- b(P, r = this.parent, Vi).call(r, e, t);
1833
+ b(I, r = this.parent, Vi).call(r, e, t);
1834
1834
  }
1835
1835
  return;
1836
1836
  }
1837
- y(it, this, a(it, this) + e), a(it, this) === 0 && (b(P, this, Mr).call(this, t), a(se, this) && ut(a(se, this), () => {
1837
+ y(it, this, a(it, this) + e), a(it, this) === 0 && (b(I, this, Mr).call(this, t), a(se, this) && ut(a(se, this), () => {
1838
1838
  y(se, this, null);
1839
1839
  }), a(He, this) && (a(ye, this).before(a(He, this)), y(He, this, null)));
1840
1840
  }
@@ -1842,9 +1842,9 @@ function zn(e) {
1842
1842
  a(ke, this) && (X(a(ke, this)), y(ke, this, null)), a(se, this) && (X(a(se, this)), y(se, this, null)), a(we, this) && (X(a(we, this)), y(we, this, null)), O && (Z(a(nn, this)), ii(), Z(gr()));
1843
1843
  let t = a(Te, this).failed;
1844
1844
  const r = (n) => {
1845
- if (b(P, this, st).call(this)) return;
1846
- const { reset: i, invoke_onerror: s } = b(P, this, Yi).call(this, n);
1847
- s(), t && !b(P, this, st).call(this) && y(we, this, b(P, this, En).call(this, () => {
1845
+ if (b(I, this, st).call(this)) return;
1846
+ const { reset: i, invoke_onerror: s } = b(I, this, Yi).call(this, n);
1847
+ s(), t && !b(I, this, st).call(this) && y(we, this, b(I, this, En).call(this, () => {
1848
1848
  try {
1849
1849
  return ce(() => {
1850
1850
  var o = S;
@@ -1856,7 +1856,7 @@ function zn(e) {
1856
1856
  }));
1857
1857
  };
1858
1858
  Be(() => {
1859
- if (!b(P, this, st).call(this)) {
1859
+ if (!b(I, this, st).call(this)) {
1860
1860
  var n;
1861
1861
  try {
1862
1862
  n = this.transform_error(e);
@@ -1904,7 +1904,7 @@ function Zi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
1904
1904
  zo(_, { pending: () => {
1905
1905
  } }, (u) => {
1906
1906
  ai({});
1907
- var m = L;
1907
+ var m = j;
1908
1908
  if (s && (m.c = s), i && (n.$$events = i), O && We(u, null), Bn = o, f = e(u, n) || vn(), Bn = !0, O && (S.nodes.end = C, C === null || C.nodeType !== 8 || C.data !== "]"))
1909
1909
  throw Cr(), ze;
1910
1910
  li();
@@ -1995,7 +1995,7 @@ var Pe = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), pe =
1995
1995
  }
1996
1996
  };
1997
1997
  function Xo(e) {
1998
- L === null && Fs("onMount"), Xt && L.l !== null ? Jo(L).m.push(e) : Ze(() => {
1998
+ j === null && Fs("onMount"), Xt && j.l !== null ? Jo(j).m.push(e) : Ze(() => {
1999
1999
  const t = Et(e);
2000
2000
  if (typeof t == "function") return t;
2001
2001
  });
@@ -2101,11 +2101,11 @@ function ea(e, t, r, n, i, s = null) {
2101
2101
  O && dn(o) === "[!" != (w === 0) && (o = gr(), Z(o), Ie(!1), A = !0);
2102
2102
  for (var R = /* @__PURE__ */ new Set(), $ = E, U = Oi(), q = 0; q < w; q += 1) {
2103
2103
  O && C.nodeType === 8 && C.data === "]" && (o = C, A = !0, Ie(!1));
2104
- var ae = p[q], I = n(ae, q);
2104
+ var ae = p[q], P = n(ae, q);
2105
2105
  if (0)
2106
2106
  var tr;
2107
- var z = v ? null : l.get(I);
2108
- z ? (z.v && xt(z.v, ae), z.i && xt(z.i, q), U && $.unskip_effect(z.e)) : (z = ra(l, v ? o : ur ?? (ur = ie()), ae, I, q, i, t, r), v || (z.e.f |= Dt), l.set(I, z)), R.add(I);
2107
+ var z = v ? null : l.get(P);
2108
+ z ? (z.v && xt(z.v, ae), z.i && xt(z.i, q), U && $.unskip_effect(z.e)) : (z = ra(l, v ? o : ur ?? (ur = ie()), ae, P, q, i, t, r), v || (z.e.f |= Dt), l.set(P, z)), R.add(P);
2109
2109
  }
2110
2110
  if (w === 0 && s && !h && (v ? h = ce(() => s(o)) : (h = ce(() => s(ur ?? (ur = ie()))), h.f |= Dt)), w > R.size && Hs("", "", ""), O && w > 0 && Z(gr()), !v)
2111
2111
  if (d.set($, R), U) {
@@ -2169,12 +2169,12 @@ function ta(e, t, r, n, i) {
2169
2169
  for (p of h) (p.f & 8192) === 0 && ae.push(p);
2170
2170
  for (; f !== null; )
2171
2171
  (f.f & 8192) === 0 && f !== e.fallback && ae.push(f), f = Pt(f.next);
2172
- var I = ae.length;
2173
- if (I > 0) {
2172
+ var P = ae.length;
2173
+ if (P > 0) {
2174
2174
  var tr = (n & 4) !== 0 && o === 0 ? r : null;
2175
2175
  if (s) {
2176
- for (w = 0; w < I; w += 1) ae[w].nodes?.a?.measure();
2177
- for (w = 0; w < I; w += 1) ae[w].nodes?.a?.fix();
2176
+ for (w = 0; w < P; w += 1) ae[w].nodes?.a?.measure();
2177
+ for (w = 0; w < P; w += 1) ae[w].nodes?.a?.fix();
2178
2178
  }
2179
2179
  Qo(e, ae, tr);
2180
2180
  }
@@ -2349,7 +2349,7 @@ function Yr(e, t) {
2349
2349
  return e === t || e?.[Ft] === t;
2350
2350
  }
2351
2351
  function Kr(e = vn(), t, r, n) {
2352
- var i = L.r, s = S;
2352
+ var i = j.r, s = S;
2353
2353
  return Ri(() => {
2354
2354
  var o, l;
2355
2355
  return kn(() => {
@@ -2406,7 +2406,7 @@ function Xn(e, t, r, n) {
2406
2406
  return (function($, U) {
2407
2407
  if (arguments.length > 0) {
2408
2408
  const q = U ? c(A) : i && s ? bt($) : $;
2409
- return j(A, q), w = !0, l !== void 0 && (l = q), $;
2409
+ return D(A, q), w = !0, l !== void 0 && (l = q), $;
2410
2410
  }
2411
2411
  return Le && w || (R.f & 16384) !== 0 ? A.v : c(A);
2412
2412
  });
@@ -2432,7 +2432,7 @@ var Ve = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), ha =
2432
2432
  return s === ni ? !0 : (c(t.get(s) ?? r(s, Reflect.get(i, s))), Reflect.has(i, s));
2433
2433
  },
2434
2434
  set(i, s, o) {
2435
- return j(t.get(s) ?? r(s, o), o), Reflect.set(i, s, o);
2435
+ return D(t.get(s) ?? r(s, o), o), Reflect.set(i, s, o);
2436
2436
  }
2437
2437
  });
2438
2438
  y(Se, this, (e.hydrate ? Vo : Gi)(e.component, {
@@ -2604,9 +2604,11 @@ function pa(e, t, r, n, i, s) {
2604
2604
  } });
2605
2605
  }), s && (o = s(o)), e.element = o, o;
2606
2606
  }
2607
- var ga = /* @__PURE__ */ er('<div class="pie-tool-color-scheme__current svelte-1k3xgut"><div class="pie-tool-color-scheme__preview svelte-1k3xgut"><div class="pie-tool-color-scheme__preview-bg svelte-1k3xgut"><div class="pie-tool-color-scheme__preview-text svelte-1k3xgut">A</div> <div class="pie-tool-color-scheme__preview-primary svelte-1k3xgut"></div></div></div> <div class="pie-tool-color-scheme__current-info svelte-1k3xgut"><div class="pie-tool-color-scheme__current-name svelte-1k3xgut"> </div> <div class="pie-tool-color-scheme__current-description svelte-1k3xgut"> </div></div> <svg class="pie-tool-color-scheme__dropdown-arrow svelte-1k3xgut" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M7,10L12,15L17,10H7Z"></path></svg></div>'), ma = /* @__PURE__ */ No('<svg xmlns="http://www.w3.org/2000/svg" class="pie-tool-color-scheme__check svelte-1k3xgut" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"></polyline></svg>'), wa = /* @__PURE__ */ er('<button type="button" role="menuitem"><div class="pie-tool-color-scheme__preview svelte-1k3xgut"><div class="pie-tool-color-scheme__preview-bg svelte-1k3xgut"><div class="pie-tool-color-scheme__preview-text svelte-1k3xgut">A</div> <div class="pie-tool-color-scheme__preview-primary svelte-1k3xgut"></div></div></div> <div class="pie-tool-color-scheme__info svelte-1k3xgut"><div class="pie-tool-color-scheme__name svelte-1k3xgut"> </div> <div class="pie-tool-color-scheme__description svelte-1k3xgut"> </div></div> <!></button>'), ba = /* @__PURE__ */ er('<div id="pie-tool-color-scheme-menu" class="pie-tool-color-scheme__dropdown svelte-1k3xgut" role="menu"></div>'), ya = /* @__PURE__ */ er('<div class="pie-tool-color-scheme svelte-1k3xgut" role="dialog" tabindex="-1"><div class="pie-tool-color-scheme__content svelte-1k3xgut"><p class="pie-tool-color-scheme__description svelte-1k3xgut"> </p> <button type="button" class="pie-tool-color-scheme__dropdown-trigger svelte-1k3xgut" aria-haspopup="menu" aria-controls="pie-tool-color-scheme-menu"><!></button> <p id="pie-tool-color-scheme-status" role="status" aria-live="polite"><!></p> <!></div></div>'), ka = /* @__PURE__ */ er('<div style="display: none;" aria-hidden="true"></div> <!>', 1), $a = {
2607
+ var ga = /* @__PURE__ */ er('<div class="pie-tool-color-scheme__current svelte-1k3xgut"><div class="pie-tool-color-scheme__preview svelte-1k3xgut" aria-hidden="true"><div class="pie-tool-color-scheme__preview-bg svelte-1k3xgut"><div class="pie-tool-color-scheme__preview-text svelte-1k3xgut"></div> <div class="pie-tool-color-scheme__preview-primary svelte-1k3xgut"></div></div></div> <div class="pie-tool-color-scheme__current-info svelte-1k3xgut"><div class="pie-tool-color-scheme__current-name svelte-1k3xgut"> </div> <div class="pie-tool-color-scheme__current-description svelte-1k3xgut"> </div></div> <svg class="pie-tool-color-scheme__dropdown-arrow svelte-1k3xgut" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M7,10L12,15L17,10H7Z"></path></svg></div>'), ma = /* @__PURE__ */ No('<svg xmlns="http://www.w3.org/2000/svg" class="pie-tool-color-scheme__check svelte-1k3xgut" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"></polyline></svg>'), wa = /* @__PURE__ */ er('<button type="button" role="menuitem"><div class="pie-tool-color-scheme__preview svelte-1k3xgut" aria-hidden="true"><div class="pie-tool-color-scheme__preview-bg svelte-1k3xgut"><div class="pie-tool-color-scheme__preview-text svelte-1k3xgut"></div> <div class="pie-tool-color-scheme__preview-primary svelte-1k3xgut"></div></div></div> <div class="pie-tool-color-scheme__info svelte-1k3xgut"><div class="pie-tool-color-scheme__name svelte-1k3xgut"> </div> <div class="pie-tool-color-scheme__description svelte-1k3xgut"> </div></div> <!></button>'), ba = /* @__PURE__ */ er('<div id="pie-tool-color-scheme-menu" class="pie-tool-color-scheme__dropdown svelte-1k3xgut" role="menu"></div>'), ya = /* @__PURE__ */ er('<div class="pie-tool-color-scheme svelte-1k3xgut" role="dialog" tabindex="-1"><div class="pie-tool-color-scheme__content svelte-1k3xgut"><p class="pie-tool-color-scheme__description svelte-1k3xgut"> </p> <button type="button" class="pie-tool-color-scheme__dropdown-trigger svelte-1k3xgut" aria-haspopup="menu" aria-controls="pie-tool-color-scheme-menu"><!></button> <p id="pie-tool-color-scheme-status" role="status" aria-live="polite"><!></p> <!></div></div>'), ka = /* @__PURE__ */ er('<div style="display: none;" aria-hidden="true"></div> <!>', 1), $a = {
2608
2608
  hash: "svelte-1k3xgut",
2609
- code: `.pie-tool-color-scheme.svelte-1k3xgut {position:relative;width:100%;height:100%;min-height:0;background-color:var(--pie-background, white);display:flex;flex-direction:column;}.pie-tool-color-scheme__content.svelte-1k3xgut {padding:1rem;position:relative;display:flex;flex-direction:column;gap:1rem;min-height:0;overflow:auto;}.pie-tool-color-scheme__description.svelte-1k3xgut {margin:0 0 1rem 0;color:var(--pie-text, black);font-size:0.875rem;}.pie-tool-color-scheme__dropdown-trigger.svelte-1k3xgut {width:100%;padding:0.75rem;border:2px solid var(--pie-button-border, #767676);border-radius:0.5rem;background-color:var(--pie-button-bg, white);color:var(--pie-button-color, black);cursor:pointer;transition:all 0.15s ease;}.pie-tool-color-scheme__dropdown-trigger.svelte-1k3xgut:hover {border-color:var(--pie-button-hover-border, #767676);background-color:var(--pie-button-hover-bg, #f0f0f0);color:var(--pie-button-hover-color, black);}.pie-tool-color-scheme__current.svelte-1k3xgut {display:flex;align-items:center;gap:0.75rem;}.pie-tool-color-scheme__current-info.svelte-1k3xgut {flex:1;text-align:left;}.pie-tool-color-scheme__current-name.svelte-1k3xgut {font-size:0.875rem;font-weight:600;color:inherit;}.pie-tool-color-scheme__current-description.svelte-1k3xgut {font-size:0.75rem;color:inherit;}.pie-tool-color-scheme__status.svelte-1k3xgut {margin:0;padding:0.75rem;border:2px solid var(--pie-button-border, #767676);border-radius:0.5rem;background-color:var(--pie-button-bg, #f0f0f0);color:var(--pie-button-color, #000000);font-size:0.875rem;line-height:1.4;}.pie-tool-color-scheme__status--empty.svelte-1k3xgut {display:block;width:0;height:0;padding:0;margin:0;overflow:hidden;border:0;}.pie-tool-color-scheme__dropdown-arrow.svelte-1k3xgut {width:1.5rem;height:1.5rem;flex-shrink:0;}.pie-tool-color-scheme__dropdown.svelte-1k3xgut {position:relative;width:100%;max-height:24rem;background-color:var(--pie-background, white);border:2px solid var(--pie-border, #ccc);border-radius:0.5rem;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);overflow-y:auto;overflow-x:hidden;margin-top:0.5rem;}.pie-tool-color-scheme__option.svelte-1k3xgut {display:flex;align-items:center;gap:0.75rem;width:100%;padding:0.75rem 1rem;border:none;background-color:transparent;color:var(--pie-text, black);cursor:pointer;text-align:left;transition:background-color 0.15s ease;}.pie-tool-color-scheme__option.svelte-1k3xgut:hover {background-color:var(--pie-button-hover-bg, rgba(0, 0, 0, 0.05));color:var(--pie-button-hover-color, black);}.pie-tool-color-scheme__option--active.svelte-1k3xgut {background-color:var(--pie-button-active-bg, #f3f4f6);color:var(--pie-button-color, var(--pie-text, #374151));}.pie-tool-color-scheme__option.svelte-1k3xgut:disabled {outline:2px dashed var(--pie-button-border, #767676);outline-offset:-2px;background-color:var(--pie-button-bg, #f0f0f0);color:var(--pie-button-color, #000000);cursor:not-allowed;}.pie-tool-color-scheme__preview.svelte-1k3xgut {flex-shrink:0;width:2.5rem;height:2.5rem;border:2px solid var(--pie-border, #ccc);border-radius:0.25rem;overflow:hidden;}.pie-tool-color-scheme__preview-bg.svelte-1k3xgut {width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;background-color:#ffffff;}.pie-tool-color-scheme__preview-text.svelte-1k3xgut {font-weight:700;font-size:1.25rem;color:#000000;}.pie-tool-color-scheme__preview-primary.svelte-1k3xgut {position:absolute;bottom:0;right:0;width:0.75rem;height:0.75rem;border-radius:50%;background-color:#3f51b5;}.pie-tool-color-scheme__info.svelte-1k3xgut {flex:1;}.pie-tool-color-scheme__name.svelte-1k3xgut {font-size:0.875rem;font-weight:600;color:inherit;line-height:1.25;}.pie-tool-color-scheme__info.svelte-1k3xgut .pie-tool-color-scheme__description:where(.svelte-1k3xgut) {font-size:0.75rem;color:inherit;}.pie-tool-color-scheme__check.svelte-1k3xgut {flex-shrink:0;width:1rem;height:1rem;color:currentColor;}
2609
+ code: `.pie-tool-color-scheme.svelte-1k3xgut {position:relative;width:100%;height:100%;min-height:0;background-color:var(--pie-background, white);display:flex;flex-direction:column;}.pie-tool-color-scheme__content.svelte-1k3xgut {padding:1rem;position:relative;display:flex;flex-direction:column;gap:1rem;min-height:0;overflow:auto;}.pie-tool-color-scheme__description.svelte-1k3xgut {margin:0 0 1rem 0;color:var(--pie-text, black);font-size:0.875rem;}.pie-tool-color-scheme__dropdown-trigger.svelte-1k3xgut {width:100%;padding:0.75rem;border:2px solid var(--pie-button-border, #767676);border-radius:0.5rem;background-color:var(--pie-button-bg, white);color:var(--pie-button-color, black);cursor:pointer;transition:all 0.15s ease;}.pie-tool-color-scheme__dropdown-trigger.svelte-1k3xgut:hover {border-color:var(--pie-button-hover-border, #767676);background-color:var(--pie-button-hover-bg, #f0f0f0);color:var(--pie-button-hover-color, black);}.pie-tool-color-scheme__current.svelte-1k3xgut {display:flex;align-items:center;gap:0.75rem;}.pie-tool-color-scheme__current-info.svelte-1k3xgut {flex:1;text-align:left;}.pie-tool-color-scheme__current-name.svelte-1k3xgut {font-size:0.875rem;font-weight:600;color:inherit;}.pie-tool-color-scheme__current-description.svelte-1k3xgut {font-size:0.75rem;color:inherit;}.pie-tool-color-scheme__status.svelte-1k3xgut {margin:0;padding:0.75rem;border:2px solid var(--pie-button-border, #767676);border-radius:0.5rem;background-color:var(--pie-button-bg, #f0f0f0);color:var(--pie-button-color, #000000);font-size:0.875rem;line-height:1.4;}.pie-tool-color-scheme__status--empty.svelte-1k3xgut {display:block;width:0;height:0;padding:0;margin:0;overflow:hidden;border:0;}.pie-tool-color-scheme__dropdown-arrow.svelte-1k3xgut {width:1.5rem;height:1.5rem;flex-shrink:0;}.pie-tool-color-scheme__dropdown.svelte-1k3xgut {position:relative;width:100%;max-height:24rem;background-color:var(--pie-background, white);border:2px solid var(--pie-border, #ccc);border-radius:0.5rem;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);overflow-y:auto;overflow-x:hidden;margin-top:0.5rem;}.pie-tool-color-scheme__option.svelte-1k3xgut {display:flex;align-items:center;gap:0.75rem;width:100%;padding:0.75rem 1rem;border:none;background-color:transparent;color:var(--pie-text, black);cursor:pointer;text-align:left;transition:background-color 0.15s ease;}.pie-tool-color-scheme__option.svelte-1k3xgut:hover {background-color:var(--pie-button-hover-bg, rgba(0, 0, 0, 0.05));color:var(--pie-button-hover-color, black);}.pie-tool-color-scheme__option--active.svelte-1k3xgut {background-color:var(--pie-button-active-bg, #f3f4f6);color:var(--pie-button-color, var(--pie-text, #374151));}.pie-tool-color-scheme__option.svelte-1k3xgut:disabled {outline:2px dashed var(--pie-button-border, #767676);outline-offset:-2px;background-color:var(--pie-button-bg, #f0f0f0);color:var(--pie-button-color, #000000);cursor:not-allowed;}.pie-tool-color-scheme__preview.svelte-1k3xgut {flex-shrink:0;width:2.5rem;height:2.5rem;border:2px solid var(--pie-border, #ccc);border-radius:0.25rem;overflow:hidden;}.pie-tool-color-scheme__preview-bg.svelte-1k3xgut {width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;background-color:#ffffff;}.pie-tool-color-scheme__preview-text.svelte-1k3xgut {font-weight:700;font-size:1.25rem;color:#000000;}
2610
+
2611
+ /* A decorative type sample, separate from the theme's visible label. */.pie-tool-color-scheme__preview-text.svelte-1k3xgut::before {content:'A';}.pie-tool-color-scheme__preview-primary.svelte-1k3xgut {position:absolute;bottom:0;right:0;width:0.75rem;height:0.75rem;border-radius:50%;background-color:#3f51b5;}.pie-tool-color-scheme__info.svelte-1k3xgut {flex:1;}.pie-tool-color-scheme__name.svelte-1k3xgut {font-size:0.875rem;font-weight:600;color:inherit;line-height:1.25;}.pie-tool-color-scheme__info.svelte-1k3xgut .pie-tool-color-scheme__description:where(.svelte-1k3xgut) {font-size:0.75rem;color:inherit;}.pie-tool-color-scheme__check.svelte-1k3xgut {flex-shrink:0;width:1rem;height:1rem;color:currentColor;}
2610
2612
 
2611
2613
  /* Keyboard focus styling */.pie-tool-color-scheme__dropdown-trigger.svelte-1k3xgut:focus-visible,
2612
2614
  .pie-tool-color-scheme__option.svelte-1k3xgut:focus-visible {outline:2px solid var(--pie-button-focus-outline, #3b82f6);outline-offset:-2px;}`
@@ -2619,7 +2621,7 @@ function xa(e, t) {
2619
2621
  Ze(() => {
2620
2622
  if (c(s))
2621
2623
  return ps(c(s), (x) => {
2622
- j(f, x, !0);
2624
+ D(f, x, !0);
2623
2625
  });
2624
2626
  });
2625
2627
  function d() {
@@ -2652,12 +2654,12 @@ function xa(e, t) {
2652
2654
  });
2653
2655
  }
2654
2656
  function q(x) {
2655
- j(A, x, !0), j(R, !1), U(x), c(u) && c(m) && c(u).setState(c(m), i(), x), c(h)?.hideTool(i());
2657
+ D(A, x, !0), D(R, !1), U(x), c(u) && c(m) && c(u).setState(c(m), i(), x), c(h)?.hideTool(i());
2656
2658
  }
2657
2659
  function ae() {
2658
- j(R, !c(R));
2660
+ D(R, !c(R));
2659
2661
  }
2660
- const I = /* @__PURE__ */ Ye(() => {
2662
+ const P = /* @__PURE__ */ Ye(() => {
2661
2663
  const x = c(w).find((Y) => Y.id === c(A));
2662
2664
  if (x) return x;
2663
2665
  const M = c(w).find((Y) => Y.id === "default") || c(w)[0];
@@ -2669,10 +2671,10 @@ function xa(e, t) {
2669
2671
  preview: M.preview,
2670
2672
  available: !1
2671
2673
  } : null;
2672
- }), tr = /* @__PURE__ */ Ye(() => c(I) && !c(I).available ? [c(I), ...c(w)] : c(w));
2674
+ }), tr = /* @__PURE__ */ Ye(() => c(P) && !c(P).available ? [c(P), ...c(w)] : c(w));
2673
2675
  function z(x) {
2674
2676
  if (x.key === "Escape")
2675
- c(R) && (x.preventDefault(), x.stopPropagation(), j(R, !1), queueMicrotask(() => c(l)?.focus()));
2677
+ c(R) && (x.preventDefault(), x.stopPropagation(), D(R, !1), queueMicrotask(() => c(l)?.focus()));
2676
2678
  else if (c(R) && (x.key === "ArrowDown" || x.key === "ArrowUp")) {
2677
2679
  x.preventDefault();
2678
2680
  const M = c(o)?.querySelectorAll(".pie-tool-color-scheme__option:not([disabled])");
@@ -2686,10 +2688,10 @@ function xa(e, t) {
2686
2688
  if (!r) return;
2687
2689
  const x = c(m), M = x ? c(u)?.getState(x, i()) : void 0;
2688
2690
  Et(() => {
2689
- typeof M == "string" && M ? (j(A, M, !0), v() !== M && U(M)) : j(A, v(), !0);
2691
+ typeof M == "string" && M ? (D(A, M, !0), v() !== M && U(M)) : D(A, v(), !0);
2690
2692
  });
2691
2693
  }), Ze(() => {
2692
- n() && Et(() => j(A, v(), !0));
2694
+ n() && Et(() => D(A, v(), !0));
2693
2695
  }), Ze(() => _.sync(c(h), i())), Ze(() => {
2694
2696
  c(h) && c(o) && i() && c(h).updateToolElement(i(), c(o));
2695
2697
  }), Ze(() => {
@@ -2697,12 +2699,12 @@ function xa(e, t) {
2697
2699
  }), Xo(() => {
2698
2700
  const x = bs((Y) => {
2699
2701
  const ve = c(o)?.getRootNode(), ct = (ve instanceof ShadowRoot ? ve.activeElement?.closest(".pie-tool-color-scheme__option") : null)?.getAttribute("data-scheme-id");
2700
- j(p, Y), ct && !Y.schemes.some(($e) => $e.id === ct) && queueMicrotask(() => c(l)?.focus());
2702
+ D(p, Y), ct && !Y.schemes.some(($e) => $e.id === ct) && queueMicrotask(() => c(l)?.focus());
2701
2703
  });
2702
2704
  function M(Y) {
2703
2705
  if (!c(R)) return;
2704
2706
  const ve = Y.composedPath();
2705
- (!c(o) || !ve.includes(c(o))) && j(R, !1);
2707
+ (!c(o) || !ve.includes(c(o))) && D(R, !1);
2706
2708
  }
2707
2709
  return document.addEventListener("click", M), () => {
2708
2710
  x(), document.removeEventListener("click", M), _.release();
@@ -2722,19 +2724,19 @@ function xa(e, t) {
2722
2724
  i(x), Sr();
2723
2725
  }
2724
2726
  }, rr = ka(), Tn = mo(rr);
2725
- Kr(Tn, (x) => j(s, x), () => c(s));
2727
+ Kr(Tn, (x) => D(s, x), () => c(s));
2726
2728
  var es = _e(Tn, 2), ts = (x) => {
2727
2729
  var M = ya(), Y = te(M), ve = te(Y), ct = Ot(ve, !0), $e = _e(ve, 2), rs = te($e), ns = (B) => {
2728
- var le = ga(), he = te(le), F = te(he), K = te(F), ir = _e(K, 2);
2729
- J(F), J(he);
2730
+ var le = ga(), he = te(le), W = te(he), K = te(W), ir = _e(K, 2);
2731
+ J(W), J(he);
2730
2732
  var dt = _e(he, 2), vt = te(dt), sr = Ot(vt, !0), Wr = _e(vt, 2), Mt = Ot(Wr, !0);
2731
2733
  J(dt), ii(2), J(le), ar(() => {
2732
- _t(F, `background-color: ${c(I).preview.bg ?? ""}`), _t(K, `color: ${c(I).preview.text ?? ""}`), _t(ir, `background-color: ${c(I).preview.primary ?? ""}`), ht(sr, c(I).name), ht(Mt, c(I).description);
2734
+ _t(W, `background-color: ${c(P).preview.bg ?? ""}`), _t(K, `color: ${c(P).preview.text ?? ""}`), _t(ir, `background-color: ${c(P).preview.primary ?? ""}`), ht(sr, c(P).name), ht(Mt, c(P).description);
2733
2735
  }), Fe(B, le);
2734
2736
  };
2735
2737
  Rt(rs, (B) => {
2736
- c(I) && B(ns);
2737
- }), J($e), Kr($e, (B) => j(l, B), () => c(l));
2738
+ c(P) && B(ns);
2739
+ }), J($e), Kr($e, (B) => D(l, B), () => c(l));
2738
2740
  var nr = _e($e, 2);
2739
2741
  let Mn;
2740
2742
  var is = te(nr), ss = (B) => {
@@ -2742,11 +2744,11 @@ function xa(e, t) {
2742
2744
  ar((he) => ht(le, he), [() => c(g).t("tools.theme.unavailableStatus")]), Fe(B, le);
2743
2745
  };
2744
2746
  Rt(is, (B) => {
2745
- c(I) && !c(I).available && B(ss);
2747
+ c(P) && !c(P).available && B(ss);
2746
2748
  }), J(nr);
2747
2749
  var os = _e(nr, 2), as = (B) => {
2748
2750
  var le = ba();
2749
- ea(le, 21, () => c(tr), (he) => he.id, (he, F) => {
2751
+ ea(le, 21, () => c(tr), (he) => he.id, (he, W) => {
2750
2752
  var K = wa();
2751
2753
  let ir;
2752
2754
  var dt = te(K), vt = te(dt), sr = te(vt), Wr = _e(sr, 2);
@@ -2758,22 +2760,22 @@ function xa(e, t) {
2758
2760
  Fe(At, vs);
2759
2761
  };
2760
2762
  Rt(cs, (At) => {
2761
- c(A) === c(F).id && At(ds);
2763
+ c(A) === c(W).id && At(ds);
2762
2764
  }), J(K), ar((At) => {
2763
- ir = Vn(K, 1, "pie-tool-color-scheme__option svelte-1k3xgut", null, ir, { "pie-tool-color-scheme__option--active": c(A) === c(F).id }), xe(K, "aria-label", At), xe(K, "aria-current", c(A) === c(F).id), xe(K, "aria-disabled", !c(F).available), K.disabled = !c(F).available, xe(K, "data-scheme-id", c(F).id), _t(vt, `background-color: ${c(F).preview.bg ?? ""}`), _t(sr, `color: ${c(F).preview.text ?? ""}`), _t(Wr, `background-color: ${c(F).preview.primary ?? ""}`), ht(ls, c(F).name), ht(us, c(F).description);
2764
- }, [() => c(F).available ? c(F).name : c(g).t("tools.theme.optionUnavailableA11y", { name: c(F).name })]), jr("click", K, () => q(c(F).id)), Fe(he, K);
2765
+ ir = Vn(K, 1, "pie-tool-color-scheme__option svelte-1k3xgut", null, ir, { "pie-tool-color-scheme__option--active": c(A) === c(W).id }), xe(K, "aria-label", At), xe(K, "aria-current", c(A) === c(W).id), xe(K, "aria-disabled", !c(W).available), K.disabled = !c(W).available, xe(K, "data-scheme-id", c(W).id), _t(vt, `background-color: ${c(W).preview.bg ?? ""}`), _t(sr, `color: ${c(W).preview.text ?? ""}`), _t(Wr, `background-color: ${c(W).preview.primary ?? ""}`), ht(ls, c(W).name), ht(us, c(W).description);
2766
+ }, [() => c(W).available ? `${c(W).name} ${c(W).description}`.trim() : c(g).t("tools.theme.optionUnavailableA11y", { name: `${c(W).name} ${c(W).description}`.trim() })]), jr("click", K, () => q(c(W).id)), Fe(he, K);
2765
2767
  }), J(le), Fe(B, le);
2766
2768
  };
2767
2769
  Rt(os, (B) => {
2768
2770
  c(R) && B(as);
2769
- }), J(Y), J(M), Kr(M, (B) => j(o, B), () => c(o)), ar((B, le, he, F, K) => {
2770
- xe(M, "lang", B), xe(M, "dir", le), xe(M, "aria-label", he), ht(ct, F), xe($e, "aria-label", K), xe($e, "aria-expanded", c(R)), xe($e, "aria-describedby", c(I) && !c(I).available ? "pie-tool-color-scheme-status" : void 0), Mn = Vn(nr, 1, "pie-tool-color-scheme__status svelte-1k3xgut", null, Mn, { "pie-tool-color-scheme__status--empty": c(I)?.available !== !1 }), M.dir = M.dir;
2771
+ }), J(Y), J(M), Kr(M, (B) => D(o, B), () => c(o)), ar((B, le, he, W, K) => {
2772
+ xe(M, "lang", B), xe(M, "dir", le), xe(M, "aria-label", he), ht(ct, W), xe($e, "aria-label", K), xe($e, "aria-expanded", c(R)), xe($e, "aria-describedby", c(P) && !c(P).available ? "pie-tool-color-scheme-status" : void 0), Mn = Vn(nr, 1, "pie-tool-color-scheme__status svelte-1k3xgut", null, Mn, { "pie-tool-color-scheme__status--empty": c(P)?.available !== !1 }), M.dir = M.dir;
2771
2773
  }, [
2772
2774
  () => c(g).getLocale(),
2773
2775
  () => c(g).getDirection?.() ?? "ltr",
2774
2776
  () => c(g).t("tools.theme.selectorA11y"),
2775
2777
  () => c(g).t("tools.theme.hint"),
2776
- () => c(I) ? c(g).t("tools.theme.selectCurrentA11y", { name: c(I).name }) : c(g).t("tools.theme.selectA11y")
2778
+ () => c(P) ? c(g).t("tools.theme.selectCurrentA11y", { name: `${c(P).name} ${c(P).description}`.trim() }) : c(g).t("tools.theme.selectA11y")
2777
2779
  ]), jr("keydown", M, z), jr("click", $e, ae), Fe(x, M);
2778
2780
  };
2779
2781
  return Rt(es, (x) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-players/pie-tool-theme",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.6",
4
4
  "type": "module",
5
5
  "description": "Theme tool for PIE assessment player - provides accessible themes and color schemes",
6
6
  "repository": {
@@ -37,9 +37,9 @@
37
37
  "unpkg": "./dist/tool-color-scheme.js",
38
38
  "jsdelivr": "./dist/tool-color-scheme.js",
39
39
  "dependencies": {
40
- "@pie-players/pie-assessment-toolkit": "1.0.0-beta.4",
41
- "@pie-players/pie-players-shared": "1.0.0-beta.4",
42
- "@pie-players/pie-theme": "1.0.0-beta.4"
40
+ "@pie-players/pie-assessment-toolkit": "1.0.0-beta.6",
41
+ "@pie-players/pie-players-shared": "1.0.0-beta.6",
42
+ "@pie-players/pie-theme": "1.0.0-beta.6"
43
43
  },
44
44
  "types": "./dist/index.d.ts",
45
45
  "scripts": {