@pie-players/pie-tool-periodic-table 0.3.31 → 0.3.33
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.
- package/dist/tool-periodic-table.js +95 -97
- package/package.json +4 -4
|
@@ -2,7 +2,7 @@ if (typeof window < "u") {
|
|
|
2
2
|
var fn, dn;
|
|
3
3
|
((fn = (dn = window).__svelte ?? (dn.__svelte = {})).v ?? (fn.v = /* @__PURE__ */ new Set())).add("5");
|
|
4
4
|
}
|
|
5
|
-
var pt = {}, I =
|
|
5
|
+
var pt = {}, I = /* @__PURE__ */ Symbol();
|
|
6
6
|
var Ln = Array.isArray, Bo = Array.prototype.indexOf, _t = Array.prototype.includes, ci = Array.from, ti = Object.keys, ii = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, Ho = Object.getOwnPropertyDescriptors, Do = Object.prototype, Go = Array.prototype, On = Object.getPrototypeOf, pn = Object.isExtensible, Fo = () => {
|
|
7
7
|
};
|
|
8
8
|
function Ko(e) {
|
|
@@ -48,7 +48,8 @@ function P(e, t, i) {
|
|
|
48
48
|
writable: !0
|
|
49
49
|
}) : e[t] = i, e;
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Ps = 1 << 24, se = 1024, ge = 2048, rt = 4096, Di = 8192, Jo = 16384, Gi = 32768, _n = 1 << 25, Fi = 65536, Ls = 1 << 17, Os = 1 << 18, bt = 1 << 19, Uo = 1 << 20, At = 1 << 25, Ct = 65536, mn = 1 << 21, Yo = 1 << 22, ni = 1 << 23, Yt = /* @__PURE__ */ Symbol("$state"), In = /* @__PURE__ */ Symbol("legacy props"), Vo = /* @__PURE__ */ Symbol(""), Zo = /* @__PURE__ */ Symbol("proxy path");
|
|
52
|
+
var je = new class extends Error {
|
|
52
53
|
constructor(...t) {
|
|
53
54
|
super(...t), P(this, "name", "StaleReactionError"), P(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
54
55
|
}
|
|
@@ -201,14 +202,14 @@ function Xn(e) {
|
|
|
201
202
|
var t = x;
|
|
202
203
|
if (t === null)
|
|
203
204
|
return z.f |= ni, e;
|
|
204
|
-
if (
|
|
205
|
+
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
205
206
|
throw e;
|
|
206
207
|
Ie(e, t);
|
|
207
208
|
}
|
|
208
209
|
function Ie(e, t) {
|
|
209
210
|
for (; t !== null; ) {
|
|
210
|
-
if (t.f & 128) {
|
|
211
|
-
if (
|
|
211
|
+
if ((t.f & 128) !== 0) {
|
|
212
|
+
if ((t.f & 32768) === 0) throw e;
|
|
212
213
|
try {
|
|
213
214
|
t.b.error(e);
|
|
214
215
|
return;
|
|
@@ -225,15 +226,15 @@ function L(e, t) {
|
|
|
225
226
|
e.f = e.f & mr | t;
|
|
226
227
|
}
|
|
227
228
|
function Ki(e) {
|
|
228
|
-
e.f & 512 || e.deps === null ? L(e, se) : L(e, rt);
|
|
229
|
+
(e.f & 512) !== 0 || e.deps === null ? L(e, se) : L(e, rt);
|
|
229
230
|
}
|
|
230
231
|
function qn(e) {
|
|
231
232
|
if (e !== null)
|
|
232
233
|
for (const t of e)
|
|
233
|
-
|
|
234
|
+
(t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= Ct, qn(t.deps));
|
|
234
235
|
}
|
|
235
236
|
function Jn(e, t, i) {
|
|
236
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && i.add(e), qn(e.deps), L(e, se);
|
|
237
|
+
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && i.add(e), qn(e.deps), L(e, se);
|
|
237
238
|
}
|
|
238
239
|
var hr = !1, Bt = !1;
|
|
239
240
|
function vr(e) {
|
|
@@ -286,7 +287,7 @@ var yr = 1, si = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap
|
|
|
286
287
|
s(Zt, this).add(t);
|
|
287
288
|
}
|
|
288
289
|
capture(t, i, n = !1) {
|
|
289
|
-
t.v !== I && !this.previous.has(t) && this.previous.set(t, t.v), t.f & 8388608
|
|
290
|
+
t.v !== I && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [i, n]), J?.set(t, i)), this.is_fork || (t.v = i);
|
|
290
291
|
}
|
|
291
292
|
activate() {
|
|
292
293
|
k = this;
|
|
@@ -373,17 +374,17 @@ var yr = 1, si = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap
|
|
|
373
374
|
}
|
|
374
375
|
}
|
|
375
376
|
schedule(t) {
|
|
376
|
-
if (Ei = t, t.b?.is_pending && t.f & 16777228 &&
|
|
377
|
+
if (Ei = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
|
|
377
378
|
t.b.defer_effect(t);
|
|
378
379
|
return;
|
|
379
380
|
}
|
|
380
381
|
for (var i = t; i.parent !== null; ) {
|
|
381
382
|
i = i.parent;
|
|
382
383
|
var n = i.f;
|
|
383
|
-
if (ht !== null && i === x && (Ce || (z === null ||
|
|
384
|
+
if (ht !== null && i === x && (Ce || (z === null || (z.f & 2) === 0) && !hr))
|
|
384
385
|
return;
|
|
385
|
-
if (n & 96) {
|
|
386
|
-
if (
|
|
386
|
+
if ((n & 96) !== 0) {
|
|
387
|
+
if ((n & 1024) === 0) return;
|
|
387
388
|
i.f ^= se;
|
|
388
389
|
}
|
|
389
390
|
}
|
|
@@ -445,8 +446,8 @@ function Qn(e, t, i) {
|
|
|
445
446
|
e.f ^= se;
|
|
446
447
|
for (var n = e.first; n !== null; ) {
|
|
447
448
|
var o = n.f, r = (o & 96) !== 0;
|
|
448
|
-
if (!(r && o & 1024 || o & 8192 || s(We, this).has(n)) && n.fn !== null) {
|
|
449
|
-
r ? n.f ^= se : o & 4 ? t.push(n) : Ce && o & 16777224 ? i.push(n) : Pt(n) && (o & 16 && s(Ve, this).add(n), gt(n));
|
|
449
|
+
if (!(r && (o & 1024) !== 0 || (o & 8192) !== 0 || s(We, this).has(n)) && n.fn !== null) {
|
|
450
|
+
r ? n.f ^= se : (o & 4) !== 0 ? t.push(n) : Ce && (o & 16777224) !== 0 ? i.push(n) : Pt(n) && ((o & 16) !== 0 && s(Ve, this).add(n), gt(n));
|
|
450
451
|
var a = n.first;
|
|
451
452
|
if (a !== null) {
|
|
452
453
|
n = a;
|
|
@@ -482,14 +483,14 @@ function br() {
|
|
|
482
483
|
e && u.discard();
|
|
483
484
|
else if (t.length > 0) {
|
|
484
485
|
if (e) for (const m of s(Zt, this)) u.unskip_effect(m, (p) => {
|
|
485
|
-
p.f & 4194320 ? u.schedule(p) : E(V, u, ji).call(u, [p]);
|
|
486
|
+
(p.f & 4194320) !== 0 ? u.schedule(p) : E(V, u, ji).call(u, [p]);
|
|
486
487
|
});
|
|
487
488
|
u.activate();
|
|
488
489
|
var o = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
|
|
489
490
|
for (var a of t) eo(a, n, o, r);
|
|
490
491
|
r = /* @__PURE__ */ new Map();
|
|
491
492
|
var l = [...u.current.keys()].filter((m) => this.current.has(m) ? this.current.get(m)[0] !== m : !0);
|
|
492
|
-
for (const m of s(Mi, this))
|
|
493
|
+
for (const m of s(Mi, this)) (m.f & 155648) === 0 && Ji(m, l, r) && ((m.f & 4194320) !== 0 ? (L(m, ge), u.schedule(m)) : s(vt, u).add(m));
|
|
493
494
|
if (s(me, u).length > 0) {
|
|
494
495
|
u.apply();
|
|
495
496
|
for (var c of s(me, u)) E(V, u, Qn).call(u, c, [], []);
|
|
@@ -531,17 +532,17 @@ function yn(e) {
|
|
|
531
532
|
if (t !== 0) {
|
|
532
533
|
for (var i = 0; i < t; ) {
|
|
533
534
|
var n = e[i++];
|
|
534
|
-
if (
|
|
535
|
+
if ((n.f & 24576) === 0 && Pt(n) && (xe = /* @__PURE__ */ new Set(), gt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && bo(n), xe?.size > 0)) {
|
|
535
536
|
et.clear();
|
|
536
537
|
for (const o of xe) {
|
|
537
|
-
if (o.f & 24576) continue;
|
|
538
|
+
if ((o.f & 24576) !== 0) continue;
|
|
538
539
|
const r = [o];
|
|
539
540
|
let a = o.parent;
|
|
540
541
|
for (; a !== null; )
|
|
541
542
|
xe.has(a) && (xe.delete(a), r.push(a)), a = a.parent;
|
|
542
543
|
for (let l = r.length - 1; l >= 0; l--) {
|
|
543
544
|
const c = r[l];
|
|
544
|
-
c.f & 24576
|
|
545
|
+
(c.f & 24576) === 0 && gt(c);
|
|
545
546
|
}
|
|
546
547
|
}
|
|
547
548
|
xe.clear();
|
|
@@ -554,7 +555,7 @@ function eo(e, t, i, n) {
|
|
|
554
555
|
if (!i.has(e) && (i.add(e), e.reactions !== null))
|
|
555
556
|
for (const o of e.reactions) {
|
|
556
557
|
const r = o.f;
|
|
557
|
-
r & 2 ? eo(o, t, i, n) : r & 4194320 &&
|
|
558
|
+
(r & 2) !== 0 ? eo(o, t, i, n) : (r & 4194320) !== 0 && (r & 2048) === 0 && Ji(o, t, n) && (L(o, ge), Ui(o));
|
|
558
559
|
}
|
|
559
560
|
}
|
|
560
561
|
function Ji(e, t, i) {
|
|
@@ -562,7 +563,7 @@ function Ji(e, t, i) {
|
|
|
562
563
|
if (n !== void 0) return n;
|
|
563
564
|
if (e.deps !== null) for (const o of e.deps) {
|
|
564
565
|
if (_t.call(t, o)) return !0;
|
|
565
|
-
if (o.f & 2 && Ji(o, t, i))
|
|
566
|
+
if ((o.f & 2) !== 0 && Ji(o, t, i))
|
|
566
567
|
return i.set(o, !0), !0;
|
|
567
568
|
}
|
|
568
569
|
return i.set(e, !1), !1;
|
|
@@ -571,8 +572,8 @@ function Ui(e) {
|
|
|
571
572
|
k.schedule(e);
|
|
572
573
|
}
|
|
573
574
|
function to(e, t) {
|
|
574
|
-
if (!(e.f & 32 && e.f & 1024)) {
|
|
575
|
-
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), L(e, se);
|
|
575
|
+
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
576
|
+
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), L(e, se);
|
|
576
577
|
for (var i = e.first; i !== null; )
|
|
577
578
|
to(i, t), i = i.next;
|
|
578
579
|
}
|
|
@@ -758,7 +759,7 @@ function Mr(e, t, i, n) {
|
|
|
758
759
|
try {
|
|
759
760
|
n(f);
|
|
760
761
|
} catch (_) {
|
|
761
|
-
a.f & 16384
|
|
762
|
+
(a.f & 16384) === 0 && Ie(_, a);
|
|
762
763
|
}
|
|
763
764
|
ai();
|
|
764
765
|
}
|
|
@@ -778,7 +779,7 @@ function Rr() {
|
|
|
778
779
|
var e = x, t = z, i = F, n = k;
|
|
779
780
|
if (0) var o;
|
|
780
781
|
return function(a = !0) {
|
|
781
|
-
Ae(e), le(t), mt(i), a &&
|
|
782
|
+
Ae(e), le(t), mt(i), a && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
|
|
782
783
|
};
|
|
783
784
|
}
|
|
784
785
|
function ai(e = !0) {
|
|
@@ -823,7 +824,7 @@ function jr(e, t, i) {
|
|
|
823
824
|
}
|
|
824
825
|
var m = k;
|
|
825
826
|
if (a) {
|
|
826
|
-
if (c.f & 32768) var p = ro();
|
|
827
|
+
if ((c.f & 32768) !== 0) var p = ro();
|
|
827
828
|
if (n.b.is_rendered())
|
|
828
829
|
l.get(m)?.reject(je), l.delete(m);
|
|
829
830
|
else {
|
|
@@ -833,11 +834,11 @@ function jr(e, t, i) {
|
|
|
833
834
|
l.set(m, u);
|
|
834
835
|
}
|
|
835
836
|
const f = (_, h = void 0) => {
|
|
836
|
-
if (p && p(h === je), !(h === je || c.f & 16384)) {
|
|
837
|
+
if (p && p(h === je), !(h === je || (c.f & 16384) !== 0)) {
|
|
837
838
|
if (m.activate(), h)
|
|
838
839
|
r.f |= ni, yt(r, h);
|
|
839
840
|
else {
|
|
840
|
-
r.f & 8388608 && (r.f ^= ni), yt(r, _);
|
|
841
|
+
(r.f & 8388608) !== 0 && (r.f ^= ni), yt(r, _);
|
|
841
842
|
for (const [y, d] of l) {
|
|
842
843
|
if (l.delete(y), y === m) break;
|
|
843
844
|
d.reject(je);
|
|
@@ -878,13 +879,10 @@ function Tr(e) {
|
|
|
878
879
|
}
|
|
879
880
|
function Zi(e) {
|
|
880
881
|
var t, i = x, n = e.parent;
|
|
881
|
-
if (!He && n !== null && n.f & 24576)
|
|
882
|
+
if (!He && n !== null && (n.f & 24576) !== 0)
|
|
882
883
|
return cr(), e.v;
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
} finally {
|
|
886
|
-
}
|
|
887
|
-
else try {
|
|
884
|
+
Ae(n);
|
|
885
|
+
try {
|
|
888
886
|
e.f &= ~Ct, Tr(e), t = Ao(e);
|
|
889
887
|
} finally {
|
|
890
888
|
Ae(i);
|
|
@@ -935,7 +933,7 @@ function co(e, t = !1, i = !0) {
|
|
|
935
933
|
return n;
|
|
936
934
|
}
|
|
937
935
|
function he(e, t, i = !1) {
|
|
938
|
-
z !== null && (!ve || z.f & 131072) && Nt() && z.f & 4325394 && (re === null || !_t.call(re, e)) && ar();
|
|
936
|
+
z !== null && (!ve || (z.f & 131072) !== 0) && Nt() && (z.f & 4325394) !== 0 && (re === null || !_t.call(re, e)) && ar();
|
|
939
937
|
let n = i ? Je(t) : t;
|
|
940
938
|
return yt(e, n, ri);
|
|
941
939
|
}
|
|
@@ -943,18 +941,18 @@ function yt(e, t, i = null) {
|
|
|
943
941
|
if (!e.equals(t)) {
|
|
944
942
|
et.set(e, He ? t : e.v);
|
|
945
943
|
var n = st.ensure();
|
|
946
|
-
if (n.capture(e, t), e.f & 2) {
|
|
944
|
+
if (n.capture(e, t), (e.f & 2) !== 0) {
|
|
947
945
|
const o = e;
|
|
948
|
-
e.f & 2048 && Zi(o), J === null && Ki(o);
|
|
946
|
+
(e.f & 2048) !== 0 && Zi(o), J === null && Ki(o);
|
|
949
947
|
}
|
|
950
|
-
e.wv = $o(), uo(e, ge, i), Nt() && x !== null && x.f & 1024 &&
|
|
948
|
+
e.wv = $o(), uo(e, ge, i), Nt() && x !== null && (x.f & 1024) !== 0 && (x.f & 96) === 0 && (ne === null ? Ur([e]) : ne.push(e)), !n.is_fork && Oi.size > 0 && !lo && Nr();
|
|
951
949
|
}
|
|
952
950
|
return t;
|
|
953
951
|
}
|
|
954
952
|
function Nr() {
|
|
955
953
|
lo = !1;
|
|
956
954
|
for (const e of Oi)
|
|
957
|
-
e.f & 1024 && L(e, rt), Pt(e) && gt(e);
|
|
955
|
+
(e.f & 1024) !== 0 && L(e, rt), Pt(e) && gt(e);
|
|
958
956
|
Oi.clear();
|
|
959
957
|
}
|
|
960
958
|
function Mt(e) {
|
|
@@ -967,12 +965,12 @@ function uo(e, t, i) {
|
|
|
967
965
|
var l = n[a], c = l.f;
|
|
968
966
|
if (!(!o && l === x)) {
|
|
969
967
|
var u = (c & ge) === 0;
|
|
970
|
-
if (u && L(l, t), c & 2) {
|
|
968
|
+
if (u && L(l, t), (c & 2) !== 0) {
|
|
971
969
|
var m = l;
|
|
972
|
-
J?.delete(m), c & 65536
|
|
970
|
+
J?.delete(m), (c & 65536) === 0 && (c & 512 && (l.f |= Ct), uo(m, rt, i));
|
|
973
971
|
} else if (u) {
|
|
974
972
|
var p = l;
|
|
975
|
-
c & 16 && xe !== null && xe.add(p), i !== null ? i.push(p) : Ui(p);
|
|
973
|
+
(c & 16) !== 0 && xe !== null && xe.add(p), i !== null ? i.push(p) : Ui(p);
|
|
976
974
|
}
|
|
977
975
|
}
|
|
978
976
|
}
|
|
@@ -1183,7 +1181,7 @@ function Ir(e, t) {
|
|
|
1183
1181
|
}
|
|
1184
1182
|
function Me(e, t) {
|
|
1185
1183
|
var i = x;
|
|
1186
|
-
i !== null && i.f & 8192 && (e |= Di);
|
|
1184
|
+
i !== null && (i.f & 8192) !== 0 && (e |= Di);
|
|
1187
1185
|
var n = {
|
|
1188
1186
|
ctx: F,
|
|
1189
1187
|
deps: null,
|
|
@@ -1202,16 +1200,16 @@ function Me(e, t) {
|
|
|
1202
1200
|
};
|
|
1203
1201
|
k?.register_created_effect(n);
|
|
1204
1202
|
var o = n;
|
|
1205
|
-
if (e & 4) ht !== null ? ht.push(n) : st.ensure().schedule(n);
|
|
1203
|
+
if ((e & 4) !== 0) ht !== null ? ht.push(n) : st.ensure().schedule(n);
|
|
1206
1204
|
else if (t !== null) {
|
|
1207
1205
|
try {
|
|
1208
1206
|
gt(n);
|
|
1209
1207
|
} catch (a) {
|
|
1210
1208
|
throw Y(n), a;
|
|
1211
1209
|
}
|
|
1212
|
-
o.deps === null && o.teardown === null && o.nodes === null && o.first === o.last &&
|
|
1210
|
+
o.deps === null && o.teardown === null && o.nodes === null && o.first === o.last && (o.f & 524288) === 0 && (o = o.first, (e & 16) !== 0 && (e & 65536) !== 0 && o !== null && (o.f |= Fi));
|
|
1213
1211
|
}
|
|
1214
|
-
if (o !== null && (o.parent = i, i !== null && Ir(o, i), z !== null && z.f & 2 &&
|
|
1212
|
+
if (o !== null && (o.parent = i, i !== null && Ir(o, i), z !== null && (z.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1215
1213
|
var r = z;
|
|
1216
1214
|
(r.effects ?? (r.effects = [])).push(o);
|
|
1217
1215
|
}
|
|
@@ -1284,18 +1282,18 @@ function nn(e, t = !1) {
|
|
|
1284
1282
|
o.abort(je);
|
|
1285
1283
|
});
|
|
1286
1284
|
var n = i.next;
|
|
1287
|
-
i.f & 64 ? i.parent = null : Y(i, t), i = n;
|
|
1285
|
+
(i.f & 64) !== 0 ? i.parent = null : Y(i, t), i = n;
|
|
1288
1286
|
}
|
|
1289
1287
|
}
|
|
1290
1288
|
function Xr(e) {
|
|
1291
1289
|
for (var t = e.first; t !== null; ) {
|
|
1292
1290
|
var i = t.next;
|
|
1293
|
-
t.f & 32
|
|
1291
|
+
(t.f & 32) === 0 && Y(t), t = i;
|
|
1294
1292
|
}
|
|
1295
1293
|
}
|
|
1296
1294
|
function Y(e, t = !0) {
|
|
1297
1295
|
var i = !1;
|
|
1298
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (qr(e.nodes.start, e.nodes.end), i = !0), L(e, _n), nn(e, t && !i), Tt(e, 0);
|
|
1296
|
+
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (qr(e.nodes.start, e.nodes.end), i = !0), L(e, _n), nn(e, t && !i), Tt(e, 0);
|
|
1299
1297
|
var n = e.nodes && e.nodes.t;
|
|
1300
1298
|
if (n !== null) for (const r of n) r.stop();
|
|
1301
1299
|
go(e), e.f ^= _n, e.f |= Jo;
|
|
@@ -1324,14 +1322,14 @@ function at(e, t, i = !0) {
|
|
|
1324
1322
|
} else o();
|
|
1325
1323
|
}
|
|
1326
1324
|
function wo(e, t, i) {
|
|
1327
|
-
if (
|
|
1325
|
+
if ((e.f & 8192) === 0) {
|
|
1328
1326
|
e.f ^= Di;
|
|
1329
1327
|
var n = e.nodes && e.nodes.t;
|
|
1330
1328
|
if (n !== null)
|
|
1331
1329
|
for (const l of n) (l.is_global || i) && t.push(l);
|
|
1332
1330
|
for (var o = e.first; o !== null; ) {
|
|
1333
1331
|
var r = o.next;
|
|
1334
|
-
if (
|
|
1332
|
+
if ((o.f & 64) === 0) {
|
|
1335
1333
|
var a = (o.f & 65536) !== 0 || (o.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1336
1334
|
wo(o, t, a ? i : !1);
|
|
1337
1335
|
}
|
|
@@ -1343,8 +1341,8 @@ function on(e) {
|
|
|
1343
1341
|
ko(e, !0);
|
|
1344
1342
|
}
|
|
1345
1343
|
function ko(e, t) {
|
|
1346
|
-
if (e.f & 8192) {
|
|
1347
|
-
e.f ^= Di, e.f & 1024
|
|
1344
|
+
if ((e.f & 8192) !== 0) {
|
|
1345
|
+
e.f ^= Di, (e.f & 1024) === 0 && (L(e, ge), st.ensure().schedule(e));
|
|
1348
1346
|
for (var i = e.first; i !== null; ) {
|
|
1349
1347
|
var n = i.next, o = (i.f & 65536) !== 0 || (i.f & 32) !== 0;
|
|
1350
1348
|
ko(i, o ? t : !1), i = n;
|
|
@@ -1375,7 +1373,7 @@ function Ae(e) {
|
|
|
1375
1373
|
}
|
|
1376
1374
|
var re = null;
|
|
1377
1375
|
function xo(e) {
|
|
1378
|
-
z !== null && (!Ce || z.f & 2) && (re === null ? re = [e] : re.push(e));
|
|
1376
|
+
z !== null && (!Ce || (z.f & 2) !== 0) && (re === null ? re = [e] : re.push(e));
|
|
1379
1377
|
}
|
|
1380
1378
|
var Z = null, te = 0, ne = null;
|
|
1381
1379
|
function Ur(e) {
|
|
@@ -1390,13 +1388,13 @@ function $o() {
|
|
|
1390
1388
|
}
|
|
1391
1389
|
function Pt(e) {
|
|
1392
1390
|
var t = e.f;
|
|
1393
|
-
if (t & 2048) return !0;
|
|
1394
|
-
if (t & 2 && (e.f &= ~Ct), t & 4096) {
|
|
1391
|
+
if ((t & 2048) !== 0) return !0;
|
|
1392
|
+
if (t & 2 && (e.f &= ~Ct), (t & 4096) !== 0) {
|
|
1395
1393
|
for (var i = e.deps, n = i.length, o = 0; o < n; o++) {
|
|
1396
1394
|
var r = i[o];
|
|
1397
1395
|
if (Pt(r) && so(r), r.wv > e.wv) return !0;
|
|
1398
1396
|
}
|
|
1399
|
-
t & 512 && J === null && L(e, se);
|
|
1397
|
+
(t & 512) !== 0 && J === null && L(e, se);
|
|
1400
1398
|
}
|
|
1401
1399
|
return !1;
|
|
1402
1400
|
}
|
|
@@ -1405,12 +1403,12 @@ function zo(e, t, i = !0) {
|
|
|
1405
1403
|
if (n !== null && !(!Ce && re !== null && _t.call(re, e)))
|
|
1406
1404
|
for (var o = 0; o < n.length; o++) {
|
|
1407
1405
|
var r = n[o];
|
|
1408
|
-
r.f & 2 ? zo(r, t, !1) : t === r && (i ? L(r, ge) : r.f & 1024 && L(r, rt), Ui(r));
|
|
1406
|
+
(r.f & 2) !== 0 ? zo(r, t, !1) : t === r && (i ? L(r, ge) : (r.f & 1024) !== 0 && L(r, rt), Ui(r));
|
|
1409
1407
|
}
|
|
1410
1408
|
}
|
|
1411
1409
|
function Ao(e) {
|
|
1412
1410
|
var t = Z, i = te, n = ne, o = z, r = re, a = F, l = ve, c = tt, u = e.f;
|
|
1413
|
-
Z = null, te = 0, ne = null, z = u & 96 ?
|
|
1411
|
+
Z = null, te = 0, ne = null, z = (u & 96) === 0 ? e : null, re = null, mt(e.ctx), ve = !1, tt = ++Ue, e.ac !== null && (vo(() => {
|
|
1414
1412
|
e.ac.abort(je);
|
|
1415
1413
|
}), e.ac = null);
|
|
1416
1414
|
try {
|
|
@@ -1423,18 +1421,18 @@ function Ao(e) {
|
|
|
1423
1421
|
if (_ || Tt(e, te), f !== null && te > 0)
|
|
1424
1422
|
for (f.length = te + Z.length, h = 0; h < Z.length; h++) f[te + h] = Z[h];
|
|
1425
1423
|
else e.deps = f = Z;
|
|
1426
|
-
if (en() && e.f & 512) for (h = te; h < f.length; h++) {
|
|
1424
|
+
if (en() && (e.f & 512) !== 0) for (h = te; h < f.length; h++) {
|
|
1427
1425
|
var y;
|
|
1428
1426
|
((y = f[h]).reactions ?? (y.reactions = [])).push(e);
|
|
1429
1427
|
}
|
|
1430
1428
|
} else !_ && f !== null && te < f.length && (Tt(e, te), f.length = te);
|
|
1431
|
-
if (Nt() && ne !== null && !ve && f !== null &&
|
|
1429
|
+
if (Nt() && ne !== null && !ve && f !== null && (e.f & 6146) === 0) for (h = 0; h < ne.length; h++) zo(ne[h], e);
|
|
1432
1430
|
if (o !== null && o !== e) {
|
|
1433
1431
|
if (Ue++, o.deps !== null) for (let d = 0; d < i; d += 1) o.deps[d].rv = Ue;
|
|
1434
1432
|
if (t !== null) for (const d of t) d.rv = Ue;
|
|
1435
1433
|
ne !== null && (n === null ? n = ne : n.push(...ne));
|
|
1436
1434
|
}
|
|
1437
|
-
return e.f & 8388608 && (e.f ^= ni), p;
|
|
1435
|
+
return (e.f & 8388608) !== 0 && (e.f ^= ni), p;
|
|
1438
1436
|
} catch (d) {
|
|
1439
1437
|
return Xn(d);
|
|
1440
1438
|
} finally {
|
|
@@ -1450,9 +1448,9 @@ function Yr(e, t) {
|
|
|
1450
1448
|
o === 0 ? i = t.reactions = null : (i[n] = i[o], i.pop());
|
|
1451
1449
|
}
|
|
1452
1450
|
}
|
|
1453
|
-
if (i === null && t.f & 2 && (Z === null || !_t.call(Z, t))) {
|
|
1451
|
+
if (i === null && (t.f & 2) !== 0 && (Z === null || !_t.call(Z, t))) {
|
|
1454
1452
|
var r = t;
|
|
1455
|
-
r.f & 512 && (r.f ^= 512, r.f &= ~Ct), r.v !== I && Ki(r), Cr(r), Tt(r, 0);
|
|
1453
|
+
(r.f & 512) !== 0 && (r.f ^= 512, r.f &= ~Ct), r.v !== I && Ki(r), Cr(r), Tt(r, 0);
|
|
1456
1454
|
}
|
|
1457
1455
|
}
|
|
1458
1456
|
function Tt(e, t) {
|
|
@@ -1462,13 +1460,13 @@ function Tt(e, t) {
|
|
|
1462
1460
|
}
|
|
1463
1461
|
function gt(e) {
|
|
1464
1462
|
var t = e.f;
|
|
1465
|
-
if (
|
|
1463
|
+
if ((t & 16384) === 0) {
|
|
1466
1464
|
L(e, se);
|
|
1467
1465
|
var i = x, n = Qt;
|
|
1468
1466
|
if (x = e, Qt = !0, 0)
|
|
1469
1467
|
var o, r;
|
|
1470
1468
|
try {
|
|
1471
|
-
t & 16777232 ? Xr(e) : nn(e), go(e);
|
|
1469
|
+
(t & 16777232) !== 0 ? Xr(e) : nn(e), go(e);
|
|
1472
1470
|
var a = Ao(e);
|
|
1473
1471
|
if (e.teardown = typeof a == "function" ? a : null, e.wv = So, 0)
|
|
1474
1472
|
for (var l of e.deps) ;
|
|
@@ -1479,9 +1477,9 @@ function gt(e) {
|
|
|
1479
1477
|
}
|
|
1480
1478
|
function g(e) {
|
|
1481
1479
|
var t = (e.f & 2) !== 0;
|
|
1482
|
-
if (Jr?.add(e), z !== null && !ve && !(x !== null && x.f & 16384) && (re === null || !_t.call(re, e))) {
|
|
1480
|
+
if (Jr?.add(e), z !== null && !ve && !(x !== null && (x.f & 16384) !== 0) && (re === null || !_t.call(re, e))) {
|
|
1483
1481
|
var i = z.deps;
|
|
1484
|
-
if (z.f & 2097152)
|
|
1482
|
+
if ((z.f & 2097152) !== 0)
|
|
1485
1483
|
e.rv < Ue && (e.rv = Ue, Z === null && i !== null && i[te] === e ? te++ : Z === null ? Z = [e] : Z.push(e));
|
|
1486
1484
|
else {
|
|
1487
1485
|
var n;
|
|
@@ -1491,7 +1489,7 @@ function g(e) {
|
|
|
1491
1489
|
}
|
|
1492
1490
|
}
|
|
1493
1491
|
if (0) {
|
|
1494
|
-
if (!ve && reactivity_loss_tracker && !reactivity_loss_tracker.warned &&
|
|
1492
|
+
if (!ve && reactivity_loss_tracker && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1495
1493
|
var r;
|
|
1496
1494
|
if (tracing_mode_flag && !ve && tracing_expressions !== null && z !== null && tracing_expressions.reaction === z && !e.trace) {
|
|
1497
1495
|
if (r)
|
|
@@ -1503,25 +1501,25 @@ function g(e) {
|
|
|
1503
1501
|
var c = e;
|
|
1504
1502
|
if (He) {
|
|
1505
1503
|
var u = c.v;
|
|
1506
|
-
return (
|
|
1504
|
+
return ((c.f & 1024) === 0 && c.reactions !== null || Mo(c)) && (u = Zi(c)), et.set(c, u), u;
|
|
1507
1505
|
}
|
|
1508
1506
|
var m = (c.f & 512) === 0 && !ve && z !== null && (Qt || (z.f & 512) !== 0), p = (c.f & Gi) === 0;
|
|
1509
1507
|
Pt(c) && (m && (c.f |= 512), so(c)), m && !p && (ao(c), Eo(c));
|
|
1510
1508
|
}
|
|
1511
1509
|
if (J?.has(e)) return J.get(e);
|
|
1512
|
-
if (e.f & 8388608) throw e.v;
|
|
1510
|
+
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1513
1511
|
return e.v;
|
|
1514
1512
|
}
|
|
1515
1513
|
function Eo(e) {
|
|
1516
1514
|
if (e.f |= 512, e.deps !== null)
|
|
1517
1515
|
for (const t of e.deps)
|
|
1518
|
-
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 &&
|
|
1516
|
+
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (ao(t), Eo(t));
|
|
1519
1517
|
}
|
|
1520
1518
|
function Mo(e) {
|
|
1521
1519
|
if (e.v === I) return !0;
|
|
1522
1520
|
if (e.deps === null) return !1;
|
|
1523
1521
|
for (const t of e.deps)
|
|
1524
|
-
if (et.has(t) || t.f & 2 && Mo(t)) return !0;
|
|
1522
|
+
if (et.has(t) || (t.f & 2) !== 0 && Mo(t)) return !0;
|
|
1525
1523
|
return !1;
|
|
1526
1524
|
}
|
|
1527
1525
|
function Ro(e) {
|
|
@@ -1532,7 +1530,7 @@ function Ro(e) {
|
|
|
1532
1530
|
ve = t;
|
|
1533
1531
|
}
|
|
1534
1532
|
}
|
|
1535
|
-
var ft = Symbol("events"), jo = /* @__PURE__ */ new Set(), Ii = /* @__PURE__ */ new Set();
|
|
1533
|
+
var ft = /* @__PURE__ */ Symbol("events"), jo = /* @__PURE__ */ new Set(), Ii = /* @__PURE__ */ new Set();
|
|
1536
1534
|
function Kt(e, t, i) {
|
|
1537
1535
|
(t[ft] ?? (t[ft] = {}))[e] = i;
|
|
1538
1536
|
}
|
|
@@ -1636,7 +1634,7 @@ function ts() {
|
|
|
1636
1634
|
function pe(e, t) {
|
|
1637
1635
|
if (A) {
|
|
1638
1636
|
var i = x;
|
|
1639
|
-
(
|
|
1637
|
+
((i.f & 32768) === 0 || i.nodes.end === null) && (i.nodes.end = $), fi();
|
|
1640
1638
|
return;
|
|
1641
1639
|
}
|
|
1642
1640
|
e !== null && e.before(t);
|
|
@@ -1670,7 +1668,7 @@ var is = [
|
|
|
1670
1668
|
"defer",
|
|
1671
1669
|
"disablepictureinpicture",
|
|
1672
1670
|
"disableremoteplayback"
|
|
1673
|
-
],
|
|
1671
|
+
], Is = [
|
|
1674
1672
|
...is,
|
|
1675
1673
|
"formNoValidate",
|
|
1676
1674
|
"isMap",
|
|
@@ -1695,7 +1693,7 @@ var rs = [
|
|
|
1695
1693
|
"$state.raw",
|
|
1696
1694
|
"$derived",
|
|
1697
1695
|
"$derived.by"
|
|
1698
|
-
],
|
|
1696
|
+
], Bs = [
|
|
1699
1697
|
...rs,
|
|
1700
1698
|
"$state.eager",
|
|
1701
1699
|
"$state.snapshot",
|
|
@@ -1900,7 +1898,7 @@ function Hi(e, t, i = !0) {
|
|
|
1900
1898
|
var qt;
|
|
1901
1899
|
function Jt(e, t, i, n, o, r = null) {
|
|
1902
1900
|
var a = e, l = /* @__PURE__ */ new Map();
|
|
1903
|
-
if (t & 4) {
|
|
1901
|
+
if ((t & 4) !== 0) {
|
|
1904
1902
|
var c = e;
|
|
1905
1903
|
a = A ? U(/* @__PURE__ */ ot(c)) : c.appendChild(Q());
|
|
1906
1904
|
}
|
|
@@ -1910,7 +1908,7 @@ function Jt(e, t, i, n, o, r = null) {
|
|
|
1910
1908
|
return Ln(v) ? v : v == null ? [] : ci(v);
|
|
1911
1909
|
}), p, f = /* @__PURE__ */ new Map(), _ = !0;
|
|
1912
1910
|
function h(v) {
|
|
1913
|
-
d.effect.f & 16384
|
|
1911
|
+
(d.effect.f & 16384) === 0 && (d.pending.delete(v), d.fallback = u, us(d, p, a, t, n), u !== null && (p.length === 0 ? (u.f & 33554432) === 0 ? on(u) : (u.f ^= At, zt(u, null, a)) : at(u, () => {
|
|
1914
1912
|
u = null;
|
|
1915
1913
|
})));
|
|
1916
1914
|
}
|
|
@@ -1947,17 +1945,17 @@ function Jt(e, t, i, n, o, r = null) {
|
|
|
1947
1945
|
_ = !1, A && (a = $);
|
|
1948
1946
|
}
|
|
1949
1947
|
function $t(e) {
|
|
1950
|
-
for (; e !== null &&
|
|
1948
|
+
for (; e !== null && (e.f & 32) === 0; ) e = e.next;
|
|
1951
1949
|
return e;
|
|
1952
1950
|
}
|
|
1953
1951
|
function us(e, t, i, n, o) {
|
|
1954
1952
|
var r = (n & 8) !== 0, a = t.length, l = e.items, c = $t(e.effect.first), u, m = null, p, f = [], _ = [], h, y, d, v;
|
|
1955
1953
|
if (r) for (v = 0; v < a; v += 1)
|
|
1956
|
-
h = t[v], y = o(h, v), d = l.get(y).e, d.f & 33554432
|
|
1954
|
+
h = t[v], y = o(h, v), d = l.get(y).e, (d.f & 33554432) === 0 && (d.nodes?.a?.measure(), (p ?? (p = /* @__PURE__ */ new Set())).add(d));
|
|
1957
1955
|
for (v = 0; v < a; v += 1) {
|
|
1958
1956
|
if (h = t[v], y = o(h, v), d = l.get(y).e, e.outrogroups !== null) for (const O of e.outrogroups)
|
|
1959
1957
|
O.pending.delete(d), O.done.delete(d);
|
|
1960
|
-
if (d.f & 8192 && (on(d), r && (d.nodes?.a?.unfix(), (p ?? (p = /* @__PURE__ */ new Set())).delete(d))), d.f & 33554432)
|
|
1958
|
+
if ((d.f & 8192) !== 0 && (on(d), r && (d.nodes?.a?.unfix(), (p ?? (p = /* @__PURE__ */ new Set())).delete(d))), (d.f & 33554432) !== 0)
|
|
1961
1959
|
if (d.f ^= At, d === c) zt(d, null, i);
|
|
1962
1960
|
else {
|
|
1963
1961
|
var M = m ? m.next : c;
|
|
@@ -1981,7 +1979,7 @@ function us(e, t, i, n, o) {
|
|
|
1981
1979
|
(u ?? (u = /* @__PURE__ */ new Set())).add(c), _.push(c), c = $t(c.next);
|
|
1982
1980
|
if (c === null) continue;
|
|
1983
1981
|
}
|
|
1984
|
-
d.f & 33554432
|
|
1982
|
+
(d.f & 33554432) === 0 && f.push(d), m = d, c = $t(d.next);
|
|
1985
1983
|
}
|
|
1986
1984
|
if (e.outrogroups !== null) {
|
|
1987
1985
|
for (const O of e.outrogroups) O.pending.size === 0 && (Hi(e, ci(O.done)), e.outrogroups?.delete(O));
|
|
@@ -1990,12 +1988,12 @@ function us(e, t, i, n, o) {
|
|
|
1990
1988
|
if (c !== null || u !== void 0) {
|
|
1991
1989
|
var X = [];
|
|
1992
1990
|
if (u !== void 0)
|
|
1993
|
-
for (d of u) d.f & 8192
|
|
1991
|
+
for (d of u) (d.f & 8192) === 0 && X.push(d);
|
|
1994
1992
|
for (; c !== null; )
|
|
1995
|
-
|
|
1993
|
+
(c.f & 8192) === 0 && c !== e.fallback && X.push(c), c = $t(c.next);
|
|
1996
1994
|
var ce = X.length;
|
|
1997
1995
|
if (ce > 0) {
|
|
1998
|
-
var Lt = n & 4 && a === 0 ? i : null;
|
|
1996
|
+
var Lt = (n & 4) !== 0 && a === 0 ? i : null;
|
|
1999
1997
|
if (r) {
|
|
2000
1998
|
for (v = 0; v < ce; v += 1) X[v].nodes?.a?.measure();
|
|
2001
1999
|
for (v = 0; v < ce; v += 1) X[v].nodes?.a?.fix();
|
|
@@ -2009,7 +2007,7 @@ function us(e, t, i, n, o) {
|
|
|
2009
2007
|
});
|
|
2010
2008
|
}
|
|
2011
2009
|
function fs(e, t, i, n, o, r, a, l) {
|
|
2012
|
-
var c = a & 1 ? a & 16
|
|
2010
|
+
var c = (a & 1) !== 0 ? (a & 16) === 0 ? /* @__PURE__ */ co(i, !1, !1) : nt(i) : null, u = (a & 2) !== 0 ? nt(o) : null;
|
|
2013
2011
|
return {
|
|
2014
2012
|
v: c,
|
|
2015
2013
|
i: u,
|
|
@@ -2020,7 +2018,7 @@ function fs(e, t, i, n, o, r, a, l) {
|
|
|
2020
2018
|
}
|
|
2021
2019
|
function zt(e, t, i) {
|
|
2022
2020
|
if (e.nodes)
|
|
2023
|
-
for (var n = e.nodes.start, o = e.nodes.end, r = t &&
|
|
2021
|
+
for (var n = e.nodes.start, o = e.nodes.end, r = t && (t.f & 33554432) === 0 ? t.nodes.start : i; n !== null; ) {
|
|
2024
2022
|
var a = /* @__PURE__ */ Ee(n);
|
|
2025
2023
|
if (r.before(n), n === o) return;
|
|
2026
2024
|
n = a;
|
|
@@ -2119,7 +2117,7 @@ function Tn(e, t, i, n) {
|
|
|
2119
2117
|
} else n && (Array.isArray(n) ? (zi(e, i?.[0], n[0]), zi(e, i?.[1], n[1], "important")) : zi(e, i, n));
|
|
2120
2118
|
return n;
|
|
2121
2119
|
}
|
|
2122
|
-
var ms = Symbol("is custom element"), hs = Symbol("is html"), vs = Qo ? "link" : "LINK";
|
|
2120
|
+
var ms = /* @__PURE__ */ Symbol("is custom element"), hs = /* @__PURE__ */ Symbol("is html"), vs = Qo ? "link" : "LINK";
|
|
2123
2121
|
function lt(e, t, i, n) {
|
|
2124
2122
|
var o = ys(e);
|
|
2125
2123
|
if (A && (o[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === vs)) {
|
|
@@ -2184,23 +2182,23 @@ function Pn(e, t, i, n) {
|
|
|
2184
2182
|
} : h = () => {
|
|
2185
2183
|
var S = e[t];
|
|
2186
2184
|
return S !== void 0 && (l = void 0), S === void 0 ? l : S;
|
|
2187
|
-
}, o &&
|
|
2185
|
+
}, o && (i & 4) === 0) return h;
|
|
2188
2186
|
if (m) {
|
|
2189
2187
|
var y = e.$$legacy;
|
|
2190
|
-
return function(S, N) {
|
|
2188
|
+
return (function(S, N) {
|
|
2191
2189
|
return arguments.length > 0 ? ((!o || !N || y || _) && m(N ? h() : S), S) : h();
|
|
2192
|
-
};
|
|
2190
|
+
});
|
|
2193
2191
|
}
|
|
2194
|
-
var d = !1, v = (i & 1 ? pi : Vi)(() => (d = !1, h()));
|
|
2192
|
+
var d = !1, v = ((i & 1) !== 0 ? pi : Vi)(() => (d = !1, h()));
|
|
2195
2193
|
r && g(v);
|
|
2196
2194
|
var M = x;
|
|
2197
|
-
return function(S, N) {
|
|
2195
|
+
return (function(S, N) {
|
|
2198
2196
|
if (arguments.length > 0) {
|
|
2199
2197
|
const K = N ? g(v) : o && r ? Je(S) : S;
|
|
2200
2198
|
return he(v, K), d = !0, l !== void 0 && (l = K), S;
|
|
2201
2199
|
}
|
|
2202
|
-
return He && d || M.f & 16384 ? v.v : g(v);
|
|
2203
|
-
};
|
|
2200
|
+
return He && d || (M.f & 16384) !== 0 ? v.v : g(v);
|
|
2201
|
+
});
|
|
2204
2202
|
}
|
|
2205
2203
|
function ws(e) {
|
|
2206
2204
|
return new ks(e);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/pie-tool-periodic-table",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive periodic table reference tool for PIE assessment player",
|
|
6
6
|
"repository": {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"unpkg": "./dist/tool-periodic-table.js",
|
|
39
39
|
"jsdelivr": "./dist/tool-periodic-table.js",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@pie-players/pie-assessment-toolkit": "0.3.
|
|
42
|
-
"@pie-players/pie-context": "0.3.
|
|
43
|
-
"@pie-players/pie-players-shared": "0.3.
|
|
41
|
+
"@pie-players/pie-assessment-toolkit": "0.3.33",
|
|
42
|
+
"@pie-players/pie-context": "0.3.33",
|
|
43
|
+
"@pie-players/pie-players-shared": "0.3.33"
|
|
44
44
|
},
|
|
45
45
|
"types": "./dist/index.d.ts",
|
|
46
46
|
"scripts": {
|