@pie-qti/player-elements 0.1.24 → 0.1.25
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/ItemToolBar-d36g3aw4-B6TGPyKt.js +3079 -0
- package/dist/ItemToolBar-d36g3aw4-B6TGPyKt.js.map +1 -0
- package/dist/{define-D7_K0JFy.js → define-D80uAEx4.js} +1902 -4395
- package/dist/define-D80uAEx4.js.map +1 -0
- package/dist/dist-BSG0NOza.js +229 -0
- package/dist/dist-BSG0NOza.js.map +1 -0
- package/dist/{dist-ffJZTPTU.js → dist-C8BDh5vZ.js} +987 -707
- package/dist/dist-C8BDh5vZ.js.map +1 -0
- package/dist/dist-CQel8-vi.js +2507 -0
- package/dist/dist-CQel8-vi.js.map +1 -0
- package/dist/{dist-BaQdJU08.js → dist-L-bDDBry.js} +116 -103
- package/dist/dist-L-bDDBry.js.map +1 -0
- package/dist/{element-DSCNeDLu.js → element-C5rTAwch.js} +2 -2
- package/dist/{element-DSCNeDLu.js.map → element-C5rTAwch.js.map} +1 -1
- package/dist/{element-class-DQy2cIPM-CldZrSRR.js → element-class-B_qAd8ET-DGj15cBY.js} +5124 -4448
- package/dist/element-class-B_qAd8ET-DGj15cBY.js.map +1 -0
- package/dist/elements.js +3 -3
- package/dist/index.js +2 -2
- package/dist/item-toolbar-element-BgqPFwsS.js +1990 -0
- package/dist/item-toolbar-element-BgqPFwsS.js.map +1 -0
- package/dist/{language-tags-DVlRltrl.js → language-tags-BwFWXo71.js} +3 -3
- package/dist/{language-tags-DVlRltrl.js.map → language-tags-BwFWXo71.js.map} +1 -1
- package/dist/{nl-NL-BeQBX6yq.js → nl-NL-BRA_1Wcl.js} +5 -3
- package/dist/nl-NL-BRA_1Wcl.js.map +1 -0
- package/dist/pie-DwmznDHb.js +363 -0
- package/dist/pie-DwmznDHb.js.map +1 -0
- package/dist/pie-assessment-toolkit-Cruxm385.js +5 -0
- package/dist/pie-assessment-toolkit-Cruxm385.js.map +1 -0
- package/dist/pie-assessment-toolkit-DJfg6laX.js +5 -0
- package/dist/pie-assessment-toolkit-DJfg6laX.js.map +1 -0
- package/dist/{pie-assessment-toolkit-element-CpiB3twr.js → pie-assessment-toolkit-element-CT5UuvVY.js} +1364 -1203
- package/dist/pie-assessment-toolkit-element-CT5UuvVY.js.map +1 -0
- package/dist/pie-tool-calculator-Crfk-IZe.js +378 -0
- package/dist/pie-tool-calculator-Crfk-IZe.js.map +1 -0
- package/dist/{provider-Y5PhmTAu.js → provider-gBXlGb0d.js} +3 -3
- package/dist/{provider-Y5PhmTAu.js.map → provider-gBXlGb0d.js.map} +1 -1
- package/dist/register-players.js +1 -1
- package/dist/register.js +10246 -9664
- package/dist/register.js.map +1 -1
- package/dist/{resolveItems-D8DJkv-4.js → resolveItems-CNMvD8LP.js} +2 -2
- package/dist/{resolveItems-D8DJkv-4.js.map → resolveItems-CNMvD8LP.js.map} +1 -1
- package/dist/{root-DSkIM1v3.js → root-dCY6j_Hh.js} +3 -3
- package/dist/{root-DSkIM1v3.js.map → root-dCY6j_Hh.js.map} +1 -1
- package/dist/tag-names-DZGvnAgd.js +2495 -0
- package/dist/tag-names-DZGvnAgd.js.map +1 -0
- package/dist/{tool-tts-inline-B71NTBbb.js → tool-tts-inline-k3hLJUfp.js} +1315 -1303
- package/dist/tool-tts-inline-k3hLJUfp.js.map +1 -0
- package/package.json +8 -8
- package/dist/define-D7_K0JFy.js.map +0 -1
- package/dist/dist-BRTWr852.js +0 -5809
- package/dist/dist-BRTWr852.js.map +0 -1
- package/dist/dist-BaQdJU08.js.map +0 -1
- package/dist/dist-DwvskOs6.js +0 -220
- package/dist/dist-DwvskOs6.js.map +0 -1
- package/dist/dist-ffJZTPTU.js.map +0 -1
- package/dist/element-class-DQy2cIPM-CldZrSRR.js.map +0 -1
- package/dist/item-toolbar-element-BW9Y_n5x.js +0 -1990
- package/dist/item-toolbar-element-BW9Y_n5x.js.map +0 -1
- package/dist/nl-NL-BeQBX6yq.js.map +0 -1
- package/dist/pie-assessment-toolkit-element-CpiB3twr.js.map +0 -1
- package/dist/pie-tool-calculator-BiWMTJe7.js +0 -2992
- package/dist/pie-tool-calculator-BiWMTJe7.js.map +0 -1
- package/dist/tool-tts-inline-B71NTBbb.js.map +0 -1
|
@@ -1,2992 +0,0 @@
|
|
|
1
|
-
import { g as e } from "./dist-ffJZTPTU.js";
|
|
2
|
-
//#region ../../node_modules/.bun/@pie-players+pie-tool-calculator-desmos@0.3.68+0f70b067cf29f19a/node_modules/@pie-players/pie-tool-calculator-desmos/dist/pie-tool-calculator.js
|
|
3
|
-
if (typeof window < "u") {
|
|
4
|
-
var t, n;
|
|
5
|
-
((t = (n = window).__svelte ?? (n.__svelte = {})).v ?? (t.v = /* @__PURE__ */ new Set())).add("5");
|
|
6
|
-
}
|
|
7
|
-
var r = {}, i = /* @__PURE__ */ Symbol("uninitialized"), a = Array.isArray, o = Array.prototype.indexOf, s = Array.prototype.includes, c = Array.from, l = Object.keys, u = Object.defineProperty, d = Object.getOwnPropertyDescriptor, f = Object.getOwnPropertyDescriptors, p = Object.prototype, m = Array.prototype, h = Object.getPrototypeOf, g = Object.isExtensible, ee = () => {};
|
|
8
|
-
function _(e) {
|
|
9
|
-
for (var t = 0; t < e.length; t++) e[t]();
|
|
10
|
-
}
|
|
11
|
-
function v() {
|
|
12
|
-
var e, t;
|
|
13
|
-
return {
|
|
14
|
-
promise: new Promise((n, r) => {
|
|
15
|
-
e = n, t = r;
|
|
16
|
-
}),
|
|
17
|
-
resolve: e,
|
|
18
|
-
reject: t
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function y(e) {
|
|
22
|
-
"@babel/helpers - typeof";
|
|
23
|
-
return y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
24
|
-
return typeof e;
|
|
25
|
-
} : function(e) {
|
|
26
|
-
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
27
|
-
}, y(e);
|
|
28
|
-
}
|
|
29
|
-
function te(e, t) {
|
|
30
|
-
if (y(e) != "object" || !e) return e;
|
|
31
|
-
var n = e[Symbol.toPrimitive];
|
|
32
|
-
if (n !== void 0) {
|
|
33
|
-
var r = n.call(e, t || "default");
|
|
34
|
-
if (y(r) != "object") return r;
|
|
35
|
-
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
36
|
-
}
|
|
37
|
-
return (t === "string" ? String : Number)(e);
|
|
38
|
-
}
|
|
39
|
-
function ne(e) {
|
|
40
|
-
var t = te(e, "string");
|
|
41
|
-
return y(t) == "symbol" ? t : t + "";
|
|
42
|
-
}
|
|
43
|
-
function b(e, t, n) {
|
|
44
|
-
return (t = ne(t)) in e ? Object.defineProperty(e, t, {
|
|
45
|
-
value: n,
|
|
46
|
-
enumerable: !0,
|
|
47
|
-
configurable: !0,
|
|
48
|
-
writable: !0
|
|
49
|
-
}) : e[t] = n, e;
|
|
50
|
-
}
|
|
51
|
-
var x = 1024, S = 2048, re = 4096, ie = 8192, ae = 16384, oe = 32768, se = 1 << 25, ce = 65536, C = 1 << 19, le = 1 << 20, ue = 65536, de = 1 << 21, fe = 1 << 22, pe = 1 << 23, me = /* @__PURE__ */ Symbol("$state"), he = /* @__PURE__ */ Symbol("legacy props"), ge = /* @__PURE__ */ Symbol(""), _e = /* @__PURE__ */ Symbol("attributes"), ve = /* @__PURE__ */ Symbol("class"), ye = /* @__PURE__ */ Symbol("style"), be = /* @__PURE__ */ Symbol("text"), xe = new class extends Error {
|
|
52
|
-
constructor(...e) {
|
|
53
|
-
super(...e), b(this, "name", "StaleReactionError"), b(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
54
|
-
}
|
|
55
|
-
}(), Se = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
56
|
-
function Ce(e) {
|
|
57
|
-
throw Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
58
|
-
}
|
|
59
|
-
function we() {
|
|
60
|
-
throw Error("https://svelte.dev/e/async_derived_orphan");
|
|
61
|
-
}
|
|
62
|
-
function Te(e) {
|
|
63
|
-
throw Error("https://svelte.dev/e/effect_in_teardown");
|
|
64
|
-
}
|
|
65
|
-
function Ee() {
|
|
66
|
-
throw Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
67
|
-
}
|
|
68
|
-
function De(e) {
|
|
69
|
-
throw Error("https://svelte.dev/e/effect_orphan");
|
|
70
|
-
}
|
|
71
|
-
function Oe() {
|
|
72
|
-
throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
73
|
-
}
|
|
74
|
-
function ke() {
|
|
75
|
-
throw Error("https://svelte.dev/e/hydration_failed");
|
|
76
|
-
}
|
|
77
|
-
function Ae(e) {
|
|
78
|
-
throw Error("https://svelte.dev/e/props_invalid_value");
|
|
79
|
-
}
|
|
80
|
-
function je() {
|
|
81
|
-
throw Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
82
|
-
}
|
|
83
|
-
function Me() {
|
|
84
|
-
throw Error("https://svelte.dev/e/state_prototype_fixed");
|
|
85
|
-
}
|
|
86
|
-
function Ne() {
|
|
87
|
-
throw Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
88
|
-
}
|
|
89
|
-
function Pe() {
|
|
90
|
-
throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
91
|
-
}
|
|
92
|
-
function Fe() {
|
|
93
|
-
console.warn("https://svelte.dev/e/derived_inert");
|
|
94
|
-
}
|
|
95
|
-
function Ie(e) {
|
|
96
|
-
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
97
|
-
}
|
|
98
|
-
function Le() {
|
|
99
|
-
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
100
|
-
}
|
|
101
|
-
var w = !1;
|
|
102
|
-
function Re(e) {
|
|
103
|
-
w = e;
|
|
104
|
-
}
|
|
105
|
-
var T;
|
|
106
|
-
function ze(e) {
|
|
107
|
-
if (e === null) throw Ie(), r;
|
|
108
|
-
return T = e;
|
|
109
|
-
}
|
|
110
|
-
function Be() {
|
|
111
|
-
return ze(/* @__PURE__ */ tr(T));
|
|
112
|
-
}
|
|
113
|
-
function Ve(e) {
|
|
114
|
-
if (w) {
|
|
115
|
-
if (/* @__PURE__ */ tr(T) !== null) throw Ie(), r;
|
|
116
|
-
T = e;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
function He(e = 1) {
|
|
120
|
-
if (w) {
|
|
121
|
-
for (var t = e, n = T; t--;) n = /* @__PURE__ */ tr(n);
|
|
122
|
-
T = n;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
function Ue(e = !0) {
|
|
126
|
-
for (var t = 0, n = T;;) {
|
|
127
|
-
if (n.nodeType === 8) {
|
|
128
|
-
var r = n.data;
|
|
129
|
-
if (r === "]") {
|
|
130
|
-
if (t === 0) return n;
|
|
131
|
-
--t;
|
|
132
|
-
} else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
|
|
133
|
-
}
|
|
134
|
-
var i = /* @__PURE__ */ tr(n);
|
|
135
|
-
e && n.remove(), n = i;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
function We(e) {
|
|
139
|
-
if (!e || e.nodeType !== 8) throw Ie(), r;
|
|
140
|
-
return e.data;
|
|
141
|
-
}
|
|
142
|
-
function Ge(e) {
|
|
143
|
-
return e === this.v;
|
|
144
|
-
}
|
|
145
|
-
function Ke(e, t) {
|
|
146
|
-
return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
|
|
147
|
-
}
|
|
148
|
-
function qe(e) {
|
|
149
|
-
return !Ke(e, this.v);
|
|
150
|
-
}
|
|
151
|
-
var E = null;
|
|
152
|
-
function Je(e) {
|
|
153
|
-
E = e;
|
|
154
|
-
}
|
|
155
|
-
function Ye(e, t = !1, n) {
|
|
156
|
-
E = {
|
|
157
|
-
p: E,
|
|
158
|
-
i: !1,
|
|
159
|
-
c: null,
|
|
160
|
-
e: null,
|
|
161
|
-
s: e,
|
|
162
|
-
x: null,
|
|
163
|
-
r: J,
|
|
164
|
-
l: null
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
function Xe(e) {
|
|
168
|
-
var t = E, n = t.e;
|
|
169
|
-
if (n !== null) {
|
|
170
|
-
t.e = null;
|
|
171
|
-
for (var r of n) pr(r);
|
|
172
|
-
}
|
|
173
|
-
return e !== void 0 && (t.x = e), t.i = !0, E = t.p, e ?? {};
|
|
174
|
-
}
|
|
175
|
-
function Ze() {
|
|
176
|
-
return !0;
|
|
177
|
-
}
|
|
178
|
-
var Qe = [];
|
|
179
|
-
function $e() {
|
|
180
|
-
var e = Qe;
|
|
181
|
-
Qe = [], _(e);
|
|
182
|
-
}
|
|
183
|
-
function et(e) {
|
|
184
|
-
if (Qe.length === 0 && !tn) {
|
|
185
|
-
var t = Qe;
|
|
186
|
-
queueMicrotask(() => {
|
|
187
|
-
t === Qe && $e();
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
Qe.push(e);
|
|
191
|
-
}
|
|
192
|
-
function tt() {
|
|
193
|
-
for (; Qe.length > 0;) $e();
|
|
194
|
-
}
|
|
195
|
-
function nt(e) {
|
|
196
|
-
var t = J;
|
|
197
|
-
if (t === null) return G.f |= pe, e;
|
|
198
|
-
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
199
|
-
rt(e, t);
|
|
200
|
-
}
|
|
201
|
-
function rt(e, t) {
|
|
202
|
-
if (!(t !== null && t.f & 16384)) {
|
|
203
|
-
for (; t !== null;) {
|
|
204
|
-
if (t.f & 128) {
|
|
205
|
-
if (!(t.f & 32768)) throw e;
|
|
206
|
-
try {
|
|
207
|
-
t.b.error(e);
|
|
208
|
-
return;
|
|
209
|
-
} catch (t) {
|
|
210
|
-
e = t;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
t = t.parent;
|
|
214
|
-
}
|
|
215
|
-
throw e;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
var it = ~(S | re | x);
|
|
219
|
-
function D(e, t) {
|
|
220
|
-
e.f = e.f & it | t;
|
|
221
|
-
}
|
|
222
|
-
function at(e) {
|
|
223
|
-
e.f & 512 || e.deps === null ? D(e, x) : D(e, re);
|
|
224
|
-
}
|
|
225
|
-
function ot(e) {
|
|
226
|
-
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ue, ot(t.deps));
|
|
227
|
-
}
|
|
228
|
-
function st(e, t, n) {
|
|
229
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), ot(e.deps), D(e, x);
|
|
230
|
-
}
|
|
231
|
-
var ct = !1;
|
|
232
|
-
function lt(e) {
|
|
233
|
-
var t = ct;
|
|
234
|
-
try {
|
|
235
|
-
return ct = !1, [e(), ct];
|
|
236
|
-
} finally {
|
|
237
|
-
ct = t;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
function ut(e) {
|
|
241
|
-
var t = G, n = J;
|
|
242
|
-
q(null), Ir(null);
|
|
243
|
-
try {
|
|
244
|
-
return e();
|
|
245
|
-
} finally {
|
|
246
|
-
q(t), Ir(n);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
function dt(e) {
|
|
250
|
-
let t = 0, n = Vn(0), r;
|
|
251
|
-
return () => {
|
|
252
|
-
ur() && (Q(n), vr(() => (t === 0 && (r = $r(() => e(() => Gn(n)))), t += 1, () => {
|
|
253
|
-
et(() => {
|
|
254
|
-
--t, t === 0 && (r?.(), r = void 0, Gn(n));
|
|
255
|
-
});
|
|
256
|
-
})));
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
function ft(e, t) {
|
|
260
|
-
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
261
|
-
}
|
|
262
|
-
function pt(e, t) {
|
|
263
|
-
ft(e, t), t.add(e);
|
|
264
|
-
}
|
|
265
|
-
function O(e, t, n) {
|
|
266
|
-
ft(e, t), t.set(e, n);
|
|
267
|
-
}
|
|
268
|
-
function k(e, t, n) {
|
|
269
|
-
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
270
|
-
throw TypeError("Private element is not present on this object");
|
|
271
|
-
}
|
|
272
|
-
function A(e, t, n) {
|
|
273
|
-
return e.set(k(e, t), n), n;
|
|
274
|
-
}
|
|
275
|
-
function j(e, t) {
|
|
276
|
-
return e.get(k(e, t));
|
|
277
|
-
}
|
|
278
|
-
var mt = ce | C;
|
|
279
|
-
function ht(e, t, n, r) {
|
|
280
|
-
new Dt(e, t, n, r);
|
|
281
|
-
}
|
|
282
|
-
var M = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakSet(), Dt = class {
|
|
283
|
-
constructor(e, t, n, r) {
|
|
284
|
-
pt(this, L), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), O(this, M, void 0), O(this, gt, w ? T : null), O(this, _t, void 0), O(this, vt, void 0), O(this, N, void 0), O(this, P, null), O(this, F, null), O(this, I, null), O(this, yt, null), O(this, bt, 0), O(this, xt, 0), O(this, St, !1), O(this, Ct, /* @__PURE__ */ new Set()), O(this, wt, /* @__PURE__ */ new Set()), O(this, Tt, null), O(this, Et, dt(() => (A(Tt, this, Vn(j(bt, this))), () => {
|
|
285
|
-
A(Tt, this, null);
|
|
286
|
-
}))), A(M, this, e), A(_t, this, t), A(vt, this, (e) => {
|
|
287
|
-
var t = J;
|
|
288
|
-
t.b = this, t.f |= 128, n(e);
|
|
289
|
-
}), this.parent = J.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), A(N, this, br(() => {
|
|
290
|
-
if (w) {
|
|
291
|
-
let e = j(gt, this);
|
|
292
|
-
Be();
|
|
293
|
-
let t = e.data === "[!";
|
|
294
|
-
if (e.data.startsWith("[?")) {
|
|
295
|
-
let t = JSON.parse(e.data.slice(2));
|
|
296
|
-
k(L, this, kt).call(this, t);
|
|
297
|
-
} else t ? k(L, this, jt).call(this) : k(L, this, Ot).call(this);
|
|
298
|
-
} else k(L, this, Mt).call(this);
|
|
299
|
-
}, mt)), w && A(M, this, T);
|
|
300
|
-
}
|
|
301
|
-
defer_effect(e) {
|
|
302
|
-
st(e, j(Ct, this), j(wt, this));
|
|
303
|
-
}
|
|
304
|
-
is_rendered() {
|
|
305
|
-
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
306
|
-
}
|
|
307
|
-
has_pending_snippet() {
|
|
308
|
-
return !!j(_t, this).pending;
|
|
309
|
-
}
|
|
310
|
-
update_pending_count(e, t) {
|
|
311
|
-
k(L, this, Ft).call(this, e, t), A(bt, this, j(bt, this) + e), !(!j(Tt, this) || j(St, this)) && (A(St, this, !0), et(() => {
|
|
312
|
-
A(St, this, !1), j(Tt, this) && Un(j(Tt, this), j(bt, this));
|
|
313
|
-
}));
|
|
314
|
-
}
|
|
315
|
-
get_effect_pending() {
|
|
316
|
-
return j(Et, this).call(this), Q(j(Tt, this));
|
|
317
|
-
}
|
|
318
|
-
error(e) {
|
|
319
|
-
if (!j(_t, this).onerror && !j(_t, this).failed) throw e;
|
|
320
|
-
R?.is_fork ? (j(P, this) && R.skip_effect(j(P, this)), j(F, this) && R.skip_effect(j(F, this)), j(I, this) && R.skip_effect(j(I, this)), R.oncommit(() => {
|
|
321
|
-
k(L, this, It).call(this, e);
|
|
322
|
-
})) : k(L, this, It).call(this, e);
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
function Ot() {
|
|
326
|
-
try {
|
|
327
|
-
A(P, this, xr(() => j(vt, this).call(this, j(M, this))));
|
|
328
|
-
} catch (e) {
|
|
329
|
-
this.error(e);
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
function kt(e) {
|
|
333
|
-
let t = j(_t, this).failed, { reset: n, invoke_onerror: r } = k(L, this, At).call(this, e);
|
|
334
|
-
et(r), t && A(I, this, xr(() => {
|
|
335
|
-
t(j(M, this), () => e, () => n);
|
|
336
|
-
}));
|
|
337
|
-
}
|
|
338
|
-
function At(e) {
|
|
339
|
-
var t = !1, n = !1;
|
|
340
|
-
let r = () => {
|
|
341
|
-
if (t) {
|
|
342
|
-
Le();
|
|
343
|
-
return;
|
|
344
|
-
}
|
|
345
|
-
t = !0, n && Pe(), j(I, this) !== null && Dr(j(I, this), () => {
|
|
346
|
-
A(I, this, null);
|
|
347
|
-
}), k(L, this, Pt).call(this, () => {
|
|
348
|
-
k(L, this, Mt).call(this);
|
|
349
|
-
});
|
|
350
|
-
};
|
|
351
|
-
return {
|
|
352
|
-
reset: r,
|
|
353
|
-
invoke_onerror: () => {
|
|
354
|
-
try {
|
|
355
|
-
n = !0, j(_t, this).onerror?.(e, r), n = !1;
|
|
356
|
-
} catch (e) {
|
|
357
|
-
rt(e, j(N, this) && j(N, this).parent);
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
function jt() {
|
|
363
|
-
let e = j(_t, this).pending;
|
|
364
|
-
e && (this.is_pending = !0, A(F, this, xr(() => e(j(M, this)))), et(() => {
|
|
365
|
-
var e = A(yt, this, document.createDocumentFragment()), t = $n();
|
|
366
|
-
e.append(t), A(P, this, k(L, this, Pt).call(this, () => xr(() => j(vt, this).call(this, t)))), j(xt, this) === 0 && (j(M, this).before(e), A(yt, this, null), Dr(j(F, this), () => {
|
|
367
|
-
A(F, this, null);
|
|
368
|
-
}), k(L, this, Nt).call(this, R));
|
|
369
|
-
}));
|
|
370
|
-
}
|
|
371
|
-
function Mt() {
|
|
372
|
-
try {
|
|
373
|
-
if (this.is_pending = this.has_pending_snippet(), A(xt, this, 0), A(bt, this, 0), A(P, this, xr(() => {
|
|
374
|
-
j(vt, this).call(this, j(M, this));
|
|
375
|
-
})), j(xt, this) > 0) {
|
|
376
|
-
var e = A(yt, this, document.createDocumentFragment());
|
|
377
|
-
jr(j(P, this), e);
|
|
378
|
-
let t = j(_t, this).pending;
|
|
379
|
-
A(F, this, xr(() => t(j(M, this))));
|
|
380
|
-
} else k(L, this, Nt).call(this, R);
|
|
381
|
-
} catch (e) {
|
|
382
|
-
this.error(e);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
function Nt(e) {
|
|
386
|
-
this.is_pending = !1, e.transfer_effects(j(Ct, this), j(wt, this));
|
|
387
|
-
}
|
|
388
|
-
function Pt(e) {
|
|
389
|
-
var t = J, n = G, r = E;
|
|
390
|
-
Ir(j(N, this)), q(j(N, this)), Je(j(N, this).ctx);
|
|
391
|
-
try {
|
|
392
|
-
return Cn.ensure(), e();
|
|
393
|
-
} catch (e) {
|
|
394
|
-
return nt(e), null;
|
|
395
|
-
} finally {
|
|
396
|
-
Ir(t), q(n), Je(r);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
function Ft(e, t) {
|
|
400
|
-
if (!this.has_pending_snippet()) {
|
|
401
|
-
if (this.parent) {
|
|
402
|
-
var n;
|
|
403
|
-
k(L, n = this.parent, Ft).call(n, e, t);
|
|
404
|
-
}
|
|
405
|
-
return;
|
|
406
|
-
}
|
|
407
|
-
A(xt, this, j(xt, this) + e), j(xt, this) === 0 && (k(L, this, Nt).call(this, t), j(F, this) && Dr(j(F, this), () => {
|
|
408
|
-
A(F, this, null);
|
|
409
|
-
}), j(yt, this) && (j(M, this).before(j(yt, this)), A(yt, this, null)));
|
|
410
|
-
}
|
|
411
|
-
function It(e) {
|
|
412
|
-
j(P, this) && (W(j(P, this)), A(P, this, null)), j(F, this) && (W(j(F, this)), A(F, this, null)), j(I, this) && (W(j(I, this)), A(I, this, null)), w && (ze(j(gt, this)), He(), ze(Ue()));
|
|
413
|
-
let t = j(_t, this).failed, n = (e) => {
|
|
414
|
-
let { reset: n, invoke_onerror: r } = k(L, this, At).call(this, e);
|
|
415
|
-
r(), t && A(I, this, k(L, this, Pt).call(this, () => {
|
|
416
|
-
try {
|
|
417
|
-
return xr(() => {
|
|
418
|
-
var r = J;
|
|
419
|
-
r.b = this, r.f |= 128, t(j(M, this), () => e, () => n);
|
|
420
|
-
});
|
|
421
|
-
} catch (e) {
|
|
422
|
-
return rt(e, j(N, this).parent), null;
|
|
423
|
-
}
|
|
424
|
-
}));
|
|
425
|
-
};
|
|
426
|
-
et(() => {
|
|
427
|
-
var t;
|
|
428
|
-
try {
|
|
429
|
-
t = this.transform_error(e);
|
|
430
|
-
} catch (e) {
|
|
431
|
-
rt(e, j(N, this) && j(N, this).parent);
|
|
432
|
-
return;
|
|
433
|
-
}
|
|
434
|
-
typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => rt(e, j(N, this) && j(N, this).parent)) : n(t);
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
function Lt(e, t, n, r) {
|
|
438
|
-
let i = Ze() ? Vt : Gt;
|
|
439
|
-
var a = e.filter((e) => !e.settled), o = t.map(i);
|
|
440
|
-
if (n.length === 0 && a.length === 0) {
|
|
441
|
-
r(o);
|
|
442
|
-
return;
|
|
443
|
-
}
|
|
444
|
-
var s = J, c = Rt(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
|
|
445
|
-
function u(e) {
|
|
446
|
-
if (!(s.f & 16384)) {
|
|
447
|
-
c();
|
|
448
|
-
try {
|
|
449
|
-
r([...o, ...e]);
|
|
450
|
-
} catch (e) {
|
|
451
|
-
rt(e, s);
|
|
452
|
-
}
|
|
453
|
-
zt();
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
var d = Bt();
|
|
457
|
-
if (n.length === 0) {
|
|
458
|
-
l.then(() => u([])).finally(d);
|
|
459
|
-
return;
|
|
460
|
-
}
|
|
461
|
-
function f() {
|
|
462
|
-
Promise.all(n.map((e) => /* @__PURE__ */ Ut(e))).then(u).catch((e) => rt(e, s)).finally(d);
|
|
463
|
-
}
|
|
464
|
-
l ? l.then(() => {
|
|
465
|
-
c(), f(), zt();
|
|
466
|
-
}) : f();
|
|
467
|
-
}
|
|
468
|
-
function Rt() {
|
|
469
|
-
var e = J, t = G, n = E, r = R;
|
|
470
|
-
return function(i = !0) {
|
|
471
|
-
Ir(e), q(t), Je(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
472
|
-
};
|
|
473
|
-
}
|
|
474
|
-
function zt(e = !0) {
|
|
475
|
-
Ir(null), q(null), Je(null), e && R?.deactivate();
|
|
476
|
-
}
|
|
477
|
-
function Bt() {
|
|
478
|
-
var e = J, t = e.b, n = R, r = !!t?.is_rendered();
|
|
479
|
-
return t?.update_pending_count(1, n), n.increment(r, e), () => {
|
|
480
|
-
t?.update_pending_count(-1, n), n.decrement(r, e);
|
|
481
|
-
};
|
|
482
|
-
}
|
|
483
|
-
// @__NO_SIDE_EFFECTS__
|
|
484
|
-
function Vt(e) {
|
|
485
|
-
var t = 2 | S;
|
|
486
|
-
return J !== null && (J.f |= C), {
|
|
487
|
-
ctx: E,
|
|
488
|
-
deps: null,
|
|
489
|
-
effects: null,
|
|
490
|
-
equals: Ge,
|
|
491
|
-
f: t,
|
|
492
|
-
fn: e,
|
|
493
|
-
reactions: null,
|
|
494
|
-
rv: 0,
|
|
495
|
-
v: i,
|
|
496
|
-
wv: 0,
|
|
497
|
-
parent: J,
|
|
498
|
-
ac: null
|
|
499
|
-
};
|
|
500
|
-
}
|
|
501
|
-
var Ht = /* @__PURE__ */ Symbol("obsolete");
|
|
502
|
-
// @__NO_SIDE_EFFECTS__
|
|
503
|
-
function Ut(e, t, n) {
|
|
504
|
-
let r = J;
|
|
505
|
-
r === null && we();
|
|
506
|
-
var a = void 0, o = Vn(i), s = !G, c = /* @__PURE__ */ new Set();
|
|
507
|
-
return _r(() => {
|
|
508
|
-
var t = J, n = v();
|
|
509
|
-
a = n.promise;
|
|
510
|
-
try {
|
|
511
|
-
Promise.resolve(e()).then(n.resolve, (e) => {
|
|
512
|
-
e !== xe && n.reject(e);
|
|
513
|
-
}).finally(zt);
|
|
514
|
-
} catch (e) {
|
|
515
|
-
n.reject(e), zt();
|
|
516
|
-
}
|
|
517
|
-
var i = R;
|
|
518
|
-
if (s) {
|
|
519
|
-
if (t.f & 32768) var l = Bt();
|
|
520
|
-
if (r.b?.is_rendered()) i.async_deriveds.get(t)?.reject(Ht);
|
|
521
|
-
else for (let e of c.values()) e.reject(Ht);
|
|
522
|
-
c.add(n), i.async_deriveds.set(t, n);
|
|
523
|
-
}
|
|
524
|
-
let u = (e, t = void 0) => {
|
|
525
|
-
l?.(), c.delete(n), t !== Ht && (i.activate(), t ? (o.f |= pe, Un(o, t)) : (o.f & 8388608 && (o.f ^= pe), Un(o, e)), i.deactivate());
|
|
526
|
-
};
|
|
527
|
-
n.promise.then(u, (e) => u(null, e || "unknown"));
|
|
528
|
-
}), dr(() => {
|
|
529
|
-
for (let e of c) e.reject(Ht);
|
|
530
|
-
}), new Promise((e) => {
|
|
531
|
-
function t(n) {
|
|
532
|
-
function r() {
|
|
533
|
-
n === a ? e(o) : t(a);
|
|
534
|
-
}
|
|
535
|
-
n.then(r, r);
|
|
536
|
-
}
|
|
537
|
-
t(a);
|
|
538
|
-
});
|
|
539
|
-
}
|
|
540
|
-
// @__NO_SIDE_EFFECTS__
|
|
541
|
-
function Wt(e) {
|
|
542
|
-
let t = /* @__PURE__ */ Vt(e);
|
|
543
|
-
return Rr(t), t;
|
|
544
|
-
}
|
|
545
|
-
// @__NO_SIDE_EFFECTS__
|
|
546
|
-
function Gt(e) {
|
|
547
|
-
let t = /* @__PURE__ */ Vt(e);
|
|
548
|
-
return t.equals = qe, t;
|
|
549
|
-
}
|
|
550
|
-
function Kt(e) {
|
|
551
|
-
var t = e.effects;
|
|
552
|
-
if (t !== null) {
|
|
553
|
-
e.effects = null;
|
|
554
|
-
for (var n = 0; n < t.length; n += 1) W(t[n]);
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
function qt(e) {
|
|
558
|
-
var t, n = J, r = e.parent;
|
|
559
|
-
if (!Pr && r !== null && e.v !== i && r.f & 24576) return Fe(), e.v;
|
|
560
|
-
Ir(r);
|
|
561
|
-
try {
|
|
562
|
-
e.f &= ~ue, Kt(e), t = qr(e);
|
|
563
|
-
} finally {
|
|
564
|
-
Ir(n);
|
|
565
|
-
}
|
|
566
|
-
return t;
|
|
567
|
-
}
|
|
568
|
-
function Jt(e) {
|
|
569
|
-
var t = qt(e);
|
|
570
|
-
if (!e.equals(t) && (e.wv = Wr(), (!R?.is_fork || e.deps === null) && (R === null ? e.v = t : (R.capture(e, t, !0), $t?.capture(e, t, !0)), e.deps === null))) {
|
|
571
|
-
D(e, x);
|
|
572
|
-
return;
|
|
573
|
-
}
|
|
574
|
-
Pr || (z === null ? at(e) : (ur() || R?.is_fork) && z.set(e, t));
|
|
575
|
-
}
|
|
576
|
-
function Yt(e) {
|
|
577
|
-
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && ut(() => {
|
|
578
|
-
t.ac.abort(xe), t.ac = null;
|
|
579
|
-
}), t.fn !== null && (t.teardown = ee), Yr(t, 0), Cr(t));
|
|
580
|
-
}
|
|
581
|
-
function Xt(e) {
|
|
582
|
-
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Xr(t);
|
|
583
|
-
}
|
|
584
|
-
var Zt, Qt = null, R = null, $t = null, z = null, en = null, tn = !1, nn = !1, rn = null, an = null, on = 0, sn = 1, cn = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), un = /* @__PURE__ */ new WeakMap(), dn = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), gn = /* @__PURE__ */ new WeakMap(), _n = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), yn = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakSet(), Cn = class e {
|
|
585
|
-
constructor() {
|
|
586
|
-
pt(this, B), b(this, "id", sn++), O(this, cn, !1), b(this, "linked", !0), O(this, ln, null), O(this, un, null), b(this, "async_deriveds", /* @__PURE__ */ new Map()), b(this, "current", /* @__PURE__ */ new Map()), b(this, "previous", /* @__PURE__ */ new Map()), O(this, dn, /* @__PURE__ */ new Set()), O(this, fn, /* @__PURE__ */ new Set()), O(this, pn, 0), O(this, mn, /* @__PURE__ */ new Map()), O(this, hn, null), O(this, gn, []), O(this, _n, []), O(this, vn, /* @__PURE__ */ new Set()), O(this, yn, /* @__PURE__ */ new Set()), O(this, bn, /* @__PURE__ */ new Map()), O(this, xn, /* @__PURE__ */ new Set()), b(this, "is_fork", !1), O(this, Sn, !1), Qt === null ? Qt = this : (A(un, Qt, this), A(ln, this, Qt)), Qt = this;
|
|
587
|
-
}
|
|
588
|
-
skip_effect(e) {
|
|
589
|
-
j(bn, this).has(e) || j(bn, this).set(e, {
|
|
590
|
-
d: [],
|
|
591
|
-
m: []
|
|
592
|
-
}), j(xn, this).delete(e);
|
|
593
|
-
}
|
|
594
|
-
unskip_effect(e, t = (e) => this.schedule(e)) {
|
|
595
|
-
var n = j(bn, this).get(e);
|
|
596
|
-
if (n) {
|
|
597
|
-
j(bn, this).delete(e);
|
|
598
|
-
for (var r of n.d) D(r, S), t(r);
|
|
599
|
-
for (r of n.m) D(r, re), t(r);
|
|
600
|
-
}
|
|
601
|
-
j(xn, this).add(e);
|
|
602
|
-
}
|
|
603
|
-
capture(e, t, n = !1) {
|
|
604
|
-
e.v !== i && !this.previous.has(e) && this.previous.set(e, e.v), !(e.f & 8388608) && (this.current.set(e, [t, n]), z?.set(e, t)), this.is_fork || (e.v = t);
|
|
605
|
-
}
|
|
606
|
-
activate() {
|
|
607
|
-
R = this;
|
|
608
|
-
}
|
|
609
|
-
deactivate() {
|
|
610
|
-
R = null, z = null;
|
|
611
|
-
}
|
|
612
|
-
flush() {
|
|
613
|
-
try {
|
|
614
|
-
nn = !0, R = this, k(B, this, Tn).call(this);
|
|
615
|
-
} finally {
|
|
616
|
-
on = 0, en = null, rn = null, an = null, nn = !1, R = null, z = null, zn.clear();
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
discard() {
|
|
620
|
-
for (let e of j(fn, this)) e(this);
|
|
621
|
-
j(fn, this).clear();
|
|
622
|
-
for (let e of this.async_deriveds.values()) e.reject(Ht);
|
|
623
|
-
k(B, this, An).call(this), j(hn, this)?.resolve();
|
|
624
|
-
}
|
|
625
|
-
register_created_effect(e) {
|
|
626
|
-
j(_n, this).push(e);
|
|
627
|
-
}
|
|
628
|
-
increment(e, t) {
|
|
629
|
-
if (A(pn, this, j(pn, this) + 1), e) {
|
|
630
|
-
let e = j(mn, this).get(t) ?? 0;
|
|
631
|
-
j(mn, this).set(t, e + 1);
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
decrement(e, t) {
|
|
635
|
-
if (A(pn, this, j(pn, this) - 1), e) {
|
|
636
|
-
let e = j(mn, this).get(t) ?? 0;
|
|
637
|
-
e === 1 ? j(mn, this).delete(t) : j(mn, this).set(t, e - 1);
|
|
638
|
-
}
|
|
639
|
-
j(Sn, this) || (A(Sn, this, !0), et(() => {
|
|
640
|
-
A(Sn, this, !1), this.linked && this.flush();
|
|
641
|
-
}));
|
|
642
|
-
}
|
|
643
|
-
transfer_effects(e, t) {
|
|
644
|
-
for (let t of e) j(vn, this).add(t);
|
|
645
|
-
for (let e of t) j(yn, this).add(e);
|
|
646
|
-
e.clear(), t.clear();
|
|
647
|
-
}
|
|
648
|
-
oncommit(e) {
|
|
649
|
-
j(dn, this).add(e);
|
|
650
|
-
}
|
|
651
|
-
ondiscard(e) {
|
|
652
|
-
j(fn, this).add(e);
|
|
653
|
-
}
|
|
654
|
-
settled() {
|
|
655
|
-
return (j(hn, this) ?? A(hn, this, v())).promise;
|
|
656
|
-
}
|
|
657
|
-
static ensure() {
|
|
658
|
-
if (R === null) {
|
|
659
|
-
let t = R = new e();
|
|
660
|
-
!nn && !tn && et(() => {
|
|
661
|
-
j(cn, t) || t.flush();
|
|
662
|
-
});
|
|
663
|
-
}
|
|
664
|
-
return R;
|
|
665
|
-
}
|
|
666
|
-
apply() {
|
|
667
|
-
z = null;
|
|
668
|
-
}
|
|
669
|
-
schedule(e) {
|
|
670
|
-
if (en = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
|
|
671
|
-
e.b.defer_effect(e);
|
|
672
|
-
return;
|
|
673
|
-
}
|
|
674
|
-
for (var t = e; t.parent !== null;) {
|
|
675
|
-
t = t.parent;
|
|
676
|
-
var n = t.f;
|
|
677
|
-
if (rn !== null && t === J && (G === null || !(G.f & 2))) return;
|
|
678
|
-
if (n & 96) {
|
|
679
|
-
if (!(n & 1024)) return;
|
|
680
|
-
t.f ^= x;
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
j(gn, this).push(t);
|
|
684
|
-
}
|
|
685
|
-
};
|
|
686
|
-
Zt = Cn;
|
|
687
|
-
function wn() {
|
|
688
|
-
if (this.is_fork) return !0;
|
|
689
|
-
for (let n of j(mn, this).keys()) {
|
|
690
|
-
for (var e = n, t = !1; e.parent !== null;) {
|
|
691
|
-
if (j(bn, this).has(e)) {
|
|
692
|
-
t = !0;
|
|
693
|
-
break;
|
|
694
|
-
}
|
|
695
|
-
e = e.parent;
|
|
696
|
-
}
|
|
697
|
-
if (!t) return !0;
|
|
698
|
-
}
|
|
699
|
-
return !1;
|
|
700
|
-
}
|
|
701
|
-
function Tn() {
|
|
702
|
-
A(cn, this, !0), on++ > 1e3 && (k(B, this, An).call(this), Mn());
|
|
703
|
-
for (let e of j(vn, this)) j(yn, this).delete(e), D(e, S), this.schedule(e);
|
|
704
|
-
for (let e of j(yn, this)) D(e, re), this.schedule(e);
|
|
705
|
-
let e = j(gn, this);
|
|
706
|
-
A(gn, this, []), this.apply();
|
|
707
|
-
var t = rn = [], n = [], r = an = [];
|
|
708
|
-
for (let r of e) try {
|
|
709
|
-
k(B, this, En).call(this, r, t, n);
|
|
710
|
-
} catch (e) {
|
|
711
|
-
throw Ln(r), k(B, this, wn).call(this) || this.discard(), e;
|
|
712
|
-
}
|
|
713
|
-
if (R = null, r.length > 0) {
|
|
714
|
-
var i = Zt.ensure();
|
|
715
|
-
for (let e of r) i.schedule(e);
|
|
716
|
-
}
|
|
717
|
-
if (rn = null, an = null, k(B, this, wn).call(this)) {
|
|
718
|
-
k(B, this, kn).call(this, n), k(B, this, kn).call(this, t);
|
|
719
|
-
for (let [e, t] of j(bn, this)) In(e, t);
|
|
720
|
-
r.length > 0 && k(B, R, Tn).call(R);
|
|
721
|
-
return;
|
|
722
|
-
}
|
|
723
|
-
let a = k(B, this, Dn).call(this);
|
|
724
|
-
if (a) {
|
|
725
|
-
k(B, this, kn).call(this, n), k(B, this, kn).call(this, t), k(B, a, On).call(a, this);
|
|
726
|
-
return;
|
|
727
|
-
}
|
|
728
|
-
j(vn, this).clear(), j(yn, this).clear();
|
|
729
|
-
for (let e of j(dn, this)) e(this);
|
|
730
|
-
j(dn, this).clear(), $t = this, Pn(n), Pn(t), $t = null, j(hn, this)?.resolve();
|
|
731
|
-
var o = R;
|
|
732
|
-
if (j(pn, this) === 0 && (j(gn, this).length === 0 || o !== null) && k(B, this, An).call(this), j(gn, this).length > 0) {
|
|
733
|
-
if (o !== null) {
|
|
734
|
-
let e = o;
|
|
735
|
-
j(gn, e).push(...j(gn, this).filter((t) => !j(gn, e).includes(t)));
|
|
736
|
-
} else o = this;
|
|
737
|
-
}
|
|
738
|
-
o !== null && k(B, o, Tn).call(o);
|
|
739
|
-
}
|
|
740
|
-
function En(e, t, n) {
|
|
741
|
-
e.f ^= x;
|
|
742
|
-
for (var r = e.first; r !== null;) {
|
|
743
|
-
var i = r.f, a = !!(i & 96);
|
|
744
|
-
if (!(a && i & 1024 || i & 8192 || j(bn, this).has(r)) && r.fn !== null) {
|
|
745
|
-
a ? r.f ^= x : i & 4 ? t.push(r) : Gr(r) && (i & 16 && j(yn, this).add(r), Xr(r));
|
|
746
|
-
var o = r.first;
|
|
747
|
-
if (o !== null) {
|
|
748
|
-
r = o;
|
|
749
|
-
continue;
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
for (; r !== null;) {
|
|
753
|
-
var s = r.next;
|
|
754
|
-
if (s !== null) {
|
|
755
|
-
r = s;
|
|
756
|
-
break;
|
|
757
|
-
}
|
|
758
|
-
r = r.parent;
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
function Dn() {
|
|
763
|
-
for (var e = j(ln, this); e !== null;) {
|
|
764
|
-
if (!e.is_fork) {
|
|
765
|
-
for (let [t, [, n]] of this.current) if (e.current.has(t) && !n) return e;
|
|
766
|
-
}
|
|
767
|
-
e = j(ln, e);
|
|
768
|
-
}
|
|
769
|
-
return null;
|
|
770
|
-
}
|
|
771
|
-
function On(e) {
|
|
772
|
-
for (let [t, n] of e.current) !this.previous.has(t) && e.previous.has(t) && this.previous.set(t, e.previous.get(t)), this.current.set(t, n);
|
|
773
|
-
for (let [t, n] of e.async_deriveds) {
|
|
774
|
-
let e = this.async_deriveds.get(t);
|
|
775
|
-
e && n.promise.then(e.resolve).catch(e.reject);
|
|
776
|
-
}
|
|
777
|
-
e.async_deriveds.clear(), this.transfer_effects(j(vn, e), j(yn, e));
|
|
778
|
-
let t = (e) => {
|
|
779
|
-
var n = e.reactions;
|
|
780
|
-
if (n !== null && !(e.f & 2 && !(e.f & 6144))) for (let e of n) {
|
|
781
|
-
var r = e.f;
|
|
782
|
-
if (r & 2) t(e);
|
|
783
|
-
else {
|
|
784
|
-
var i = e;
|
|
785
|
-
r & 4194320 && !this.async_deriveds.has(i) && (j(yn, this).delete(i), D(i, S), this.schedule(i));
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
};
|
|
789
|
-
for (let e of this.current.keys()) t(e);
|
|
790
|
-
this.oncommit(() => e.discard()), k(B, e, An).call(e), R = this, k(B, this, Tn).call(this);
|
|
791
|
-
}
|
|
792
|
-
function kn(e) {
|
|
793
|
-
for (var t = 0; t < e.length; t += 1) st(e[t], j(vn, this), j(yn, this));
|
|
794
|
-
}
|
|
795
|
-
function An() {
|
|
796
|
-
if (this.linked) {
|
|
797
|
-
var e = j(ln, this), t = j(un, this);
|
|
798
|
-
e === null || A(un, e, t), t === null ? Qt = e : A(ln, t, e), this.linked = !1;
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
function jn(e) {
|
|
802
|
-
var t = tn;
|
|
803
|
-
tn = !0;
|
|
804
|
-
try {
|
|
805
|
-
var n;
|
|
806
|
-
for (e && (R !== null && !R.is_fork && R.flush(), n = e());;) {
|
|
807
|
-
if (tt(), R === null) return n;
|
|
808
|
-
R.flush();
|
|
809
|
-
}
|
|
810
|
-
} finally {
|
|
811
|
-
tn = t;
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
function Mn() {
|
|
815
|
-
try {
|
|
816
|
-
Oe();
|
|
817
|
-
} catch (e) {
|
|
818
|
-
rt(e, en);
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
var Nn = null;
|
|
822
|
-
function Pn(e) {
|
|
823
|
-
var t = e.length;
|
|
824
|
-
if (t !== 0) {
|
|
825
|
-
for (var n = 0; n < t;) {
|
|
826
|
-
var r = e[n++];
|
|
827
|
-
if (!(r.f & 24576) && Gr(r) && (Nn = /* @__PURE__ */ new Set(), Xr(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Er(r), Nn?.size > 0)) {
|
|
828
|
-
zn.clear();
|
|
829
|
-
for (let e of Nn) {
|
|
830
|
-
if (e.f & 24576) continue;
|
|
831
|
-
let t = [e], n = e.parent;
|
|
832
|
-
for (; n !== null;) Nn.has(n) && (Nn.delete(n), t.push(n)), n = n.parent;
|
|
833
|
-
for (let e = t.length - 1; e >= 0; e--) {
|
|
834
|
-
let n = t[e];
|
|
835
|
-
!(n.f & 24576) && Xr(n);
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
Nn.clear();
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
Nn = null;
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
function Fn(e) {
|
|
845
|
-
R.schedule(e);
|
|
846
|
-
}
|
|
847
|
-
function In(e, t) {
|
|
848
|
-
if (!(e.f & 32 && e.f & 1024)) {
|
|
849
|
-
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), D(e, x);
|
|
850
|
-
for (var n = e.first; n !== null;) In(n, t), n = n.next;
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
function Ln(e) {
|
|
854
|
-
D(e, x);
|
|
855
|
-
for (var t = e.first; t !== null;) Ln(t), t = t.next;
|
|
856
|
-
}
|
|
857
|
-
var Rn = /* @__PURE__ */ new Set(), zn = /* @__PURE__ */ new Map(), Bn = !1;
|
|
858
|
-
function Vn(e, t) {
|
|
859
|
-
return {
|
|
860
|
-
f: 0,
|
|
861
|
-
v: e,
|
|
862
|
-
reactions: null,
|
|
863
|
-
equals: Ge,
|
|
864
|
-
rv: 0,
|
|
865
|
-
wv: 0
|
|
866
|
-
};
|
|
867
|
-
}
|
|
868
|
-
// @__NO_SIDE_EFFECTS__
|
|
869
|
-
function V(e, t) {
|
|
870
|
-
let n = Vn(e, t);
|
|
871
|
-
return Rr(n), n;
|
|
872
|
-
}
|
|
873
|
-
// @__NO_SIDE_EFFECTS__
|
|
874
|
-
function Hn(e, t = !1, n = !0) {
|
|
875
|
-
let r = Vn(e);
|
|
876
|
-
return t || (r.equals = qe), r;
|
|
877
|
-
}
|
|
878
|
-
function H(e, t, n = !1) {
|
|
879
|
-
return G !== null && (!K || G.f & 131072) && Ze() && G.f & 4325394 && (Lr === null || !Lr.has(e)) && Ne(), Un(e, n ? qn(t) : t, an);
|
|
880
|
-
}
|
|
881
|
-
function Un(e, t, n = null) {
|
|
882
|
-
if (!e.equals(t)) {
|
|
883
|
-
zn.set(e, Pr ? t : e.v);
|
|
884
|
-
var r = Cn.ensure();
|
|
885
|
-
if (r.capture(e, t), e.f & 2) {
|
|
886
|
-
let t = e;
|
|
887
|
-
e.f & 2048 && qt(t), z === null && at(t);
|
|
888
|
-
}
|
|
889
|
-
e.wv = Wr(), Kn(e, S, n), Ze() && J !== null && J.f & 1024 && !(J.f & 96) && (Z === null ? zr([e]) : Z.push(e)), !r.is_fork && Rn.size > 0 && !Bn && Wn();
|
|
890
|
-
}
|
|
891
|
-
return t;
|
|
892
|
-
}
|
|
893
|
-
function Wn() {
|
|
894
|
-
Bn = !1;
|
|
895
|
-
for (let e of Rn) {
|
|
896
|
-
e.f & 1024 && D(e, re);
|
|
897
|
-
let t;
|
|
898
|
-
try {
|
|
899
|
-
t = Gr(e);
|
|
900
|
-
} catch {
|
|
901
|
-
t = !0;
|
|
902
|
-
}
|
|
903
|
-
t && Xr(e);
|
|
904
|
-
}
|
|
905
|
-
Rn.clear();
|
|
906
|
-
}
|
|
907
|
-
function Gn(e) {
|
|
908
|
-
H(e, e.v + 1);
|
|
909
|
-
}
|
|
910
|
-
function Kn(e, t, n) {
|
|
911
|
-
var r = e.reactions;
|
|
912
|
-
if (r !== null) for (var i = Ze(), a = r.length, o = 0; o < a; o++) {
|
|
913
|
-
var s = r[o], c = s.f;
|
|
914
|
-
if (!(!i && s === J)) {
|
|
915
|
-
var l = (c & S) === 0;
|
|
916
|
-
if (l && D(s, t), c & 131072) Rn.add(s);
|
|
917
|
-
else if (c & 2) {
|
|
918
|
-
var u = s;
|
|
919
|
-
z?.delete(u), !(c & 65536) && (c & 512 && (J === null || !(J.f & 2097152)) && (s.f |= ue), Kn(u, re, n));
|
|
920
|
-
} else if (l) {
|
|
921
|
-
var d = s;
|
|
922
|
-
c & 16 && Nn !== null && Nn.add(d), n === null ? Fn(d) : n.push(d);
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
}
|
|
927
|
-
function qn(e) {
|
|
928
|
-
if (typeof e != "object" || !e || me in e) return e;
|
|
929
|
-
let t = h(e);
|
|
930
|
-
if (t !== p && t !== m) return e;
|
|
931
|
-
var n = /* @__PURE__ */ new Map(), r = a(e), o = /* @__PURE__ */ V(0), s = null, c = Hr, l = (e) => {
|
|
932
|
-
if (Hr === c) return e();
|
|
933
|
-
var t = G, n = Hr;
|
|
934
|
-
q(null), Ur(c);
|
|
935
|
-
var r = e();
|
|
936
|
-
return q(t), Ur(n), r;
|
|
937
|
-
};
|
|
938
|
-
return r && n.set("length", /* @__PURE__ */ V(e.length, s)), new Proxy(e, {
|
|
939
|
-
defineProperty(e, t, r) {
|
|
940
|
-
(!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && je();
|
|
941
|
-
var i = n.get(t);
|
|
942
|
-
return i === void 0 ? l(() => {
|
|
943
|
-
var e = /* @__PURE__ */ V(r.value, s);
|
|
944
|
-
return n.set(t, e), e;
|
|
945
|
-
}) : H(i, r.value, !0), !0;
|
|
946
|
-
},
|
|
947
|
-
deleteProperty(e, t) {
|
|
948
|
-
var r = n.get(t);
|
|
949
|
-
if (r === void 0) {
|
|
950
|
-
if (t in e) {
|
|
951
|
-
let e = l(() => /* @__PURE__ */ V(i, s));
|
|
952
|
-
n.set(t, e), Gn(o);
|
|
953
|
-
}
|
|
954
|
-
} else H(r, i), Gn(o);
|
|
955
|
-
return !0;
|
|
956
|
-
},
|
|
957
|
-
get(t, r, a) {
|
|
958
|
-
if (r === me) return e;
|
|
959
|
-
var o = n.get(r), c = r in t;
|
|
960
|
-
if (o === void 0 && (!c || d(t, r)?.writable) && (o = l(() => /* @__PURE__ */ V(qn(c ? t[r] : i), s)), n.set(r, o)), o !== void 0) {
|
|
961
|
-
var u = Q(o);
|
|
962
|
-
return u === i ? void 0 : u;
|
|
963
|
-
}
|
|
964
|
-
return Reflect.get(t, r, a);
|
|
965
|
-
},
|
|
966
|
-
getOwnPropertyDescriptor(e, t) {
|
|
967
|
-
var r = Reflect.getOwnPropertyDescriptor(e, t);
|
|
968
|
-
if (r && "value" in r) {
|
|
969
|
-
var a = n.get(t);
|
|
970
|
-
a && (r.value = Q(a));
|
|
971
|
-
} else if (r === void 0) {
|
|
972
|
-
var o = n.get(t), s = o?.v;
|
|
973
|
-
if (o !== void 0 && s !== i) return {
|
|
974
|
-
enumerable: !0,
|
|
975
|
-
configurable: !0,
|
|
976
|
-
value: s,
|
|
977
|
-
writable: !0
|
|
978
|
-
};
|
|
979
|
-
}
|
|
980
|
-
return r;
|
|
981
|
-
},
|
|
982
|
-
has(e, t) {
|
|
983
|
-
if (t === me) return !0;
|
|
984
|
-
var r = n.get(t), a = r !== void 0 && r.v !== i || Reflect.has(e, t);
|
|
985
|
-
return (r !== void 0 || J !== null && (!a || d(e, t)?.writable)) && (r === void 0 && (r = l(() => /* @__PURE__ */ V(a ? qn(e[t]) : i, s)), n.set(t, r)), Q(r) === i) ? !1 : a;
|
|
986
|
-
},
|
|
987
|
-
set(e, t, a, c) {
|
|
988
|
-
var u = n.get(t), f = t in e;
|
|
989
|
-
if (r && t === "length") for (var p = a; p < u.v; p += 1) {
|
|
990
|
-
var m = n.get(p + "");
|
|
991
|
-
m === void 0 ? p in e && (m = l(() => /* @__PURE__ */ V(i, s)), n.set(p + "", m)) : H(m, i);
|
|
992
|
-
}
|
|
993
|
-
if (u === void 0) (!f || d(e, t)?.writable) && (u = l(() => /* @__PURE__ */ V(void 0, s)), H(u, qn(a)), n.set(t, u));
|
|
994
|
-
else {
|
|
995
|
-
f = u.v !== i;
|
|
996
|
-
var h = l(() => qn(a));
|
|
997
|
-
H(u, h);
|
|
998
|
-
}
|
|
999
|
-
var g = Reflect.getOwnPropertyDescriptor(e, t);
|
|
1000
|
-
if (g?.set && g.set.call(c, a), !f) {
|
|
1001
|
-
if (r && typeof t == "string") {
|
|
1002
|
-
var ee = n.get("length"), _ = Number(t);
|
|
1003
|
-
Number.isInteger(_) && _ >= ee.v && H(ee, _ + 1);
|
|
1004
|
-
}
|
|
1005
|
-
Gn(o);
|
|
1006
|
-
}
|
|
1007
|
-
return !0;
|
|
1008
|
-
},
|
|
1009
|
-
ownKeys(e) {
|
|
1010
|
-
Q(o);
|
|
1011
|
-
var t = Reflect.ownKeys(e).filter((e) => {
|
|
1012
|
-
var t = n.get(e);
|
|
1013
|
-
return t === void 0 || t.v !== i;
|
|
1014
|
-
});
|
|
1015
|
-
for (var [r, a] of n) a.v !== i && !(r in e) && t.push(r);
|
|
1016
|
-
return t;
|
|
1017
|
-
},
|
|
1018
|
-
setPrototypeOf() {
|
|
1019
|
-
Me();
|
|
1020
|
-
}
|
|
1021
|
-
});
|
|
1022
|
-
}
|
|
1023
|
-
var Jn, Yn, Xn, Zn;
|
|
1024
|
-
function Qn() {
|
|
1025
|
-
if (Jn === void 0) {
|
|
1026
|
-
Jn = window, Yn = /Firefox/.test(navigator.userAgent);
|
|
1027
|
-
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1028
|
-
Xn = d(t, "firstChild").get, Zn = d(t, "nextSibling").get, g(e) && (e[ve] = void 0, e[_e] = null, e[ye] = void 0, e.__e = void 0), g(n) && (n[be] = void 0);
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
1031
|
-
function $n(e = "") {
|
|
1032
|
-
return document.createTextNode(e);
|
|
1033
|
-
}
|
|
1034
|
-
// @__NO_SIDE_EFFECTS__
|
|
1035
|
-
function er(e) {
|
|
1036
|
-
return Xn.call(e);
|
|
1037
|
-
}
|
|
1038
|
-
// @__NO_SIDE_EFFECTS__
|
|
1039
|
-
function tr(e) {
|
|
1040
|
-
return Zn.call(e);
|
|
1041
|
-
}
|
|
1042
|
-
function nr(e, t) {
|
|
1043
|
-
if (!w) return /* @__PURE__ */ er(e);
|
|
1044
|
-
var n = /* @__PURE__ */ er(T);
|
|
1045
|
-
if (n === null) n = T.appendChild($n());
|
|
1046
|
-
else if (t && n.nodeType !== 3) {
|
|
1047
|
-
var r = $n();
|
|
1048
|
-
return n?.before(r), ze(r), r;
|
|
1049
|
-
}
|
|
1050
|
-
return t && sr(n), ze(n), n;
|
|
1051
|
-
}
|
|
1052
|
-
function rr(e, t = 1, n = !1) {
|
|
1053
|
-
let r = w ? T : e;
|
|
1054
|
-
for (var i; t--;) i = r, r = /* @__PURE__ */ tr(r);
|
|
1055
|
-
if (!w) return r;
|
|
1056
|
-
if (n) {
|
|
1057
|
-
if (r?.nodeType !== 3) {
|
|
1058
|
-
var a = $n();
|
|
1059
|
-
return r === null ? i?.after(a) : r.before(a), ze(a), a;
|
|
1060
|
-
}
|
|
1061
|
-
sr(r);
|
|
1062
|
-
}
|
|
1063
|
-
return ze(r), r;
|
|
1064
|
-
}
|
|
1065
|
-
function ir(e) {
|
|
1066
|
-
e.textContent = "";
|
|
1067
|
-
}
|
|
1068
|
-
function ar() {
|
|
1069
|
-
return !1;
|
|
1070
|
-
}
|
|
1071
|
-
function or(e, t, n) {
|
|
1072
|
-
return t == null || t === "http://www.w3.org/1999/xhtml" ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);
|
|
1073
|
-
}
|
|
1074
|
-
function sr(e) {
|
|
1075
|
-
if (e.nodeValue.length < 65536) return;
|
|
1076
|
-
let t = e.nextSibling;
|
|
1077
|
-
for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1078
|
-
}
|
|
1079
|
-
function cr(e) {
|
|
1080
|
-
J === null && (G === null && De(e), Ee()), Pr && Te(e);
|
|
1081
|
-
}
|
|
1082
|
-
function lr(e, t) {
|
|
1083
|
-
var n = t.last;
|
|
1084
|
-
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1085
|
-
}
|
|
1086
|
-
function U(e, t) {
|
|
1087
|
-
var n = J;
|
|
1088
|
-
n !== null && n.f & 8192 && (e |= ie);
|
|
1089
|
-
var r = {
|
|
1090
|
-
ctx: E,
|
|
1091
|
-
deps: null,
|
|
1092
|
-
nodes: null,
|
|
1093
|
-
f: e | S | 512,
|
|
1094
|
-
first: null,
|
|
1095
|
-
fn: t,
|
|
1096
|
-
last: null,
|
|
1097
|
-
next: null,
|
|
1098
|
-
parent: n,
|
|
1099
|
-
b: n && n.b,
|
|
1100
|
-
prev: null,
|
|
1101
|
-
teardown: null,
|
|
1102
|
-
wv: 0,
|
|
1103
|
-
ac: null
|
|
1104
|
-
};
|
|
1105
|
-
R?.register_created_effect(r);
|
|
1106
|
-
var i = r;
|
|
1107
|
-
if (e & 4) rn === null ? Cn.ensure().schedule(r) : rn.push(r);
|
|
1108
|
-
else if (t !== null) {
|
|
1109
|
-
try {
|
|
1110
|
-
Xr(r);
|
|
1111
|
-
} catch (e) {
|
|
1112
|
-
throw W(r), e;
|
|
1113
|
-
}
|
|
1114
|
-
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= ce));
|
|
1115
|
-
}
|
|
1116
|
-
if (i !== null && (i.parent = n, n !== null && lr(i, n), G !== null && G.f & 2 && !(e & 64))) {
|
|
1117
|
-
var a = G;
|
|
1118
|
-
(a.effects ??= []).push(i);
|
|
1119
|
-
}
|
|
1120
|
-
return r;
|
|
1121
|
-
}
|
|
1122
|
-
function ur() {
|
|
1123
|
-
return G !== null && !K;
|
|
1124
|
-
}
|
|
1125
|
-
function dr(e) {
|
|
1126
|
-
let t = U(8, null);
|
|
1127
|
-
return D(t, x), t.teardown = e, t;
|
|
1128
|
-
}
|
|
1129
|
-
function fr(e) {
|
|
1130
|
-
cr("$effect");
|
|
1131
|
-
var t = J.f;
|
|
1132
|
-
if (!G && t & 32 && E !== null && !E.i) {
|
|
1133
|
-
var n = E;
|
|
1134
|
-
(n.e ??= []).push(e);
|
|
1135
|
-
} else return pr(e);
|
|
1136
|
-
}
|
|
1137
|
-
function pr(e) {
|
|
1138
|
-
return U(4 | le, e);
|
|
1139
|
-
}
|
|
1140
|
-
function mr(e) {
|
|
1141
|
-
Cn.ensure();
|
|
1142
|
-
let t = U(64 | C, e);
|
|
1143
|
-
return () => {
|
|
1144
|
-
W(t);
|
|
1145
|
-
};
|
|
1146
|
-
}
|
|
1147
|
-
function hr(e) {
|
|
1148
|
-
Cn.ensure();
|
|
1149
|
-
let t = U(64 | C, e);
|
|
1150
|
-
return (e = {}) => new Promise((n) => {
|
|
1151
|
-
e.outro ? Dr(t, () => {
|
|
1152
|
-
W(t), n(void 0);
|
|
1153
|
-
}) : (W(t), n(void 0));
|
|
1154
|
-
});
|
|
1155
|
-
}
|
|
1156
|
-
function gr(e) {
|
|
1157
|
-
return U(4, e);
|
|
1158
|
-
}
|
|
1159
|
-
function _r(e) {
|
|
1160
|
-
return U(fe | C, e);
|
|
1161
|
-
}
|
|
1162
|
-
function vr(e, t = 0) {
|
|
1163
|
-
return U(8 | t, e);
|
|
1164
|
-
}
|
|
1165
|
-
function yr(e, t = [], n = [], r = []) {
|
|
1166
|
-
Lt(r, t, n, (t) => {
|
|
1167
|
-
U(8, () => {
|
|
1168
|
-
e(...t.map(Q));
|
|
1169
|
-
});
|
|
1170
|
-
});
|
|
1171
|
-
}
|
|
1172
|
-
function br(e, t = 0) {
|
|
1173
|
-
return U(16 | t, e);
|
|
1174
|
-
}
|
|
1175
|
-
function xr(e) {
|
|
1176
|
-
return U(32 | C, e);
|
|
1177
|
-
}
|
|
1178
|
-
function Sr(e) {
|
|
1179
|
-
var t = e.teardown;
|
|
1180
|
-
if (t !== null) {
|
|
1181
|
-
let e = Pr, n = G;
|
|
1182
|
-
Fr(!0), q(null);
|
|
1183
|
-
try {
|
|
1184
|
-
t.call(null);
|
|
1185
|
-
} finally {
|
|
1186
|
-
Fr(e), q(n);
|
|
1187
|
-
}
|
|
1188
|
-
}
|
|
1189
|
-
}
|
|
1190
|
-
function Cr(e, t = !1) {
|
|
1191
|
-
var n = e.first;
|
|
1192
|
-
for (e.first = e.last = null; n !== null;) {
|
|
1193
|
-
let e = n.ac;
|
|
1194
|
-
e !== null && ut(() => {
|
|
1195
|
-
e.abort(xe);
|
|
1196
|
-
});
|
|
1197
|
-
var r = n.next;
|
|
1198
|
-
n.f & 64 ? n.parent = null : W(n, t), n = r;
|
|
1199
|
-
}
|
|
1200
|
-
}
|
|
1201
|
-
function wr(e) {
|
|
1202
|
-
for (var t = e.first; t !== null;) {
|
|
1203
|
-
var n = t.next;
|
|
1204
|
-
!(t.f & 32) && W(t), t = n;
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
function W(e, t = !0) {
|
|
1208
|
-
var n = !1;
|
|
1209
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Tr(e.nodes.start, e.nodes.end), n = !0), e.f |= se, Cr(e, t && !n), Yr(e, 0);
|
|
1210
|
-
var r = e.nodes && e.nodes.t;
|
|
1211
|
-
if (r !== null) for (let e of r) e.stop();
|
|
1212
|
-
Sr(e), e.f ^= se, e.f |= ae;
|
|
1213
|
-
var i = e.parent;
|
|
1214
|
-
i !== null && i.first !== null && Er(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1215
|
-
}
|
|
1216
|
-
function Tr(e, t) {
|
|
1217
|
-
for (; e !== null;) {
|
|
1218
|
-
var n = e === t ? null : /* @__PURE__ */ tr(e);
|
|
1219
|
-
e.remove(), e = n;
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
function Er(e) {
|
|
1223
|
-
var t = e.parent, n = e.prev, r = e.next;
|
|
1224
|
-
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1225
|
-
}
|
|
1226
|
-
function Dr(e, t, n = !0) {
|
|
1227
|
-
var r = [];
|
|
1228
|
-
Or(e, r, !0);
|
|
1229
|
-
var i = () => {
|
|
1230
|
-
n && W(e), t && t();
|
|
1231
|
-
}, a = r.length;
|
|
1232
|
-
if (a > 0) {
|
|
1233
|
-
var o = () => --a || i();
|
|
1234
|
-
for (var s of r) s.out(o);
|
|
1235
|
-
} else i();
|
|
1236
|
-
}
|
|
1237
|
-
function Or(e, t, n) {
|
|
1238
|
-
if (!(e.f & 8192)) {
|
|
1239
|
-
e.f ^= ie;
|
|
1240
|
-
var r = e.nodes && e.nodes.t;
|
|
1241
|
-
if (r !== null) for (let e of r) (e.is_global || n) && t.push(e);
|
|
1242
|
-
for (var i = e.first; i !== null;) {
|
|
1243
|
-
var a = i.next;
|
|
1244
|
-
if (!(i.f & 64)) {
|
|
1245
|
-
var o = !!(i.f & 65536) || !!(i.f & 32) && !!(e.f & 16);
|
|
1246
|
-
Or(i, t, o ? n : !1);
|
|
1247
|
-
}
|
|
1248
|
-
i = a;
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
function kr(e) {
|
|
1253
|
-
Ar(e, !0);
|
|
1254
|
-
}
|
|
1255
|
-
function Ar(e, t) {
|
|
1256
|
-
if (e.f & 8192) {
|
|
1257
|
-
e.f ^= ie, !(e.f & 1024) && (D(e, S), Cn.ensure().schedule(e));
|
|
1258
|
-
for (var n = e.first; n !== null;) {
|
|
1259
|
-
var r = n.next, i = !!(n.f & 65536) || !!(n.f & 32);
|
|
1260
|
-
Ar(n, i ? t : !1), n = r;
|
|
1261
|
-
}
|
|
1262
|
-
var a = e.nodes && e.nodes.t;
|
|
1263
|
-
if (a !== null) for (let e of a) (e.is_global || t) && e.in();
|
|
1264
|
-
}
|
|
1265
|
-
}
|
|
1266
|
-
function jr(e, t) {
|
|
1267
|
-
if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
|
|
1268
|
-
var i = n === r ? null : /* @__PURE__ */ tr(n);
|
|
1269
|
-
t.append(n), n = i;
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1272
|
-
var Mr = null, Nr = !1, Pr = !1;
|
|
1273
|
-
function Fr(e) {
|
|
1274
|
-
Pr = e;
|
|
1275
|
-
}
|
|
1276
|
-
var G = null, K = !1;
|
|
1277
|
-
function q(e) {
|
|
1278
|
-
G = e;
|
|
1279
|
-
}
|
|
1280
|
-
var J = null;
|
|
1281
|
-
function Ir(e) {
|
|
1282
|
-
J = e;
|
|
1283
|
-
}
|
|
1284
|
-
var Lr = null;
|
|
1285
|
-
function Rr(e) {
|
|
1286
|
-
G !== null && (Lr ??= /* @__PURE__ */ new Set()).add(e);
|
|
1287
|
-
}
|
|
1288
|
-
var Y = null, X = 0, Z = null;
|
|
1289
|
-
function zr(e) {
|
|
1290
|
-
Z = e;
|
|
1291
|
-
}
|
|
1292
|
-
var Br = 1, Vr = 0, Hr = Vr;
|
|
1293
|
-
function Ur(e) {
|
|
1294
|
-
Hr = e;
|
|
1295
|
-
}
|
|
1296
|
-
function Wr() {
|
|
1297
|
-
return ++Br;
|
|
1298
|
-
}
|
|
1299
|
-
function Gr(e) {
|
|
1300
|
-
var t = e.f;
|
|
1301
|
-
if (t & 2048) return !0;
|
|
1302
|
-
if (t & 2 && (e.f &= ~ue), t & 4096) {
|
|
1303
|
-
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1304
|
-
var a = n[i];
|
|
1305
|
-
if (Gr(a) && Jt(a), a.wv > e.wv) return !0;
|
|
1306
|
-
}
|
|
1307
|
-
t & 512 && z === null && D(e, x);
|
|
1308
|
-
}
|
|
1309
|
-
return !1;
|
|
1310
|
-
}
|
|
1311
|
-
function Kr(e, t, n = !0) {
|
|
1312
|
-
var r = e.reactions;
|
|
1313
|
-
if (r !== null && !(Lr !== null && Lr.has(e))) for (var i = 0; i < r.length; i++) {
|
|
1314
|
-
var a = r[i];
|
|
1315
|
-
a.f & 2 ? Kr(a, t, !1) : t === a && (n ? D(a, S) : a.f & 1024 && D(a, re), Fn(a));
|
|
1316
|
-
}
|
|
1317
|
-
}
|
|
1318
|
-
function qr(e) {
|
|
1319
|
-
var t = Y, n = X, r = Z, i = G, a = Lr, o = E, s = K, c = Hr, l = e.f;
|
|
1320
|
-
Y = null, X = 0, Z = null, G = l & 96 ? null : e, Lr = null, Je(e.ctx), K = !1, Hr = ++Vr, e.ac !== null && (ut(() => {
|
|
1321
|
-
e.ac.abort(xe);
|
|
1322
|
-
}), e.ac = null);
|
|
1323
|
-
try {
|
|
1324
|
-
e.f |= de;
|
|
1325
|
-
var u = e.fn, d = u();
|
|
1326
|
-
e.f |= oe;
|
|
1327
|
-
var f = e.deps, p = R?.is_fork;
|
|
1328
|
-
if (Y !== null) {
|
|
1329
|
-
var m;
|
|
1330
|
-
if (p || Yr(e, X), f !== null && X > 0) for (f.length = X + Y.length, m = 0; m < Y.length; m++) f[X + m] = Y[m];
|
|
1331
|
-
else e.deps = f = Y;
|
|
1332
|
-
if (ur() && e.f & 512) for (m = X; m < f.length; m++) {
|
|
1333
|
-
var h;
|
|
1334
|
-
((h = f[m]).reactions ?? (h.reactions = [])).push(e);
|
|
1335
|
-
}
|
|
1336
|
-
} else !p && f !== null && X < f.length && (Yr(e, X), f.length = X);
|
|
1337
|
-
if (Ze() && Z !== null && !K && f !== null && !(e.f & 6146)) for (m = 0; m < Z.length; m++) Kr(Z[m], e);
|
|
1338
|
-
if (i !== null && i !== e) {
|
|
1339
|
-
if (Vr++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Vr;
|
|
1340
|
-
if (t !== null) for (let e of t) e.rv = Vr;
|
|
1341
|
-
Z !== null && (r === null ? r = Z : r.push(...Z));
|
|
1342
|
-
}
|
|
1343
|
-
return e.f & 8388608 && (e.f ^= pe), d;
|
|
1344
|
-
} catch (e) {
|
|
1345
|
-
return nt(e);
|
|
1346
|
-
} finally {
|
|
1347
|
-
e.f ^= de, Y = t, X = n, Z = r, G = i, Lr = a, Je(o), K = s, Hr = c;
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
function Jr(e, t) {
|
|
1351
|
-
let n = t.reactions;
|
|
1352
|
-
if (n !== null) {
|
|
1353
|
-
var r = o.call(n, e);
|
|
1354
|
-
if (r !== -1) {
|
|
1355
|
-
var a = n.length - 1;
|
|
1356
|
-
a === 0 ? n = t.reactions = null : (n[r] = n[a], n.pop());
|
|
1357
|
-
}
|
|
1358
|
-
}
|
|
1359
|
-
if (n === null && t.f & 2 && (Y === null || !s.call(Y, t))) {
|
|
1360
|
-
var c = t;
|
|
1361
|
-
c.f & 512 && (c.f ^= 512, c.f &= ~ue), c.v !== i && at(c), c.ac !== null && ut(() => {
|
|
1362
|
-
c.ac.abort(xe), c.ac = null, D(c, S);
|
|
1363
|
-
}), Yt(c), Yr(c, 0);
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
|
-
function Yr(e, t) {
|
|
1367
|
-
var n = e.deps;
|
|
1368
|
-
if (n !== null) for (var r = t; r < n.length; r++) Jr(e, n[r]);
|
|
1369
|
-
}
|
|
1370
|
-
function Xr(e) {
|
|
1371
|
-
var t = e.f;
|
|
1372
|
-
if (!(t & 16384)) {
|
|
1373
|
-
D(e, x);
|
|
1374
|
-
var n = J, r = Nr;
|
|
1375
|
-
J = e, Nr = !(t & 96);
|
|
1376
|
-
try {
|
|
1377
|
-
t & 16777232 ? wr(e) : Cr(e), Sr(e);
|
|
1378
|
-
var i = qr(e);
|
|
1379
|
-
e.teardown = typeof i == "function" ? i : null, e.wv = Br;
|
|
1380
|
-
} finally {
|
|
1381
|
-
Nr = r, J = n;
|
|
1382
|
-
}
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
function Q(e) {
|
|
1386
|
-
var t = !!(e.f & 2);
|
|
1387
|
-
if (Mr?.add(e), G !== null && !K && !(J !== null && J.f & 16384) && (Lr === null || !Lr.has(e))) {
|
|
1388
|
-
var n = G.deps;
|
|
1389
|
-
if (G.f & 2097152) e.rv < Vr && (e.rv = Vr, Y === null && n !== null && n[X] === e ? X++ : Y === null ? Y = [e] : Y.push(e));
|
|
1390
|
-
else {
|
|
1391
|
-
var r;
|
|
1392
|
-
(r = G).deps ?? (r.deps = []), s.call(G.deps, e) || G.deps.push(e);
|
|
1393
|
-
var i = e.reactions;
|
|
1394
|
-
i === null ? e.reactions = [G] : s.call(i, G) || i.push(G);
|
|
1395
|
-
}
|
|
1396
|
-
}
|
|
1397
|
-
if (Pr && zn.has(e)) return zn.get(e);
|
|
1398
|
-
if (t) {
|
|
1399
|
-
var a = e;
|
|
1400
|
-
if (Pr) {
|
|
1401
|
-
var o = a.v;
|
|
1402
|
-
return (!(a.f & 1024) && a.reactions !== null || Qr(a)) && (o = qt(a)), zn.set(a, o), o;
|
|
1403
|
-
}
|
|
1404
|
-
var c = !(a.f & 512) && !K && G !== null && (Nr || !!(G.f & 512)), l = (a.f & oe) === 0;
|
|
1405
|
-
Gr(a) && (c && (a.f |= 512), Jt(a)), c && !l && (Xt(a), Zr(a));
|
|
1406
|
-
}
|
|
1407
|
-
if (z?.has(e)) return z.get(e);
|
|
1408
|
-
if (e.f & 8388608) throw e.v;
|
|
1409
|
-
return e.v;
|
|
1410
|
-
}
|
|
1411
|
-
function Zr(e) {
|
|
1412
|
-
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (Xt(t), Zr(t));
|
|
1413
|
-
}
|
|
1414
|
-
function Qr(e) {
|
|
1415
|
-
if (e.v === i) return !0;
|
|
1416
|
-
if (e.deps === null) return !1;
|
|
1417
|
-
for (let t of e.deps) if (zn.has(t) || t.f & 2 && Qr(t)) return !0;
|
|
1418
|
-
return !1;
|
|
1419
|
-
}
|
|
1420
|
-
function $r(e) {
|
|
1421
|
-
var t = K;
|
|
1422
|
-
try {
|
|
1423
|
-
return K = !0, e();
|
|
1424
|
-
} finally {
|
|
1425
|
-
K = t;
|
|
1426
|
-
}
|
|
1427
|
-
}
|
|
1428
|
-
var ei = /* @__PURE__ */ Symbol("events"), ti = /* @__PURE__ */ new Set(), ni = /* @__PURE__ */ new Set(), ri = null;
|
|
1429
|
-
function ii(e) {
|
|
1430
|
-
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
|
|
1431
|
-
ri = e;
|
|
1432
|
-
var o = 0, s = ri === e && e[ei];
|
|
1433
|
-
if (s) {
|
|
1434
|
-
var c = i.indexOf(s);
|
|
1435
|
-
if (c !== -1 && (t === document || t === window)) {
|
|
1436
|
-
e[ei] = t;
|
|
1437
|
-
return;
|
|
1438
|
-
}
|
|
1439
|
-
var l = i.indexOf(t);
|
|
1440
|
-
if (l === -1) return;
|
|
1441
|
-
c <= l && (o = c);
|
|
1442
|
-
}
|
|
1443
|
-
if (a = i[o] || e.target, a !== t) {
|
|
1444
|
-
u(e, "currentTarget", {
|
|
1445
|
-
configurable: !0,
|
|
1446
|
-
get() {
|
|
1447
|
-
return a || n;
|
|
1448
|
-
}
|
|
1449
|
-
});
|
|
1450
|
-
var d = G, f = J;
|
|
1451
|
-
q(null), Ir(null);
|
|
1452
|
-
try {
|
|
1453
|
-
for (var p, m = []; a !== null && a !== t;) {
|
|
1454
|
-
try {
|
|
1455
|
-
var h = a[ei]?.[r];
|
|
1456
|
-
h != null && (!a.disabled || e.target === a) && h.call(a, e);
|
|
1457
|
-
} catch (e) {
|
|
1458
|
-
p ? m.push(e) : p = e;
|
|
1459
|
-
}
|
|
1460
|
-
if (e.cancelBubble) break;
|
|
1461
|
-
o++, a = o < i.length ? i[o] : null;
|
|
1462
|
-
}
|
|
1463
|
-
if (p) {
|
|
1464
|
-
for (let e of m) queueMicrotask(() => {
|
|
1465
|
-
throw e;
|
|
1466
|
-
});
|
|
1467
|
-
throw p;
|
|
1468
|
-
}
|
|
1469
|
-
} finally {
|
|
1470
|
-
e[ei] = t, delete e.currentTarget, q(d), Ir(f);
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
}
|
|
1474
|
-
var ai = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1475
|
-
function oi(e) {
|
|
1476
|
-
return ai?.createHTML(e) ?? e;
|
|
1477
|
-
}
|
|
1478
|
-
function si(e) {
|
|
1479
|
-
var t = or("template");
|
|
1480
|
-
return t.innerHTML = oi(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1481
|
-
}
|
|
1482
|
-
function ci(e, t) {
|
|
1483
|
-
var n = J;
|
|
1484
|
-
n.nodes === null && (n.nodes = {
|
|
1485
|
-
start: e,
|
|
1486
|
-
end: t,
|
|
1487
|
-
a: null,
|
|
1488
|
-
t: null
|
|
1489
|
-
});
|
|
1490
|
-
}
|
|
1491
|
-
// @__NO_SIDE_EFFECTS__
|
|
1492
|
-
function li(e, t) {
|
|
1493
|
-
var n = !!(t & 1), r = !!(t & 2), i, a = !e.startsWith("<!>");
|
|
1494
|
-
return () => {
|
|
1495
|
-
if (w) return ci(T, null), T;
|
|
1496
|
-
i === void 0 && (i = si(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ er(i)));
|
|
1497
|
-
var t = r || Yn ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1498
|
-
if (n) {
|
|
1499
|
-
var o = /* @__PURE__ */ er(t), s = t.lastChild;
|
|
1500
|
-
ci(o, s);
|
|
1501
|
-
} else ci(t, t);
|
|
1502
|
-
return t;
|
|
1503
|
-
};
|
|
1504
|
-
}
|
|
1505
|
-
function ui(e, t) {
|
|
1506
|
-
if (w) {
|
|
1507
|
-
var n = J;
|
|
1508
|
-
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = T), Be();
|
|
1509
|
-
return;
|
|
1510
|
-
}
|
|
1511
|
-
e !== null && e.before(t);
|
|
1512
|
-
}
|
|
1513
|
-
var di = ["touchstart", "touchmove"];
|
|
1514
|
-
function fi(e) {
|
|
1515
|
-
return di.includes(e);
|
|
1516
|
-
}
|
|
1517
|
-
function pi(e, t) {
|
|
1518
|
-
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1519
|
-
n !== (e[be] ?? (e[be] = e.nodeValue)) && (e[be] = n, e.nodeValue = `${n}`);
|
|
1520
|
-
}
|
|
1521
|
-
function mi(e, t) {
|
|
1522
|
-
return _i(e, t);
|
|
1523
|
-
}
|
|
1524
|
-
function hi(e, t) {
|
|
1525
|
-
Qn(), t.intro = t.intro ?? !1;
|
|
1526
|
-
let n = t.target, i = w, a = T;
|
|
1527
|
-
try {
|
|
1528
|
-
for (var o = /* @__PURE__ */ er(n); o && (o.nodeType !== 8 || o.data !== "[");) o = /* @__PURE__ */ tr(o);
|
|
1529
|
-
if (!o) throw r;
|
|
1530
|
-
Re(!0), ze(o);
|
|
1531
|
-
let i = _i(e, {
|
|
1532
|
-
...t,
|
|
1533
|
-
anchor: o
|
|
1534
|
-
});
|
|
1535
|
-
return Re(!1), i;
|
|
1536
|
-
} catch (i) {
|
|
1537
|
-
if (i instanceof Error && i.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw i;
|
|
1538
|
-
return i !== r && console.warn("Failed to hydrate: ", i), t.recover === !1 && ke(), Qn(), ir(n), Re(!1), mi(e, t);
|
|
1539
|
-
} finally {
|
|
1540
|
-
Re(i), ze(a);
|
|
1541
|
-
}
|
|
1542
|
-
}
|
|
1543
|
-
var gi = /* @__PURE__ */ new Map();
|
|
1544
|
-
function _i(e, { target: t, anchor: n, props: i = {}, events: a, context: o, intro: s = !0, transformError: l }) {
|
|
1545
|
-
Qn();
|
|
1546
|
-
var u = void 0, d = hr(() => {
|
|
1547
|
-
var s = n ?? t.appendChild($n());
|
|
1548
|
-
ht(s, { pending: () => {} }, (t) => {
|
|
1549
|
-
Ye({});
|
|
1550
|
-
var n = E;
|
|
1551
|
-
if (o && (n.c = o), a && (i.$$events = a), w && ci(t, null), u = e(t, i) || {}, w && (J.nodes.end = T, T === null || T.nodeType !== 8 || T.data !== "]")) throw Ie(), r;
|
|
1552
|
-
Xe();
|
|
1553
|
-
}, l);
|
|
1554
|
-
var d = /* @__PURE__ */ new Set(), f = (e) => {
|
|
1555
|
-
for (var n = 0; n < e.length; n++) {
|
|
1556
|
-
var r = e[n];
|
|
1557
|
-
if (!d.has(r)) {
|
|
1558
|
-
d.add(r);
|
|
1559
|
-
var i = fi(r);
|
|
1560
|
-
for (let e of [t, document]) {
|
|
1561
|
-
var a = gi.get(e);
|
|
1562
|
-
a === void 0 && (a = /* @__PURE__ */ new Map(), gi.set(e, a));
|
|
1563
|
-
var o = a.get(r);
|
|
1564
|
-
o === void 0 ? (e.addEventListener(r, ii, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
|
|
1565
|
-
}
|
|
1566
|
-
}
|
|
1567
|
-
}
|
|
1568
|
-
};
|
|
1569
|
-
return f(c(ti)), ni.add(f), () => {
|
|
1570
|
-
for (var e of d) for (let n of [t, document]) {
|
|
1571
|
-
var r = gi.get(n), i = r.get(e);
|
|
1572
|
-
--i == 0 ? (n.removeEventListener(e, ii), r.delete(e), r.size === 0 && gi.delete(n)) : r.set(e, i);
|
|
1573
|
-
}
|
|
1574
|
-
ni.delete(f), s !== n && s.parentNode?.removeChild(s);
|
|
1575
|
-
};
|
|
1576
|
-
});
|
|
1577
|
-
return vi.set(u, d), u;
|
|
1578
|
-
}
|
|
1579
|
-
var vi = /* @__PURE__ */ new WeakMap();
|
|
1580
|
-
function yi(e, t) {
|
|
1581
|
-
let n = vi.get(e);
|
|
1582
|
-
return n ? (vi.delete(e), n(t)) : Promise.resolve();
|
|
1583
|
-
}
|
|
1584
|
-
var bi = /* @__PURE__ */ new WeakMap(), xi = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap(), Si = /* @__PURE__ */ new WeakMap(), Ci = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), Ti = /* @__PURE__ */ new WeakMap(), Ei = class {
|
|
1585
|
-
constructor(e, t = !0) {
|
|
1586
|
-
b(this, "anchor", void 0), O(this, bi, /* @__PURE__ */ new Map()), O(this, xi, /* @__PURE__ */ new Map()), O(this, $, /* @__PURE__ */ new Map()), O(this, Si, /* @__PURE__ */ new Set()), O(this, Ci, !0), O(this, wi, (e) => {
|
|
1587
|
-
if (j(bi, this).has(e)) {
|
|
1588
|
-
var t = j(bi, this).get(e), n = j(xi, this).get(t);
|
|
1589
|
-
if (n) kr(n), j(Si, this).delete(t);
|
|
1590
|
-
else {
|
|
1591
|
-
var r = j($, this).get(t);
|
|
1592
|
-
r && (kr(r.effect), j(xi, this).set(t, r.effect), j($, this).delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
|
|
1593
|
-
}
|
|
1594
|
-
for (let [t, n] of j(bi, this)) {
|
|
1595
|
-
if (j(bi, this).delete(t), t === e) break;
|
|
1596
|
-
let r = j($, this).get(n);
|
|
1597
|
-
r && (W(r.effect), j($, this).delete(n));
|
|
1598
|
-
}
|
|
1599
|
-
for (let [e, r] of j(xi, this)) {
|
|
1600
|
-
if (e === t || j(Si, this).has(e)) continue;
|
|
1601
|
-
let i = () => {
|
|
1602
|
-
if (Array.from(j(bi, this).values()).includes(e)) {
|
|
1603
|
-
var t = document.createDocumentFragment();
|
|
1604
|
-
jr(r, t), t.append($n()), j($, this).set(e, {
|
|
1605
|
-
effect: r,
|
|
1606
|
-
fragment: t
|
|
1607
|
-
});
|
|
1608
|
-
} else W(r);
|
|
1609
|
-
j(Si, this).delete(e), j(xi, this).delete(e);
|
|
1610
|
-
};
|
|
1611
|
-
j(Ci, this) || !n ? (j(Si, this).add(e), Dr(r, i, !1)) : i();
|
|
1612
|
-
}
|
|
1613
|
-
}
|
|
1614
|
-
}), O(this, Ti, (e) => {
|
|
1615
|
-
j(bi, this).delete(e);
|
|
1616
|
-
let t = Array.from(j(bi, this).values());
|
|
1617
|
-
for (let [e, n] of j($, this)) t.includes(e) || (W(n.effect), j($, this).delete(e));
|
|
1618
|
-
}), this.anchor = e, A(Ci, this, t);
|
|
1619
|
-
}
|
|
1620
|
-
ensure(e, t) {
|
|
1621
|
-
var n = R, r = ar();
|
|
1622
|
-
if (t && !j(xi, this).has(e) && !j($, this).has(e)) {
|
|
1623
|
-
if (r) {
|
|
1624
|
-
var i = document.createDocumentFragment(), a = $n();
|
|
1625
|
-
i.append(a), j($, this).set(e, {
|
|
1626
|
-
effect: xr(() => t(a)),
|
|
1627
|
-
fragment: i
|
|
1628
|
-
});
|
|
1629
|
-
} else j(xi, this).set(e, xr(() => t(this.anchor)));
|
|
1630
|
-
}
|
|
1631
|
-
if (j(bi, this).set(n, e), r) {
|
|
1632
|
-
for (let [t, r] of j(xi, this)) t === e ? n.unskip_effect(r) : n.skip_effect(r);
|
|
1633
|
-
for (let [t, r] of j($, this)) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
|
|
1634
|
-
n.oncommit(j(wi, this)), n.ondiscard(j(Ti, this));
|
|
1635
|
-
} else w && (this.anchor = T), j(wi, this).call(this, n);
|
|
1636
|
-
}
|
|
1637
|
-
};
|
|
1638
|
-
function Di(e) {
|
|
1639
|
-
E === null && Ce("onMount"), fr(() => {
|
|
1640
|
-
let t = $r(e);
|
|
1641
|
-
if (typeof t == "function") return t;
|
|
1642
|
-
});
|
|
1643
|
-
}
|
|
1644
|
-
function Oi(e, t, n = !1) {
|
|
1645
|
-
var r;
|
|
1646
|
-
w && (r = T, Be());
|
|
1647
|
-
var i = new Ei(e), a = n ? ce : 0;
|
|
1648
|
-
function o(e, t) {
|
|
1649
|
-
if (w) {
|
|
1650
|
-
var n = We(r);
|
|
1651
|
-
if (e !== parseInt(n.substring(1))) {
|
|
1652
|
-
var a = Ue();
|
|
1653
|
-
ze(a), i.anchor = a, Re(!1), i.ensure(e, t), Re(!0);
|
|
1654
|
-
return;
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
i.ensure(e, t);
|
|
1658
|
-
}
|
|
1659
|
-
br(() => {
|
|
1660
|
-
var e = !1;
|
|
1661
|
-
t((t, n = 0) => {
|
|
1662
|
-
e = !0, o(n, t);
|
|
1663
|
-
}), e || o(-1, null);
|
|
1664
|
-
}, a);
|
|
1665
|
-
}
|
|
1666
|
-
function ki(e, t) {
|
|
1667
|
-
gr(() => {
|
|
1668
|
-
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
1669
|
-
if (!r.querySelector("#" + t.hash)) {
|
|
1670
|
-
let e = or("style");
|
|
1671
|
-
e.id = t.hash, e.textContent = t.code, r.appendChild(e);
|
|
1672
|
-
}
|
|
1673
|
-
});
|
|
1674
|
-
}
|
|
1675
|
-
var Ai = /* @__PURE__ */ Symbol("is custom element"), ji = /* @__PURE__ */ Symbol("is html"), Mi = Se ? "link" : "LINK";
|
|
1676
|
-
function Ni(e, t, n, r) {
|
|
1677
|
-
var i = Pi(e);
|
|
1678
|
-
w && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Mi) || i[t] !== (i[t] = n) && (t === "loading" && (e[ge] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Ii(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
1679
|
-
}
|
|
1680
|
-
function Pi(e) {
|
|
1681
|
-
return e[_e] ?? (e[_e] = {
|
|
1682
|
-
[Ai]: e.nodeName.includes("-"),
|
|
1683
|
-
[ji]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
1684
|
-
});
|
|
1685
|
-
}
|
|
1686
|
-
var Fi = /* @__PURE__ */ new Map();
|
|
1687
|
-
function Ii(e) {
|
|
1688
|
-
var t = e.getAttribute("is") || e.nodeName, n = Fi.get(t);
|
|
1689
|
-
if (n) return n;
|
|
1690
|
-
Fi.set(t, n = []);
|
|
1691
|
-
for (var r, i = e, a = Element.prototype; a !== i;) {
|
|
1692
|
-
for (var o in r = f(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.push(o);
|
|
1693
|
-
i = h(i);
|
|
1694
|
-
}
|
|
1695
|
-
return n;
|
|
1696
|
-
}
|
|
1697
|
-
var Li, Ri = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakSet(), Hi = class {
|
|
1698
|
-
constructor(e) {
|
|
1699
|
-
pt(this, Vi), O(this, Ri, /* @__PURE__ */ new WeakMap()), O(this, zi, void 0), O(this, Bi, void 0), A(Bi, this, e);
|
|
1700
|
-
}
|
|
1701
|
-
observe(e, t) {
|
|
1702
|
-
var n = j(Ri, this).get(e) || /* @__PURE__ */ new Set();
|
|
1703
|
-
return n.add(t), j(Ri, this).set(e, n), k(Vi, this, Ui).call(this).observe(e, j(Bi, this)), () => {
|
|
1704
|
-
var n = j(Ri, this).get(e);
|
|
1705
|
-
n.delete(t), n.size === 0 && (j(Ri, this).delete(e), j(zi, this).unobserve(e));
|
|
1706
|
-
};
|
|
1707
|
-
}
|
|
1708
|
-
};
|
|
1709
|
-
Li = Hi;
|
|
1710
|
-
function Ui() {
|
|
1711
|
-
return j(zi, this) ?? A(zi, this, new ResizeObserver((e) => {
|
|
1712
|
-
for (var t of e) {
|
|
1713
|
-
Li.entries.set(t.target, t);
|
|
1714
|
-
for (var n of j(Ri, this).get(t.target) || []) n(t);
|
|
1715
|
-
}
|
|
1716
|
-
}));
|
|
1717
|
-
}
|
|
1718
|
-
b(Hi, "entries", /* @__PURE__ */ new WeakMap());
|
|
1719
|
-
function Wi(e, t) {
|
|
1720
|
-
return e === t || e?.[me] === t;
|
|
1721
|
-
}
|
|
1722
|
-
function Gi(e = {}, t, n, r) {
|
|
1723
|
-
var i = E.r, a = J;
|
|
1724
|
-
return gr(() => {
|
|
1725
|
-
var o, s;
|
|
1726
|
-
return vr(() => {
|
|
1727
|
-
o = s, s = r?.() || [], $r(() => {
|
|
1728
|
-
Wi(n(...s), e) || (t(e, ...s), o && Wi(n(...o), e) && t(null, ...o));
|
|
1729
|
-
});
|
|
1730
|
-
}), () => {
|
|
1731
|
-
let r = a;
|
|
1732
|
-
for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
|
|
1733
|
-
let o = () => {
|
|
1734
|
-
s && Wi(n(...s), e) && t(null, ...s);
|
|
1735
|
-
}, c = r.teardown;
|
|
1736
|
-
r.teardown = () => {
|
|
1737
|
-
o(), c?.();
|
|
1738
|
-
};
|
|
1739
|
-
};
|
|
1740
|
-
}), e;
|
|
1741
|
-
}
|
|
1742
|
-
function Ki(e, t, n, r) {
|
|
1743
|
-
var i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ Vt(r), Q(l)) : (c && (c = !1, s = o ? $r(r) : r), s);
|
|
1744
|
-
let f;
|
|
1745
|
-
if (a) {
|
|
1746
|
-
var p = me in e || he in e;
|
|
1747
|
-
f = d(e, t)?.set ?? (p && t in e ? (n) => e[t] = n : void 0);
|
|
1748
|
-
}
|
|
1749
|
-
var m, h = !1;
|
|
1750
|
-
a ? [m, h] = lt(() => e[t]) : m = e[t], m === void 0 && r !== void 0 && (m = u(), f && (i && Ae(t), f(m)));
|
|
1751
|
-
var g;
|
|
1752
|
-
if (g = i ? () => {
|
|
1753
|
-
var n = e[t];
|
|
1754
|
-
return n === void 0 ? u() : (c = !0, n);
|
|
1755
|
-
} : () => {
|
|
1756
|
-
var n = e[t];
|
|
1757
|
-
return n !== void 0 && (s = void 0), n === void 0 ? s : n;
|
|
1758
|
-
}, i && !(n & 4)) return g;
|
|
1759
|
-
if (f) {
|
|
1760
|
-
var ee = e.$$legacy;
|
|
1761
|
-
return (function(e, t) {
|
|
1762
|
-
return arguments.length > 0 ? ((!i || !t || ee || h) && f(t ? g() : e), e) : g();
|
|
1763
|
-
});
|
|
1764
|
-
}
|
|
1765
|
-
var _ = !1, v = (n & 1 ? Vt : Gt)(() => (_ = !1, g()));
|
|
1766
|
-
a && Q(v);
|
|
1767
|
-
var y = J;
|
|
1768
|
-
return (function(e, t) {
|
|
1769
|
-
if (arguments.length > 0) {
|
|
1770
|
-
let n = t ? Q(v) : i && a ? qn(e) : e;
|
|
1771
|
-
return H(v, n), _ = !0, s !== void 0 && (s = n), e;
|
|
1772
|
-
}
|
|
1773
|
-
return Pr && _ || y.f & 16384 ? v.v : Q(v);
|
|
1774
|
-
});
|
|
1775
|
-
}
|
|
1776
|
-
function qi(e) {
|
|
1777
|
-
return new Xi(e);
|
|
1778
|
-
}
|
|
1779
|
-
var Ji = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), Xi = class {
|
|
1780
|
-
constructor(e) {
|
|
1781
|
-
O(this, Ji, void 0), O(this, Yi, void 0);
|
|
1782
|
-
var t = /* @__PURE__ */ new Map(), n = (e, n) => {
|
|
1783
|
-
var r = /* @__PURE__ */ Hn(n, !1, !1);
|
|
1784
|
-
return t.set(e, r), r;
|
|
1785
|
-
};
|
|
1786
|
-
let r = new Proxy({
|
|
1787
|
-
...e.props || {},
|
|
1788
|
-
$$events: {}
|
|
1789
|
-
}, {
|
|
1790
|
-
get(e, r) {
|
|
1791
|
-
return Q(t.get(r) ?? n(r, Reflect.get(e, r)));
|
|
1792
|
-
},
|
|
1793
|
-
has(e, r) {
|
|
1794
|
-
return r === he || (Q(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
|
|
1795
|
-
},
|
|
1796
|
-
set(e, r, i) {
|
|
1797
|
-
return H(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
|
|
1798
|
-
}
|
|
1799
|
-
});
|
|
1800
|
-
A(Yi, this, (e.hydrate ? hi : mi)(e.component, {
|
|
1801
|
-
target: e.target,
|
|
1802
|
-
anchor: e.anchor,
|
|
1803
|
-
props: r,
|
|
1804
|
-
context: e.context,
|
|
1805
|
-
intro: e.intro ?? !1,
|
|
1806
|
-
recover: e.recover,
|
|
1807
|
-
transformError: e.transformError
|
|
1808
|
-
})), (!e?.props?.$$host || e.sync === !1) && jn(), A(Ji, this, r.$$events);
|
|
1809
|
-
for (let e of Object.keys(j(Yi, this))) e === "$set" || e === "$destroy" || e === "$on" || u(this, e, {
|
|
1810
|
-
get() {
|
|
1811
|
-
return j(Yi, this)[e];
|
|
1812
|
-
},
|
|
1813
|
-
set(t) {
|
|
1814
|
-
j(Yi, this)[e] = t;
|
|
1815
|
-
},
|
|
1816
|
-
enumerable: !0
|
|
1817
|
-
});
|
|
1818
|
-
j(Yi, this).$set = (e) => {
|
|
1819
|
-
Object.assign(r, e);
|
|
1820
|
-
}, j(Yi, this).$destroy = () => {
|
|
1821
|
-
yi(j(Yi, this));
|
|
1822
|
-
};
|
|
1823
|
-
}
|
|
1824
|
-
$set(e) {
|
|
1825
|
-
j(Yi, this).$set(e);
|
|
1826
|
-
}
|
|
1827
|
-
$on(e, t) {
|
|
1828
|
-
j(Ji, this)[e] = j(Ji, this)[e] || [];
|
|
1829
|
-
let n = (...e) => t.call(this, ...e);
|
|
1830
|
-
return j(Ji, this)[e].push(n), () => {
|
|
1831
|
-
j(Ji, this)[e] = j(Ji, this)[e].filter((e) => e !== n);
|
|
1832
|
-
};
|
|
1833
|
-
}
|
|
1834
|
-
$destroy() {
|
|
1835
|
-
j(Yi, this).$destroy();
|
|
1836
|
-
}
|
|
1837
|
-
}, Zi;
|
|
1838
|
-
typeof HTMLElement == "function" && (Zi = class extends HTMLElement {
|
|
1839
|
-
constructor(e, t, n) {
|
|
1840
|
-
super(), b(this, "$$ctor", void 0), b(this, "$$s", void 0), b(this, "$$c", void 0), b(this, "$$cn", !1), b(this, "$$d", {}), b(this, "$$r", !1), b(this, "$$p_d", {}), b(this, "$$l", {}), b(this, "$$l_u", /* @__PURE__ */ new Map()), b(this, "$$me", void 0), b(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, n && (this.$$shadowRoot = this.attachShadow(n));
|
|
1841
|
-
}
|
|
1842
|
-
addEventListener(e, t, n) {
|
|
1843
|
-
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
1844
|
-
let n = this.$$c.$on(e, t);
|
|
1845
|
-
this.$$l_u.set(t, n);
|
|
1846
|
-
}
|
|
1847
|
-
super.addEventListener(e, t, n);
|
|
1848
|
-
}
|
|
1849
|
-
removeEventListener(e, t, n) {
|
|
1850
|
-
if (super.removeEventListener(e, t, n), this.$$c) {
|
|
1851
|
-
let e = this.$$l_u.get(t);
|
|
1852
|
-
e && (e(), this.$$l_u.delete(t));
|
|
1853
|
-
}
|
|
1854
|
-
}
|
|
1855
|
-
async connectedCallback() {
|
|
1856
|
-
if (this.$$cn = !0, !this.$$c) {
|
|
1857
|
-
let e = function(e) {
|
|
1858
|
-
return (t) => {
|
|
1859
|
-
let n = or("slot");
|
|
1860
|
-
e !== "default" && (n.name = e), ui(t, n);
|
|
1861
|
-
};
|
|
1862
|
-
};
|
|
1863
|
-
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
1864
|
-
let t = {}, n = $i(this);
|
|
1865
|
-
for (let r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
|
|
1866
|
-
for (let e of this.attributes) {
|
|
1867
|
-
let t = this.$$g_p(e.name);
|
|
1868
|
-
t in this.$$d || (this.$$d[t] = Qi(t, e.value, this.$$p_d, "toProp"));
|
|
1869
|
-
}
|
|
1870
|
-
for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
|
|
1871
|
-
this.$$c = qi({
|
|
1872
|
-
component: this.$$ctor,
|
|
1873
|
-
target: this.$$shadowRoot || this,
|
|
1874
|
-
props: {
|
|
1875
|
-
...this.$$d,
|
|
1876
|
-
$$slots: t,
|
|
1877
|
-
$$host: this
|
|
1878
|
-
}
|
|
1879
|
-
}), this.$$me = mr(() => {
|
|
1880
|
-
vr(() => {
|
|
1881
|
-
this.$$r = !0;
|
|
1882
|
-
for (let e of l(this.$$c)) {
|
|
1883
|
-
if (!this.$$p_d[e]?.reflect) continue;
|
|
1884
|
-
this.$$d[e] = this.$$c[e];
|
|
1885
|
-
let t = Qi(e, this.$$d[e], this.$$p_d, "toAttribute");
|
|
1886
|
-
t == null ? this.removeAttribute(this.$$p_d[e].attribute || e) : this.setAttribute(this.$$p_d[e].attribute || e, t);
|
|
1887
|
-
}
|
|
1888
|
-
this.$$r = !1;
|
|
1889
|
-
});
|
|
1890
|
-
});
|
|
1891
|
-
for (let e in this.$$l) for (let t of this.$$l[e]) {
|
|
1892
|
-
let n = this.$$c.$on(e, t);
|
|
1893
|
-
this.$$l_u.set(t, n);
|
|
1894
|
-
}
|
|
1895
|
-
this.$$l = {};
|
|
1896
|
-
}
|
|
1897
|
-
}
|
|
1898
|
-
attributeChangedCallback(e, t, n) {
|
|
1899
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Qi(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
1900
|
-
}
|
|
1901
|
-
disconnectedCallback() {
|
|
1902
|
-
this.$$cn = !1, Promise.resolve().then(() => {
|
|
1903
|
-
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$me(), this.$$c = void 0);
|
|
1904
|
-
});
|
|
1905
|
-
}
|
|
1906
|
-
$$g_p(e) {
|
|
1907
|
-
return l(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
1908
|
-
}
|
|
1909
|
-
});
|
|
1910
|
-
function Qi(e, t, n, r) {
|
|
1911
|
-
let i = n[e]?.type;
|
|
1912
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
|
|
1913
|
-
if (r === "toAttribute") switch (i) {
|
|
1914
|
-
case "Object":
|
|
1915
|
-
case "Array": return t == null ? null : JSON.stringify(t);
|
|
1916
|
-
case "Boolean": return t ? "" : null;
|
|
1917
|
-
case "Number": return t ?? null;
|
|
1918
|
-
default: return t;
|
|
1919
|
-
}
|
|
1920
|
-
else switch (i) {
|
|
1921
|
-
case "Object":
|
|
1922
|
-
case "Array": return t && JSON.parse(t);
|
|
1923
|
-
case "Boolean": return t;
|
|
1924
|
-
case "Number": return t == null ? t : +t;
|
|
1925
|
-
default: return t;
|
|
1926
|
-
}
|
|
1927
|
-
}
|
|
1928
|
-
function $i(e) {
|
|
1929
|
-
let t = {};
|
|
1930
|
-
return e.childNodes.forEach((e) => {
|
|
1931
|
-
t[e.slot || "default"] = !0;
|
|
1932
|
-
}), t;
|
|
1933
|
-
}
|
|
1934
|
-
function ea(e, t, n, r, i, a) {
|
|
1935
|
-
let o = class extends Zi {
|
|
1936
|
-
constructor() {
|
|
1937
|
-
super(e, n, i), this.$$p_d = t;
|
|
1938
|
-
}
|
|
1939
|
-
static get observedAttributes() {
|
|
1940
|
-
return l(t).map((e) => (t[e].attribute || e).toLowerCase());
|
|
1941
|
-
}
|
|
1942
|
-
};
|
|
1943
|
-
return l(t).forEach((e) => {
|
|
1944
|
-
u(o.prototype, e, {
|
|
1945
|
-
get() {
|
|
1946
|
-
return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
|
|
1947
|
-
},
|
|
1948
|
-
set(n) {
|
|
1949
|
-
n = Qi(e, n, t), this.$$d[e] = n;
|
|
1950
|
-
var r = this.$$c;
|
|
1951
|
-
r && (d(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
|
|
1952
|
-
}
|
|
1953
|
-
});
|
|
1954
|
-
}), r.forEach((e) => {
|
|
1955
|
-
u(o.prototype, e, { get() {
|
|
1956
|
-
return this.$$c?.[e];
|
|
1957
|
-
} });
|
|
1958
|
-
}), a && (o = a(o)), e.element = o, o;
|
|
1959
|
-
}
|
|
1960
|
-
function ta(e) {
|
|
1961
|
-
return e ? e.trim().replace(/_/g, "-").split(/[.@]/)[0].toLowerCase() : "";
|
|
1962
|
-
}
|
|
1963
|
-
function na(e) {
|
|
1964
|
-
let t = ta(e);
|
|
1965
|
-
if (!t) return [];
|
|
1966
|
-
let n = t.split("-"), r = [];
|
|
1967
|
-
for (let e = n.length; e > 0; e--) {
|
|
1968
|
-
let t = n.slice(0, e);
|
|
1969
|
-
t.length > 1 && t[t.length - 1].length === 1 || r.push(t.join("-"));
|
|
1970
|
-
}
|
|
1971
|
-
return r;
|
|
1972
|
-
}
|
|
1973
|
-
function ra(e, t) {
|
|
1974
|
-
for (let n of na(e)) {
|
|
1975
|
-
let e = t.find((e) => ta(e) === n);
|
|
1976
|
-
if (e != null) return e;
|
|
1977
|
-
}
|
|
1978
|
-
}
|
|
1979
|
-
var ia = {
|
|
1980
|
-
common: {
|
|
1981
|
-
close: "Close",
|
|
1982
|
-
cancel: "Cancel",
|
|
1983
|
-
save: "Save",
|
|
1984
|
-
reset: "Reset",
|
|
1985
|
-
retry: "Retry",
|
|
1986
|
-
back: "Back",
|
|
1987
|
-
next: "Next",
|
|
1988
|
-
previous: "Previous",
|
|
1989
|
-
submit: "Submit",
|
|
1990
|
-
continue: "Continue",
|
|
1991
|
-
finish: "Finish",
|
|
1992
|
-
yes: "Yes",
|
|
1993
|
-
no: "No",
|
|
1994
|
-
ok: "OK",
|
|
1995
|
-
any: "Any",
|
|
1996
|
-
off: "Off",
|
|
1997
|
-
auto: "Auto",
|
|
1998
|
-
all: "All",
|
|
1999
|
-
none: "None",
|
|
2000
|
-
loading: "Loading…",
|
|
2001
|
-
error: "Error",
|
|
2002
|
-
settings: "Settings",
|
|
2003
|
-
language: "Language",
|
|
2004
|
-
theme: "Theme",
|
|
2005
|
-
preview: "Preview",
|
|
2006
|
-
author: "Author",
|
|
2007
|
-
unknown: "Unknown",
|
|
2008
|
-
untitled: "Untitled",
|
|
2009
|
-
apply: "Apply",
|
|
2010
|
-
enabled: "Enabled",
|
|
2011
|
-
disabled: "Disabled",
|
|
2012
|
-
closeA11y: "Close",
|
|
2013
|
-
settingsA11y: "Open settings menu"
|
|
2014
|
-
},
|
|
2015
|
-
player: {
|
|
2016
|
-
passage: "Passage",
|
|
2017
|
-
passages: "Passages",
|
|
2018
|
-
question: "Question",
|
|
2019
|
-
questionNumbered: "Question {position}",
|
|
2020
|
-
questions: "Questions",
|
|
2021
|
-
items: "Items",
|
|
2022
|
-
section: "Section",
|
|
2023
|
-
loadingSection: "Loading section content…",
|
|
2024
|
-
loadingPassage: "Loading passage content…",
|
|
2025
|
-
configurationError: "Configuration Error",
|
|
2026
|
-
playerError: "Player Error",
|
|
2027
|
-
authoringBackendError: "Authoring Backend Configuration Error",
|
|
2028
|
-
itemLoadError: "Question could not be loaded.",
|
|
2029
|
-
sectionTabsA11y: "Section content tabs",
|
|
2030
|
-
passagesRegionA11y: "Passages",
|
|
2031
|
-
itemsRegionA11y: "Items",
|
|
2032
|
-
sectionToolsA11y: "Section tools",
|
|
2033
|
-
scrollDownA11y: "Scroll down",
|
|
2034
|
-
resizePanels: "Resize panels",
|
|
2035
|
-
resizePassagesAndItemsA11y: "Resize passages and items panels",
|
|
2036
|
-
resizeMediaRegion: "Resize media region",
|
|
2037
|
-
resizeQuestionAndMediaA11y: "Resize question and media panels",
|
|
2038
|
-
resizePassageAndMediaA11y: "Resize passage and media panels",
|
|
2039
|
-
assessment: {
|
|
2040
|
-
sectionPosition: "Section {position} of {total}",
|
|
2041
|
-
noSections: "No sections"
|
|
2042
|
-
},
|
|
2043
|
-
formative: {
|
|
2044
|
-
checkAnswer: "Check answer",
|
|
2045
|
-
tryAgain: "Try again",
|
|
2046
|
-
answerRecorded: "Answer recorded.",
|
|
2047
|
-
correct: "Correct.",
|
|
2048
|
-
partlyCorrect: "Partly correct.",
|
|
2049
|
-
notCorrect: "Not correct.",
|
|
2050
|
-
notAutoScored: "Answer recorded. This question is not scored automatically.",
|
|
2051
|
-
checkFailed: "This question could not be checked. Try again.",
|
|
2052
|
-
triesLeft: {
|
|
2053
|
-
one: "{count} try left.",
|
|
2054
|
-
other: "{count} tries left."
|
|
2055
|
-
}
|
|
2056
|
-
},
|
|
2057
|
-
timedMedia: {
|
|
2058
|
-
waitingForMedia: "Questions will appear as the media plays.",
|
|
2059
|
-
questionAvailable: "Question {position} is now available.",
|
|
2060
|
-
playbackPaused: "Playback paused. Answer question {position} to continue.",
|
|
2061
|
-
playbackAdvisory: "Answer question {position} before continuing with the media.",
|
|
2062
|
-
playbackReleased: "Answer accepted. Continue playing the media."
|
|
2063
|
-
}
|
|
2064
|
-
},
|
|
2065
|
-
toolkit: {
|
|
2066
|
-
toolsA11y: "Assessment tools",
|
|
2067
|
-
toolbarInitError: "Unable to initialize assessment toolkit.",
|
|
2068
|
-
settingsTitle: "Settings",
|
|
2069
|
-
closeSettingsA11y: "Close settings",
|
|
2070
|
-
dragPanelA11y: "Drag panel",
|
|
2071
|
-
closePanelA11y: "Close panel",
|
|
2072
|
-
resizeWindow: "Resize window",
|
|
2073
|
-
minimize: "Minimize",
|
|
2074
|
-
maximize: "Maximize",
|
|
2075
|
-
minimizePanelA11y: "Minimize panel",
|
|
2076
|
-
maximizePanelA11y: "Maximize panel",
|
|
2077
|
-
window: {
|
|
2078
|
-
moveLeftA11y: "Move tool left",
|
|
2079
|
-
moveRightA11y: "Move tool right",
|
|
2080
|
-
moveUpA11y: "Move tool up",
|
|
2081
|
-
moveDownA11y: "Move tool down",
|
|
2082
|
-
shrinkA11y: "Shrink tool window",
|
|
2083
|
-
growA11y: "Grow tool window",
|
|
2084
|
-
centerA11y: "Center tool window",
|
|
2085
|
-
closeA11y: "Close tool"
|
|
2086
|
-
},
|
|
2087
|
-
announce: {
|
|
2088
|
-
movedUp: "Moved up to {position}",
|
|
2089
|
-
movedDown: "Moved down to {position}",
|
|
2090
|
-
movedLeft: "Moved left to {position}",
|
|
2091
|
-
movedRight: "Moved right to {position}",
|
|
2092
|
-
rotatedTo: "Rotated to {degrees} degrees"
|
|
2093
|
-
}
|
|
2094
|
-
},
|
|
2095
|
-
tools: {
|
|
2096
|
-
calculator: {
|
|
2097
|
-
name: "Calculator",
|
|
2098
|
-
nameBasic: "Basic Calculator",
|
|
2099
|
-
nameScientific: "Scientific Calculator",
|
|
2100
|
-
nameGraphing: "Graphing Calculator",
|
|
2101
|
-
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
2102
|
-
openedBasic: "Basic calculator opened",
|
|
2103
|
-
openedScientific: "Scientific calculator opened",
|
|
2104
|
-
openedGraphing: "Graphing calculator opened",
|
|
2105
|
-
closedBasic: "Basic calculator closed",
|
|
2106
|
-
closedScientific: "Scientific calculator closed",
|
|
2107
|
-
closedGraphing: "Graphing calculator closed",
|
|
2108
|
-
toolA11y: "Calculator tool",
|
|
2109
|
-
loading: "Loading calculator…",
|
|
2110
|
-
providerUnavailable: "The calculator is unavailable."
|
|
2111
|
-
},
|
|
2112
|
-
graph: {
|
|
2113
|
-
name: "Graph",
|
|
2114
|
-
description: "Graphing calculator and coordinate plane",
|
|
2115
|
-
buttonA11y: "Graph, graphing calculator",
|
|
2116
|
-
tooltip: "Graph",
|
|
2117
|
-
toolA11y: "Graph tool — draw points and lines on a coordinate grid",
|
|
2118
|
-
canvasA11y: "Graph canvas — use tools to add points and draw lines",
|
|
2119
|
-
grid: "Grid:",
|
|
2120
|
-
gridOpacityA11y: "Grid opacity",
|
|
2121
|
-
pointA11y: "Graph point {id}",
|
|
2122
|
-
modeSelector: "Selector",
|
|
2123
|
-
modeSelectorHint: "Selector: click and drag points to move them or associated lines.",
|
|
2124
|
-
modePoint: "Point",
|
|
2125
|
-
modePointHint: "Point: click on the grid to add points.",
|
|
2126
|
-
modeLine: "Line",
|
|
2127
|
-
modeLineHint: "Line: click a starting point, then an ending point to draw a line.",
|
|
2128
|
-
modeDelete: "Delete",
|
|
2129
|
-
modeDeleteHint: "Delete: click on a point to delete it and any connected lines."
|
|
2130
|
-
},
|
|
2131
|
-
periodicTable: {
|
|
2132
|
-
name: "Periodic Table",
|
|
2133
|
-
description: "Chemistry periodic table reference",
|
|
2134
|
-
buttonA11y: "Periodic Table, chemistry reference",
|
|
2135
|
-
tooltip: "Periodic Table",
|
|
2136
|
-
toolA11y: "Periodic table — select an element to view its details",
|
|
2137
|
-
elementsA11y: "Periodic table elements",
|
|
2138
|
-
showAllA11y: "Show all elements",
|
|
2139
|
-
allElements: "All Elements",
|
|
2140
|
-
atomicMass: "Atomic Mass",
|
|
2141
|
-
atomicNumber: "Atomic No",
|
|
2142
|
-
electronConfig: "Electron Config",
|
|
2143
|
-
phase: "Phase",
|
|
2144
|
-
filterByA11y: "Filter by {category}",
|
|
2145
|
-
elementA11y: "{name}, Symbol: {symbol}, Atomic number: {number}, Atomic mass: {mass}, Category: {category}",
|
|
2146
|
-
outsideFilterA11y: ", outside the current filter",
|
|
2147
|
-
category: {
|
|
2148
|
-
unknown: "Unknown",
|
|
2149
|
-
alkaliMetal: "Alkali Metal",
|
|
2150
|
-
alkalineEarthMetal: "Alkaline Earth Metal",
|
|
2151
|
-
transitionMetal: "Transition Metal",
|
|
2152
|
-
postTransitionMetal: "Post-transition Metal",
|
|
2153
|
-
metalloid: "Metalloid",
|
|
2154
|
-
diatomicNonmetal: "Diatomic Nonmetal",
|
|
2155
|
-
polyatomicNonmetal: "Polyatomic Nonmetal",
|
|
2156
|
-
nobleGas: "Noble Gas",
|
|
2157
|
-
lanthanide: "Lanthanide",
|
|
2158
|
-
actinide: "Actinide"
|
|
2159
|
-
}
|
|
2160
|
-
},
|
|
2161
|
-
ruler: {
|
|
2162
|
-
name: "Ruler",
|
|
2163
|
-
description: "On-screen ruler for measurements",
|
|
2164
|
-
buttonA11y: "Ruler",
|
|
2165
|
-
tooltip: "Ruler",
|
|
2166
|
-
toolA11y: "Draggable and rotatable ruler measurement tool",
|
|
2167
|
-
unitSelectionA11y: "Ruler unit selection",
|
|
2168
|
-
inches: "Inches",
|
|
2169
|
-
centimeters: "Centimeters",
|
|
2170
|
-
inchesInSentence: "inches",
|
|
2171
|
-
centimetersInSentence: "centimeters",
|
|
2172
|
-
switchToInchesA11y: "Switch to inches",
|
|
2173
|
-
switchToCentimetersA11y: "Switch to centimeters",
|
|
2174
|
-
switchedTo: "Switched to {unit}",
|
|
2175
|
-
applicationA11y: "Ruler tool. Use arrow keys to move, Shift+arrows to rotate, PageUp or PageDown for fine rotation, U to toggle units. Current unit: {unit}",
|
|
2176
|
-
imageAlt: "Ruler showing {unit}"
|
|
2177
|
-
},
|
|
2178
|
-
protractor: {
|
|
2179
|
-
name: "Protractor",
|
|
2180
|
-
description: "On-screen protractor for angle measurements",
|
|
2181
|
-
buttonA11y: "Protractor",
|
|
2182
|
-
tooltip: "Protractor",
|
|
2183
|
-
toolA11y: "Protractor tool. Use arrow keys to move, Shift+arrows to rotate, and PageUp or PageDown for fine rotation.",
|
|
2184
|
-
roleA11y: "Draggable and rotatable protractor measurement tool",
|
|
2185
|
-
imageAlt: "Protractor with 180-degree semicircular scale marked from 0 to 180 degrees in both directions, with degree markings every 10 degrees"
|
|
2186
|
-
},
|
|
2187
|
-
dictionary: {
|
|
2188
|
-
name: "Dictionary",
|
|
2189
|
-
description: "Look up word definitions",
|
|
2190
|
-
buttonA11y: "Dictionary, look up word definitions",
|
|
2191
|
-
tooltip: "Dictionary",
|
|
2192
|
-
toolA11y: "Dictionary"
|
|
2193
|
-
},
|
|
2194
|
-
pictureDictionary: {
|
|
2195
|
-
name: "Picture Dictionary",
|
|
2196
|
-
description: "Look up pictures for words",
|
|
2197
|
-
buttonA11y: "Picture Dictionary, look up pictures for words",
|
|
2198
|
-
tooltip: "Picture Dictionary",
|
|
2199
|
-
toolA11y: "Picture Dictionary"
|
|
2200
|
-
},
|
|
2201
|
-
dictionarySpanish: {
|
|
2202
|
-
name: "Spanish Dictionary",
|
|
2203
|
-
description: "Look up word definitions in Spanish",
|
|
2204
|
-
buttonA11y: "Spanish Dictionary, look up word definitions in Spanish",
|
|
2205
|
-
tooltip: "Spanish Dictionary",
|
|
2206
|
-
toolA11y: "Spanish Dictionary"
|
|
2207
|
-
},
|
|
2208
|
-
pictureDictionarySpanish: {
|
|
2209
|
-
name: "Spanish Picture Dictionary",
|
|
2210
|
-
description: "Look up pictures for words in Spanish",
|
|
2211
|
-
buttonA11y: "Spanish Picture Dictionary, look up pictures for words in Spanish",
|
|
2212
|
-
tooltip: "Spanish Picture Dictionary",
|
|
2213
|
-
toolA11y: "Spanish Picture Dictionary"
|
|
2214
|
-
},
|
|
2215
|
-
lineReader: {
|
|
2216
|
-
name: "Line Reader",
|
|
2217
|
-
description: "Reading guide overlay",
|
|
2218
|
-
buttonA11y: "Line Reader, reading guide",
|
|
2219
|
-
tooltip: "Line Reader",
|
|
2220
|
-
roleA11y: "Draggable and resizable reading guide overlay",
|
|
2221
|
-
close: "Close line reader",
|
|
2222
|
-
resizeWindowA11y: "Drag to resize the reading window",
|
|
2223
|
-
resizeFrameA11y: "Drag to resize the frame and window width",
|
|
2224
|
-
windowHeightAnnounce: "Reading window height {pixels} pixels",
|
|
2225
|
-
frameHeightAnnounce: "Frame height {pixels} pixels",
|
|
2226
|
-
widthAnnounce: "Width {pixels} pixels",
|
|
2227
|
-
applicationA11y: "Line Reader tool. A clear reading window inside an obscuring frame. Use arrow keys to move, +/- to resize the reading window, Escape to close. Reading window height: {paneHeight} pixels, Frame height: {frameHeight} pixels",
|
|
2228
|
-
resizeWindowFullA11y: "Resize the reading window. Drag, or use the up and down arrow keys to change its height. Current height {paneHeight} pixels",
|
|
2229
|
-
resizeFrameFullA11y: "Resize the frame. Drag, or use the up and down arrow keys to change the frame height and the left and right arrow keys to change the width. Current frame height {frameHeight} pixels, width {width} pixels"
|
|
2230
|
-
},
|
|
2231
|
-
answerEliminator: {
|
|
2232
|
-
name: "Answer Eliminator",
|
|
2233
|
-
description: "Strike through answer choices",
|
|
2234
|
-
buttonA11y: "Strike Through, eliminate answer choices",
|
|
2235
|
-
tooltip: "Strike Through"
|
|
2236
|
-
},
|
|
2237
|
-
highlighter: {
|
|
2238
|
-
name: "Highlighter",
|
|
2239
|
-
description: "Highlight and annotate text",
|
|
2240
|
-
buttonA11y: "Highlight text",
|
|
2241
|
-
tooltip: "Highlight"
|
|
2242
|
-
},
|
|
2243
|
-
annotationToolbar: {
|
|
2244
|
-
name: "Annotation",
|
|
2245
|
-
description: "Highlight and annotate text",
|
|
2246
|
-
buttonA11y: "Annotate, highlight and mark up text",
|
|
2247
|
-
tooltip: "Annotate",
|
|
2248
|
-
toolbarA11y: "Text annotation toolbar",
|
|
2249
|
-
underline: "Underline",
|
|
2250
|
-
underlineA11y: "Underline selected text",
|
|
2251
|
-
readAloud: "Read Aloud",
|
|
2252
|
-
readAloudA11y: "Read selected text aloud",
|
|
2253
|
-
remove: "Remove",
|
|
2254
|
-
removeA11y: "Remove this annotation",
|
|
2255
|
-
clearAll: "Clear All",
|
|
2256
|
-
clearAllA11y: "Clear all annotations from document",
|
|
2257
|
-
highlightYellowA11y: "Yellow highlight",
|
|
2258
|
-
highlightPinkA11y: "Pink highlight",
|
|
2259
|
-
highlightBlueA11y: "Blue highlight",
|
|
2260
|
-
highlightGreenA11y: "Green highlight"
|
|
2261
|
-
},
|
|
2262
|
-
theme: {
|
|
2263
|
-
name: "Theme",
|
|
2264
|
-
description: "Accessible themes and contrast",
|
|
2265
|
-
buttonA11y: "Theme, change colors and contrast",
|
|
2266
|
-
tooltip: "Theme",
|
|
2267
|
-
selectorA11y: "Theme selector",
|
|
2268
|
-
hint: "Select a theme to improve readability and reduce eye strain.",
|
|
2269
|
-
selectA11y: "Select theme",
|
|
2270
|
-
selectCurrentA11y: "Select theme. Current theme: {name}",
|
|
2271
|
-
optionUnavailableA11y: "{name}, unavailable",
|
|
2272
|
-
unavailableName: "Unavailable theme: {id}",
|
|
2273
|
-
unavailableDescription: "PIE's managed base theme remains active until this theme becomes available again.",
|
|
2274
|
-
unavailableStatus: "The selected theme is unavailable. PIE's managed base theme is active until it becomes available again."
|
|
2275
|
-
},
|
|
2276
|
-
textToSpeech: {
|
|
2277
|
-
name: "Text to Speech",
|
|
2278
|
-
description: "Read content aloud",
|
|
2279
|
-
toolA11y: "Text-to-speech tool",
|
|
2280
|
-
title: "Text-to-Speech",
|
|
2281
|
-
initializing: "Initializing…",
|
|
2282
|
-
initFailed: "Failed to initialize text-to-speech.",
|
|
2283
|
-
selectText: "Select text on the page to read it aloud.",
|
|
2284
|
-
speed: "Speed:",
|
|
2285
|
-
play: "Play",
|
|
2286
|
-
pause: "Pause",
|
|
2287
|
-
resume: "Resume",
|
|
2288
|
-
stop: "Stop",
|
|
2289
|
-
speaking: "Speaking…",
|
|
2290
|
-
paused: "Paused",
|
|
2291
|
-
charactersSelected: {
|
|
2292
|
-
one: "{count} character selected",
|
|
2293
|
-
other: "{count} characters selected"
|
|
2294
|
-
},
|
|
2295
|
-
rate: {
|
|
2296
|
-
slow: "Slow",
|
|
2297
|
-
slower: "Slower",
|
|
2298
|
-
normal: "Normal",
|
|
2299
|
-
faster: "Faster",
|
|
2300
|
-
fast: "Fast",
|
|
2301
|
-
veryFast: "Very Fast"
|
|
2302
|
-
},
|
|
2303
|
-
inline: {
|
|
2304
|
-
controlsA11y: "Reading controls",
|
|
2305
|
-
playbackSpeedA11y: "Playback speed",
|
|
2306
|
-
rewindA11y: "Rewind",
|
|
2307
|
-
fastForwardA11y: "Fast-forward",
|
|
2308
|
-
stopA11y: "Stop reading",
|
|
2309
|
-
initializing: "Initializing text-to-speech",
|
|
2310
|
-
initFailed: "Unable to initialize text-to-speech. Try again.",
|
|
2311
|
-
starting: "Starting reading",
|
|
2312
|
-
started: "Reading started",
|
|
2313
|
-
resumed: "Reading resumed",
|
|
2314
|
-
pausedAnnouncement: "Reading paused",
|
|
2315
|
-
stopped: "Reading stopped",
|
|
2316
|
-
switchedSection: "Reading switched to another section",
|
|
2317
|
-
startFailed: "Unable to start reading",
|
|
2318
|
-
skippedForward: "Skipped forward",
|
|
2319
|
-
skipForwardFailed: "Unable to skip forward",
|
|
2320
|
-
skippedBackward: "Skipped backward",
|
|
2321
|
-
skipBackwardFailed: "Unable to skip backward",
|
|
2322
|
-
speedChangeFailed: "Unable to change playback speed",
|
|
2323
|
-
speedAnnounce: "Playback speed {label}",
|
|
2324
|
-
playA11y: "Play reading",
|
|
2325
|
-
pauseA11y: "Pause reading",
|
|
2326
|
-
resumeA11y: "Resume reading"
|
|
2327
|
-
}
|
|
2328
|
-
},
|
|
2329
|
-
signLanguage: {
|
|
2330
|
-
name: "Sign Language",
|
|
2331
|
-
description: "Signed alternate for authored content",
|
|
2332
|
-
generic: "Sign language",
|
|
2333
|
-
unknown: "Sign language ({code})",
|
|
2334
|
-
ase: "American Sign Language",
|
|
2335
|
-
bfi: "British Sign Language",
|
|
2336
|
-
fsl: "French Sign Language",
|
|
2337
|
-
gss: "Greek Sign Language",
|
|
2338
|
-
mfs: "Mexican Sign Language",
|
|
2339
|
-
signedEnglish: "Signed English",
|
|
2340
|
-
regionA11y: "{language} translation"
|
|
2341
|
-
},
|
|
2342
|
-
audioTranscript: {
|
|
2343
|
-
name: "Audio Transcript",
|
|
2344
|
-
description: "Text transcript of audio content",
|
|
2345
|
-
regionA11y: "Transcript"
|
|
2346
|
-
}
|
|
2347
|
-
},
|
|
2348
|
-
debug: {
|
|
2349
|
-
session: "Session",
|
|
2350
|
-
sessionData: "Session Data",
|
|
2351
|
-
sessionDataPersistent: "PIE Session Data (Persistent)",
|
|
2352
|
-
noItemSessionYet: "No item session data yet. Interact with the item to see updates here.",
|
|
2353
|
-
itemSessionsSnapshot: "Item Sessions Snapshot",
|
|
2354
|
-
sectionControllerUnavailable: "Section controller not available for this section yet.",
|
|
2355
|
-
filteredModel: "Filtered Model",
|
|
2356
|
-
environment: "Environment",
|
|
2357
|
-
events: "Events",
|
|
2358
|
-
controllerEvents: "Controller Events",
|
|
2359
|
-
instrumentation: "Instrumentation",
|
|
2360
|
-
databaseState: "Database state",
|
|
2361
|
-
sessionDb: "Session DB (Server)",
|
|
2362
|
-
noRows: "No rows",
|
|
2363
|
-
noRecords: "No instrumentation records yet.",
|
|
2364
|
-
selectRecord: "Select a record to inspect details.",
|
|
2365
|
-
selectEvent: "Select an event to inspect payload details.",
|
|
2366
|
-
showRawTables: "Show raw tables",
|
|
2367
|
-
showReconstructedSnapshots: "Show reconstructed snapshots",
|
|
2368
|
-
showSectionRequest: "Show section request",
|
|
2369
|
-
showAssessmentRequest: "Show assessment request",
|
|
2370
|
-
liveUpdatesUnsupported: "Live updates are not supported in this browser",
|
|
2371
|
-
liveUpdatesDisconnected: "Live updates disconnected; retrying…",
|
|
2372
|
-
fieldType: "Type:",
|
|
2373
|
-
fieldTarget: "Target:",
|
|
2374
|
-
fieldItem: "Item:",
|
|
2375
|
-
fieldCanonical: "Canonical:",
|
|
2376
|
-
fieldIntent: "Intent:",
|
|
2377
|
-
fieldDuplicates: "Duplicates:",
|
|
2378
|
-
fieldSemanticRepeats: "Semantic Repeats:",
|
|
2379
|
-
dragItemSessionPanelA11y: "Drag item session panel",
|
|
2380
|
-
debuggerTabsA11y: "Debugger tabs",
|
|
2381
|
-
sessionDataJsonA11y: "Session data JSON",
|
|
2382
|
-
environmentJsonA11y: "Environment JSON",
|
|
2383
|
-
filteredModelJsonA11y: "Filtered model JSON",
|
|
2384
|
-
sectionSessionJsonA11y: "Section session snapshot JSON",
|
|
2385
|
-
eventLevelFilterA11y: "Event level filter",
|
|
2386
|
-
controllerEventDetailsA11y: "Controller event details",
|
|
2387
|
-
instrumentationFilterA11y: "Filter instrumentation record type",
|
|
2388
|
-
instrumentationDetailsA11y: "Instrumentation record details",
|
|
2389
|
-
toggleSessionPanelA11y: "Toggle session panel",
|
|
2390
|
-
toggleEventPanelA11y: "Toggle event broadcast panel",
|
|
2391
|
-
toggleDatabasePanelA11y: "Toggle database state panel",
|
|
2392
|
-
toggleInstrumentationPanelA11y: "Toggle instrumentation panel",
|
|
2393
|
-
pnp: {
|
|
2394
|
-
title: "PNP Profile",
|
|
2395
|
-
noAssessmentBound: "No assessment bound",
|
|
2396
|
-
determinationReadOnly: "Determination (read-only)",
|
|
2397
|
-
toolsEditor: "Tools Editor",
|
|
2398
|
-
enforcement: "PNP enforcement",
|
|
2399
|
-
allAvailableTools: "All available tools",
|
|
2400
|
-
clearPlacement: "Clear placement",
|
|
2401
|
-
tool: "Tool",
|
|
2402
|
-
placement: "Placement",
|
|
2403
|
-
provider: "Provider",
|
|
2404
|
-
simulation: "PNP simulation",
|
|
2405
|
-
resolvedTools: "Resolved Tools (toolkit)",
|
|
2406
|
-
provenanceSummary: "Tool Policy Provenance Summary",
|
|
2407
|
-
perToolDecisions: "Per-Tool Decisions",
|
|
2408
|
-
profileReadOnly: "PNP Profile (read-only)"
|
|
2409
|
-
},
|
|
2410
|
-
tts: {
|
|
2411
|
-
title: "TTS settings",
|
|
2412
|
-
closeA11y: "Close TTS settings",
|
|
2413
|
-
toolbarLayoutMode: "Toolbar layout mode",
|
|
2414
|
-
reservedRow: "Reserved row",
|
|
2415
|
-
expandingRow: "Expanding row",
|
|
2416
|
-
floatingOverlay: "Floating overlay",
|
|
2417
|
-
leftAlignedControls: "Left-aligned controls",
|
|
2418
|
-
inlineSpeedButtons: "Inline speed buttons",
|
|
2419
|
-
resetToDefaults: "Reset to defaults",
|
|
2420
|
-
mathHighlighting: "Math highlighting",
|
|
2421
|
-
checkingAvailability: "Checking availability…",
|
|
2422
|
-
recheck: "Recheck",
|
|
2423
|
-
voice: "Voice",
|
|
2424
|
-
bestAvailableVoice: "Best available voice (auto)",
|
|
2425
|
-
unnamedVoice: "Unnamed voice",
|
|
2426
|
-
apiEndpoint: "API endpoint",
|
|
2427
|
-
gender: "Gender",
|
|
2428
|
-
any: "Any",
|
|
2429
|
-
male: "Male",
|
|
2430
|
-
female: "Female",
|
|
2431
|
-
neutral: "Neutral",
|
|
2432
|
-
engine: "Engine",
|
|
2433
|
-
neural: "Neural",
|
|
2434
|
-
standard: "Standard",
|
|
2435
|
-
providerDefault: "Provider default",
|
|
2436
|
-
format: "Format",
|
|
2437
|
-
sampleRate: "Sample rate",
|
|
2438
|
-
speechMarks: "Speech marks",
|
|
2439
|
-
word: "Word",
|
|
2440
|
-
wordAndSentence: "Word + sentence",
|
|
2441
|
-
voiceType: "Voice type",
|
|
2442
|
-
wavenetVoiceType: "WaveNet",
|
|
2443
|
-
studioVoiceType: "Studio",
|
|
2444
|
-
plainText: "Plain text",
|
|
2445
|
-
sampleText: "Sample text",
|
|
2446
|
-
resetSample: "Reset sample",
|
|
2447
|
-
providerAvailable: "Provider available.",
|
|
2448
|
-
providerUnavailable: "Provider unavailable.",
|
|
2449
|
-
providerCheckFailed: "Provider availability check failed.",
|
|
2450
|
-
providerNotChecked: "Provider availability has not been checked yet.",
|
|
2451
|
-
webSpeechUnavailable: "Web Speech API is not available in this browser.",
|
|
2452
|
-
browserNoVoices: "Browser text-to-speech is available, but no voices were returned yet.",
|
|
2453
|
-
browserUnavailable: "Browser text-to-speech is not available.",
|
|
2454
|
-
googleUnavailable: "Google Cloud TTS is not available from the configured API.",
|
|
2455
|
-
pollyUnavailable: "AWS Polly is not available from the configured API.",
|
|
2456
|
-
recommendedVoices: "Recommended voices",
|
|
2457
|
-
allVoices: "All available voices",
|
|
2458
|
-
previewVoice: "Preview voice",
|
|
2459
|
-
stopPreview: "Stop preview",
|
|
2460
|
-
applying: "Applying…",
|
|
2461
|
-
ssmlPreviewUnsupported: "SSML preview is not supported in the Browser backend.",
|
|
2462
|
-
pollySsmlHint: "Some Polly neural voices reject certain SSML tags (for example emphasis). Use basic SSML tags if preview fails.",
|
|
2463
|
-
mathHighlightParts: "Highlighting each part of a formula as it is read, falling back to the whole formula when alignment is uncertain.",
|
|
2464
|
-
mathHighlightBlock: "Highlighting each formula as a single block instead of breaking it into parts.",
|
|
2465
|
-
previewFailed: "Failed to play preview audio.",
|
|
2466
|
-
previewNoAudio: "Preview response did not include audio content.",
|
|
2467
|
-
previewEnterText: "Enter preview text before starting playback.",
|
|
2468
|
-
previewUnavailable: "Cannot preview while this service is unavailable.",
|
|
2469
|
-
browserSynthesisUnavailable: "Browser speech synthesis is unavailable.",
|
|
2470
|
-
browserSynthesisEndedEarly: "Browser speech synthesis ended before audio started. Restart the browser and try again.",
|
|
2471
|
-
browserSynthesisQueueFailed: "Browser speech synthesis failed to queue preview audio.",
|
|
2472
|
-
browserPreviewFailed: "Failed to play browser voice preview.",
|
|
2473
|
-
ssmlWordTrackingDisabled: "Google SSML preview preserves authored SSML, so word tracking is disabled.",
|
|
2474
|
-
applyUnavailable: "Cannot apply settings while this service is unavailable.",
|
|
2475
|
-
coordinatorUnavailable: "Toolkit coordinator is not available for text-to-speech updates."
|
|
2476
|
-
}
|
|
2477
|
-
}
|
|
2478
|
-
}, aa = "en-US", oa = /* @__PURE__ */ new Set([
|
|
2479
|
-
"ar",
|
|
2480
|
-
"ckb",
|
|
2481
|
-
"dv",
|
|
2482
|
-
"fa",
|
|
2483
|
-
"he",
|
|
2484
|
-
"iw",
|
|
2485
|
-
"ks",
|
|
2486
|
-
"ku",
|
|
2487
|
-
"nqo",
|
|
2488
|
-
"ps",
|
|
2489
|
-
"sd",
|
|
2490
|
-
"syr",
|
|
2491
|
-
"ug",
|
|
2492
|
-
"ur",
|
|
2493
|
-
"yi"
|
|
2494
|
-
]), sa = /* @__PURE__ */ new Set([
|
|
2495
|
-
"zero",
|
|
2496
|
-
"one",
|
|
2497
|
-
"two",
|
|
2498
|
-
"few",
|
|
2499
|
-
"many",
|
|
2500
|
-
"other"
|
|
2501
|
-
]);
|
|
2502
|
-
function ca(e) {
|
|
2503
|
-
if (typeof e != "object" || !e) return !1;
|
|
2504
|
-
let t = Object.keys(e);
|
|
2505
|
-
return t.length > 0 && t.every((e) => sa.has(e));
|
|
2506
|
-
}
|
|
2507
|
-
function la(e) {
|
|
2508
|
-
try {
|
|
2509
|
-
let t = new Intl.Locale(e).textInfo;
|
|
2510
|
-
if (t?.direction === "rtl" || t?.direction === "ltr") return t.direction;
|
|
2511
|
-
} catch {}
|
|
2512
|
-
let t = ta(e).split("-")[0] ?? "";
|
|
2513
|
-
return oa.has(t) ? "rtl" : "ltr";
|
|
2514
|
-
}
|
|
2515
|
-
var ua = class e {
|
|
2516
|
-
constructor(e = {}) {
|
|
2517
|
-
b(this, "locale", void 0), b(this, "fallbackLocale", void 0), b(this, "catalogs", void 0), b(this, "customMessages", void 0), b(this, "loading", void 0), b(this, "listeners", /* @__PURE__ */ new Set()), b(this, "config", void 0), this.config = { ...e }, this.fallbackLocale = da(e.fallbackLocale) || "en-US", this.catalogs = /* @__PURE__ */ new Map([[aa, ia]]), this.customMessages = { ...e.customMessages ?? {} }, this.loading = /* @__PURE__ */ new Map(), this.locale = this.resolveLocaleTag(e.locale) ?? "en-US";
|
|
2518
|
-
}
|
|
2519
|
-
async initialize(e) {
|
|
2520
|
-
if (this.config = {
|
|
2521
|
-
...this.config,
|
|
2522
|
-
...e
|
|
2523
|
-
}, e.customMessages) for (let [t, n] of Object.entries(e.customMessages)) this.addCustomMessages(t, n);
|
|
2524
|
-
await this.setLocale(e.locale ?? this.locale);
|
|
2525
|
-
}
|
|
2526
|
-
getLocale() {
|
|
2527
|
-
return this.locale;
|
|
2528
|
-
}
|
|
2529
|
-
async setLocale(e) {
|
|
2530
|
-
let t = this.resolveLocaleTag(e);
|
|
2531
|
-
if (!t) {
|
|
2532
|
-
this.locale = da(e) || "en-US", this.notify();
|
|
2533
|
-
return;
|
|
2534
|
-
}
|
|
2535
|
-
if (!this.catalogs.has(t)) {
|
|
2536
|
-
let e = this.loading.get(t);
|
|
2537
|
-
if (e) await e;
|
|
2538
|
-
else {
|
|
2539
|
-
let e = this.loadCatalog(t);
|
|
2540
|
-
this.loading.set(t, e);
|
|
2541
|
-
try {
|
|
2542
|
-
await e;
|
|
2543
|
-
} finally {
|
|
2544
|
-
this.loading.delete(t);
|
|
2545
|
-
}
|
|
2546
|
-
}
|
|
2547
|
-
}
|
|
2548
|
-
this.locale = t, this.notify();
|
|
2549
|
-
}
|
|
2550
|
-
t(e, t) {
|
|
2551
|
-
let n = this.lookup(e);
|
|
2552
|
-
return n === void 0 ? (this.config.onMissingKey?.(e, this.locale), e) : pa(n, t);
|
|
2553
|
-
}
|
|
2554
|
-
plural(e, t) {
|
|
2555
|
-
let n = this.lookupNode(e);
|
|
2556
|
-
return n === void 0 || !ca(n) ? this.t(e, t) : pa(n[this.selectPluralCategory(t.count)] ?? n.other, t);
|
|
2557
|
-
}
|
|
2558
|
-
getDirection() {
|
|
2559
|
-
return la(this.locale);
|
|
2560
|
-
}
|
|
2561
|
-
getAvailableLocales() {
|
|
2562
|
-
return [.../* @__PURE__ */ new Set([
|
|
2563
|
-
...this.catalogs.keys(),
|
|
2564
|
-
...this.config.availableLocales ?? [],
|
|
2565
|
-
...Object.keys(this.customMessages)
|
|
2566
|
-
])];
|
|
2567
|
-
}
|
|
2568
|
-
isLocaleLoaded(e) {
|
|
2569
|
-
let t = this.resolveLocaleTag(e);
|
|
2570
|
-
return t !== void 0 && this.catalogs.has(t);
|
|
2571
|
-
}
|
|
2572
|
-
subscribe(e) {
|
|
2573
|
-
return this.listeners.add(e), () => {
|
|
2574
|
-
this.listeners.delete(e);
|
|
2575
|
-
};
|
|
2576
|
-
}
|
|
2577
|
-
hasKey(e) {
|
|
2578
|
-
return this.lookup(e) !== void 0;
|
|
2579
|
-
}
|
|
2580
|
-
addCustomMessages(e, t) {
|
|
2581
|
-
let n = da(e);
|
|
2582
|
-
this.customMessages[n] = ma(this.customMessages[n] ?? {}, t), this.notify();
|
|
2583
|
-
}
|
|
2584
|
-
withLocale(t) {
|
|
2585
|
-
let n = this.resolveLocaleTag(t) ?? da(t);
|
|
2586
|
-
if (n === this.locale) return this;
|
|
2587
|
-
let r = new e({
|
|
2588
|
-
...this.config,
|
|
2589
|
-
locale: n
|
|
2590
|
-
});
|
|
2591
|
-
return r.locale = n || "en-US", r.catalogs = this.catalogs, r.customMessages = this.customMessages, r.loading = this.loading, r;
|
|
2592
|
-
}
|
|
2593
|
-
formatNumber(e, t) {
|
|
2594
|
-
try {
|
|
2595
|
-
return new Intl.NumberFormat(this.locale, t).format(e);
|
|
2596
|
-
} catch {
|
|
2597
|
-
return new Intl.NumberFormat(aa, t).format(e);
|
|
2598
|
-
}
|
|
2599
|
-
}
|
|
2600
|
-
formatDate(e, t) {
|
|
2601
|
-
try {
|
|
2602
|
-
return new Intl.DateTimeFormat(this.locale, t).format(e);
|
|
2603
|
-
} catch {
|
|
2604
|
-
return new Intl.DateTimeFormat(aa, t).format(e);
|
|
2605
|
-
}
|
|
2606
|
-
}
|
|
2607
|
-
getBundle(e = this.locale) {
|
|
2608
|
-
let t = this.resolveLocaleTag(e);
|
|
2609
|
-
if (!t) return;
|
|
2610
|
-
let n = this.catalogs.get(t);
|
|
2611
|
-
if (n) return {
|
|
2612
|
-
locale: t,
|
|
2613
|
-
translations: n,
|
|
2614
|
-
direction: la(t)
|
|
2615
|
-
};
|
|
2616
|
-
}
|
|
2617
|
-
resolveLocaleTag(e) {
|
|
2618
|
-
if (!e) return;
|
|
2619
|
-
let t = this.getAvailableLocales(), n = ra(e, t);
|
|
2620
|
-
if (n) return n;
|
|
2621
|
-
let r = ta(e).split("-")[0];
|
|
2622
|
-
if (r) return t.find((e) => ta(e).split("-")[0] === r);
|
|
2623
|
-
}
|
|
2624
|
-
async loadCatalog(e) {
|
|
2625
|
-
let t = this.config.loadCatalog;
|
|
2626
|
-
if (t) try {
|
|
2627
|
-
this.catalogs.set(e, await t(e));
|
|
2628
|
-
} catch (t) {
|
|
2629
|
-
throw Error(`Failed to load i18n catalog for locale: ${e}`, { cause: t });
|
|
2630
|
-
}
|
|
2631
|
-
}
|
|
2632
|
-
lookupNode(e) {
|
|
2633
|
-
let t = [
|
|
2634
|
-
this.customMessages[this.locale],
|
|
2635
|
-
this.catalogs.get(this.locale),
|
|
2636
|
-
this.customMessages[this.fallbackLocale],
|
|
2637
|
-
this.catalogs.get(this.fallbackLocale)
|
|
2638
|
-
];
|
|
2639
|
-
for (let n of t) {
|
|
2640
|
-
let t = fa(n, e);
|
|
2641
|
-
if (t !== void 0) return t;
|
|
2642
|
-
}
|
|
2643
|
-
}
|
|
2644
|
-
lookup(e) {
|
|
2645
|
-
let t = this.lookupNode(e);
|
|
2646
|
-
if (typeof t == "string") return t;
|
|
2647
|
-
if (t !== void 0 && ca(t)) return t.other;
|
|
2648
|
-
}
|
|
2649
|
-
selectPluralCategory(t) {
|
|
2650
|
-
let n = e.pluralRules.get(this.locale);
|
|
2651
|
-
if (!n) {
|
|
2652
|
-
try {
|
|
2653
|
-
n = new Intl.PluralRules(this.locale);
|
|
2654
|
-
} catch {
|
|
2655
|
-
return t === 1 ? "one" : "other";
|
|
2656
|
-
}
|
|
2657
|
-
e.pluralRules.set(this.locale, n);
|
|
2658
|
-
}
|
|
2659
|
-
return n.select(t);
|
|
2660
|
-
}
|
|
2661
|
-
notify() {
|
|
2662
|
-
for (let e of this.listeners) e();
|
|
2663
|
-
}
|
|
2664
|
-
};
|
|
2665
|
-
b(ua, "pluralRules", /* @__PURE__ */ new Map());
|
|
2666
|
-
function da(e) {
|
|
2667
|
-
return e ? e.trim().replace(/_/g, "-") : "";
|
|
2668
|
-
}
|
|
2669
|
-
function fa(e, t) {
|
|
2670
|
-
if (!e) return;
|
|
2671
|
-
let n = e;
|
|
2672
|
-
for (let e of t.split(".")) if (typeof n != "object" || !n || (n = n[e], n === void 0)) return;
|
|
2673
|
-
return n;
|
|
2674
|
-
}
|
|
2675
|
-
function pa(e, t) {
|
|
2676
|
-
return t ? e.replace(/\{(\w+)\}/g, (e, n) => {
|
|
2677
|
-
let r = t[n];
|
|
2678
|
-
return r == null ? e : String(r);
|
|
2679
|
-
}) : e;
|
|
2680
|
-
}
|
|
2681
|
-
function ma(e, t) {
|
|
2682
|
-
let n = { ...e };
|
|
2683
|
-
for (let [e, r] of Object.entries(t)) {
|
|
2684
|
-
let t = n[e];
|
|
2685
|
-
n[e] = r && typeof r == "object" && t && typeof t == "object" ? ma(t, r) : r;
|
|
2686
|
-
}
|
|
2687
|
-
return n;
|
|
2688
|
-
}
|
|
2689
|
-
var ha;
|
|
2690
|
-
function ga() {
|
|
2691
|
-
return ha ||= new ua(), ha;
|
|
2692
|
-
}
|
|
2693
|
-
function _a(e) {
|
|
2694
|
-
let t = e?.i18n ?? ga();
|
|
2695
|
-
return {
|
|
2696
|
-
getLocale: () => t.getLocale(),
|
|
2697
|
-
setLocale: (e) => t.setLocale(e),
|
|
2698
|
-
t: (e, n) => t.t(e, n),
|
|
2699
|
-
plural: (e, n) => t.plural?.(e, n) ?? t.t(e, n),
|
|
2700
|
-
getDirection: () => t.getDirection?.() ?? "ltr",
|
|
2701
|
-
hasKey: (e) => t.hasKey?.(e) ?? !1,
|
|
2702
|
-
subscribe: (e) => t.subscribe?.(e) ?? (() => {})
|
|
2703
|
-
};
|
|
2704
|
-
}
|
|
2705
|
-
var va = /* @__PURE__ */ li("<div class=\"pie-tool-calculator__loading svelte-sun9kf\"> </div>"), ya = /* @__PURE__ */ li("<div class=\"pie-tool-calculator__error-details svelte-sun9kf\"> </div>"), ba = /* @__PURE__ */ li("<div class=\"pie-tool-calculator__loading pie-tool-calculator__loading--error svelte-sun9kf\">Calculator failed to initialize. <!></div>"), xa = /* @__PURE__ */ li("<div class=\"pie-tool-calculator notranslate svelte-sun9kf\" role=\"region\" tabindex=\"-1\" translate=\"no\" style=\"width: 100%; height: 100%;\"><div class=\"pie-tool-calculator__container svelte-sun9kf\"></div> <!> <!></div>"), Sa = /* @__PURE__ */ li("<div class=\"pie-tool-calculator__context-host svelte-sun9kf\"><!></div>"), Ca = {
|
|
2706
|
-
hash: "svelte-sun9kf",
|
|
2707
|
-
code: ".pie-tool-calculator__context-host.svelte-sun9kf {width:100%;height:100%;display:flex;min-height:0;}.pie-tool-calculator.svelte-sun9kf {position:relative;\n /* Frame follows the theme; the Desmos mount below keeps its own white,\n because the third-party calculator paints a white UI and a themed mount\n would only band it. */background:var(--pie-white, white);overflow:hidden;min-width:100%;min-height:0;display:flex;flex-direction:column;flex:1 1 auto;}.pie-tool-calculator__container.svelte-sun9kf {\n /* Desmos paints its own white UI here — deliberately not themed. */background:white;width:100%;height:100%;min-width:100%;min-height:100%;position:relative;overflow:hidden;}.pie-tool-calculator__loading.svelte-sun9kf {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb, var(--pie-white, #fff) 90%, transparent);color:var(--pie-text, #334155);font-size:0.9rem;z-index:2;}.pie-tool-calculator__loading--error.svelte-sun9kf {color:var(--pie-incorrect, #b91c1c);flex-direction:column;gap:0.5rem;padding:0.75rem;text-align:center;}.pie-tool-calculator__error-details.svelte-sun9kf {font-size:0.8rem;line-height:1.2;color:var(--pie-incorrect, #7f1d1d);max-width:95%;word-break:break-word;}.pie-tool-calculator__container .dcg-container {width:100% !important;height:100% !important;}"
|
|
2708
|
-
};
|
|
2709
|
-
function wa(t, n) {
|
|
2710
|
-
Ye(n, !0), ki(t, Ca);
|
|
2711
|
-
let r = Ki(n, "visible", 7, !1), i = Ki(n, "toolId", 7, "calculator"), a = Ki(n, "calculatorType", 7, "basic"), o = Ki(n, "availableTypes", 23, () => [
|
|
2712
|
-
"basic",
|
|
2713
|
-
"scientific",
|
|
2714
|
-
"graphing"
|
|
2715
|
-
]), s = Ki(n, "toolkitCoordinator", 7, null), c = /* @__PURE__ */ V(null), l = /* @__PURE__ */ V(null), u = /* @__PURE__ */ Wt(() => _a(Q(l))), d = /* @__PURE__ */ Wt(() => s() ?? Q(l)?.toolkitCoordinator), f = /* @__PURE__ */ Wt(() => typeof o() == "string" ? o().split(",").map((e) => e.trim()) : o()), p = /* @__PURE__ */ V(void 0), m = /* @__PURE__ */ V(null), h = /* @__PURE__ */ V("basic"), g = /* @__PURE__ */ V(!1), ee = /* @__PURE__ */ V(!1), _ = /* @__PURE__ */ V(!1), v = /* @__PURE__ */ V(null), y = /* @__PURE__ */ V(!1);
|
|
2716
|
-
fr(() => {
|
|
2717
|
-
if (Q(c)) return e(Q(c), (e) => {
|
|
2718
|
-
H(l, e, !0);
|
|
2719
|
-
});
|
|
2720
|
-
});
|
|
2721
|
-
function te() {
|
|
2722
|
-
return "calculator-desmos";
|
|
2723
|
-
}
|
|
2724
|
-
async function ne(e) {
|
|
2725
|
-
if (console.log("[ToolCalculator] getProvider called", {
|
|
2726
|
-
type: e,
|
|
2727
|
-
hasToolkitCoordinator: !!Q(d),
|
|
2728
|
-
hasRegistry: !!Q(d)?.toolProviderRegistry
|
|
2729
|
-
}), !Q(d)?.toolProviderRegistry) return console.warn("[ToolCalculator] No toolkitCoordinator or registry available"), null;
|
|
2730
|
-
try {
|
|
2731
|
-
let e = te();
|
|
2732
|
-
console.log(`[ToolCalculator] Requesting ${e} provider from registry`);
|
|
2733
|
-
let t = await Q(d).toolProviderRegistry.getProvider(e);
|
|
2734
|
-
return console.log("[ToolCalculator] Got provider from registry:", t), t;
|
|
2735
|
-
} catch (e) {
|
|
2736
|
-
return console.error("[ToolCalculator] Failed to get provider:", e), null;
|
|
2737
|
-
}
|
|
2738
|
-
}
|
|
2739
|
-
function b(e) {
|
|
2740
|
-
return e ? e.childElementCount > 0 || !!e.querySelector(".dcg-container,.dcg-calculator-api-container,iframe,canvas") : !1;
|
|
2741
|
-
}
|
|
2742
|
-
function x(e) {
|
|
2743
|
-
if (e) for (let t of [
|
|
2744
|
-
60,
|
|
2745
|
-
250,
|
|
2746
|
-
1e3,
|
|
2747
|
-
2500
|
|
2748
|
-
]) setTimeout(() => {
|
|
2749
|
-
try {
|
|
2750
|
-
e.resize?.();
|
|
2751
|
-
} catch {}
|
|
2752
|
-
}, t);
|
|
2753
|
-
}
|
|
2754
|
-
async function S(e, t, n = 8e3) {
|
|
2755
|
-
if (!e || !await re(e, n)) return !1;
|
|
2756
|
-
H(y, !0);
|
|
2757
|
-
try {
|
|
2758
|
-
t?.resize?.();
|
|
2759
|
-
} catch {}
|
|
2760
|
-
return !0;
|
|
2761
|
-
}
|
|
2762
|
-
async function re(e, t = 3e3) {
|
|
2763
|
-
if (!e) return !1;
|
|
2764
|
-
let n = Date.now();
|
|
2765
|
-
for (; Date.now() - n < t;) {
|
|
2766
|
-
if (!e.isConnected) return !1;
|
|
2767
|
-
if (b(e)) return !0;
|
|
2768
|
-
await new Promise((e) => setTimeout(e, 100));
|
|
2769
|
-
}
|
|
2770
|
-
return b(e);
|
|
2771
|
-
}
|
|
2772
|
-
function ie() {
|
|
2773
|
-
requestAnimationFrame(() => {
|
|
2774
|
-
try {
|
|
2775
|
-
if (!r()) return;
|
|
2776
|
-
let e = Q(m), t = Q(p);
|
|
2777
|
-
if (!e || !t || !t.isConnected) return;
|
|
2778
|
-
let n = document.activeElement;
|
|
2779
|
-
if (n instanceof Node && t.contains(n)) return;
|
|
2780
|
-
e.focus?.();
|
|
2781
|
-
} catch {}
|
|
2782
|
-
});
|
|
2783
|
-
}
|
|
2784
|
-
function ae(e, t) {
|
|
2785
|
-
return new Promise((n) => {
|
|
2786
|
-
let r = e;
|
|
2787
|
-
function i() {
|
|
2788
|
-
if (t?.aborted || r <= 0) {
|
|
2789
|
-
n();
|
|
2790
|
-
return;
|
|
2791
|
-
}
|
|
2792
|
-
r--, requestAnimationFrame(i);
|
|
2793
|
-
}
|
|
2794
|
-
i();
|
|
2795
|
-
});
|
|
2796
|
-
}
|
|
2797
|
-
function oe(e) {
|
|
2798
|
-
let t = e === "graphing";
|
|
2799
|
-
return {
|
|
2800
|
-
theme: "light",
|
|
2801
|
-
restrictedMode: !1,
|
|
2802
|
-
desmos: {
|
|
2803
|
-
degreeMode: !0,
|
|
2804
|
-
settingsMenu: t,
|
|
2805
|
-
qwertyKeyboard: !1,
|
|
2806
|
-
notes: t,
|
|
2807
|
-
folders: t,
|
|
2808
|
-
sliders: t,
|
|
2809
|
-
tables: t
|
|
2810
|
-
}
|
|
2811
|
-
};
|
|
2812
|
-
}
|
|
2813
|
-
let se = /* @__PURE__ */ V(qn(oe("basic")));
|
|
2814
|
-
async function ce() {
|
|
2815
|
-
if (console.log("[ToolCalculator] initCalculator called", {
|
|
2816
|
-
isInitializing: Q(g),
|
|
2817
|
-
isSwitching: Q(ee),
|
|
2818
|
-
hasCalculatorInstance: !!Q(m),
|
|
2819
|
-
hasContainerEl: !!Q(p),
|
|
2820
|
-
initializationFailed: Q(_),
|
|
2821
|
-
hasToolkitCoordinator: !!Q(d),
|
|
2822
|
-
hasRegistry: !!Q(d)?.toolProviderRegistry
|
|
2823
|
-
}), Q(g) || Q(ee) || Q(m) || !Q(p) || Q(_)) {
|
|
2824
|
-
console.log("[ToolCalculator] Early return from initCalculator");
|
|
2825
|
-
return;
|
|
2826
|
-
}
|
|
2827
|
-
H(g, !0);
|
|
2828
|
-
try {
|
|
2829
|
-
Q(f).includes(Q(h)) || (console.log("[ToolCalculator] Calculator type not available, using fallback", {
|
|
2830
|
-
requested: Q(h),
|
|
2831
|
-
availableTypes: Q(f),
|
|
2832
|
-
fallback: Q(f)[0] || "basic"
|
|
2833
|
-
}), H(h, Q(f)[0] || "basic", !0)), console.log("[ToolCalculator] Getting provider for type:", Q(h));
|
|
2834
|
-
let e = await ne(Q(h));
|
|
2835
|
-
if (console.log("[ToolCalculator] Got tool provider:", e), !e) throw Error("Desmos calculator tool provider not available");
|
|
2836
|
-
console.log("[ToolCalculator] Creating calculator provider instance");
|
|
2837
|
-
let t = await e.createInstance();
|
|
2838
|
-
if (console.log("[ToolCalculator] Got calculator provider:", t), !Q(p) || Q(m) || Q(ee)) {
|
|
2839
|
-
console.log("[ToolCalculator] Aborting due to state change");
|
|
2840
|
-
return;
|
|
2841
|
-
}
|
|
2842
|
-
console.log("[ToolCalculator] Creating calculator with config:", {
|
|
2843
|
-
type: Q(h),
|
|
2844
|
-
hasContainer: !!Q(p),
|
|
2845
|
-
config: Q(se)
|
|
2846
|
-
});
|
|
2847
|
-
let n = Q(p);
|
|
2848
|
-
if (!n || !n.isConnected) {
|
|
2849
|
-
console.warn("[ToolCalculator] Calculator container unavailable before mount");
|
|
2850
|
-
return;
|
|
2851
|
-
}
|
|
2852
|
-
if (!n.isConnected) {
|
|
2853
|
-
console.warn("[ToolCalculator] Calculator container disconnected before init");
|
|
2854
|
-
return;
|
|
2855
|
-
}
|
|
2856
|
-
H(m, await t.createCalculator(Q(h), n, Q(se)), !0), await ae(2), Q(m)?.resize?.(), x(Q(m)), H(y, !1), await S(n, Q(m), 4e3) || (console.warn("[ToolCalculator] Calculator mount pending after init; keeping instance and monitoring"), S(n, Q(m), 12e3)), console.log("[ToolCalculator] Calculator instance created:", Q(m)), H(_, !1), H(v, null), H(y, b(n), !0), console.log(`[ToolCalculator] ${Q(h)} calculator initialized successfully`), Q(y) && ie();
|
|
2857
|
-
} catch (e) {
|
|
2858
|
-
H(_, !0), H(v, e instanceof Error ? e.message : String(e), !0), console.error("[ToolCalculator] Failed to initialize calculator:", e), H(m, null), H(y, !1);
|
|
2859
|
-
} finally {
|
|
2860
|
-
H(g, !1);
|
|
2861
|
-
}
|
|
2862
|
-
}
|
|
2863
|
-
fr(() => {
|
|
2864
|
-
!a() || !Q(f).includes(a()) || H(h, a());
|
|
2865
|
-
}), Di(() => (r() && ce(), () => {
|
|
2866
|
-
Q(m)?.destroy();
|
|
2867
|
-
})), fr(() => {
|
|
2868
|
-
if (!r()) {
|
|
2869
|
-
if (Q(m)) try {
|
|
2870
|
-
Q(m).destroy();
|
|
2871
|
-
} catch (e) {
|
|
2872
|
-
console.warn("[ToolCalculator] Error destroying calculator on hide:", e);
|
|
2873
|
-
} finally {
|
|
2874
|
-
H(m, null);
|
|
2875
|
-
}
|
|
2876
|
-
H(_, !1), H(v, null), H(y, !1);
|
|
2877
|
-
return;
|
|
2878
|
-
}
|
|
2879
|
-
!Q(m) && !Q(g) && !Q(ee) && !Q(_) && (Q(p)?.isConnected ? ce() : queueMicrotask(() => {
|
|
2880
|
-
r() && Q(p)?.isConnected && !Q(m) && !Q(g) && !Q(ee) && !Q(_) && ce();
|
|
2881
|
-
}));
|
|
2882
|
-
}), fr(() => {
|
|
2883
|
-
r() && Q(m) && Q(y) && ie();
|
|
2884
|
-
});
|
|
2885
|
-
let C = null;
|
|
2886
|
-
fr(() => {
|
|
2887
|
-
if (r() && Q(p) && Q(m) && Q(p).isConnected) return C ||= new ResizeObserver((e) => {
|
|
2888
|
-
for (let t of e) if (!t.target.isConnected) {
|
|
2889
|
-
C?.unobserve(t.target);
|
|
2890
|
-
return;
|
|
2891
|
-
}
|
|
2892
|
-
if (Q(m)?.resize && Q(p)?.isConnected && r()) try {
|
|
2893
|
-
Q(m).resize();
|
|
2894
|
-
} catch (e) {
|
|
2895
|
-
console.warn("[ToolCalculator] Error during resize:", e), C && Q(p) && C.unobserve(Q(p));
|
|
2896
|
-
}
|
|
2897
|
-
}), C.observe(Q(p)), () => {
|
|
2898
|
-
C && Q(p) && C.unobserve(Q(p)), C?.disconnect(), C = null;
|
|
2899
|
-
};
|
|
2900
|
-
C &&= (Q(p) && C.unobserve(Q(p)), C.disconnect(), null);
|
|
2901
|
-
});
|
|
2902
|
-
var le = {
|
|
2903
|
-
get visible() {
|
|
2904
|
-
return r();
|
|
2905
|
-
},
|
|
2906
|
-
set visible(e = !1) {
|
|
2907
|
-
r(e), jn();
|
|
2908
|
-
},
|
|
2909
|
-
get toolId() {
|
|
2910
|
-
return i();
|
|
2911
|
-
},
|
|
2912
|
-
set toolId(e = "calculator") {
|
|
2913
|
-
i(e), jn();
|
|
2914
|
-
},
|
|
2915
|
-
get calculatorType() {
|
|
2916
|
-
return a();
|
|
2917
|
-
},
|
|
2918
|
-
set calculatorType(e = "basic") {
|
|
2919
|
-
a(e), jn();
|
|
2920
|
-
},
|
|
2921
|
-
get availableTypes() {
|
|
2922
|
-
return o();
|
|
2923
|
-
},
|
|
2924
|
-
set availableTypes(e = [
|
|
2925
|
-
"basic",
|
|
2926
|
-
"scientific",
|
|
2927
|
-
"graphing"
|
|
2928
|
-
]) {
|
|
2929
|
-
o(e), jn();
|
|
2930
|
-
},
|
|
2931
|
-
get toolkitCoordinator() {
|
|
2932
|
-
return s();
|
|
2933
|
-
},
|
|
2934
|
-
set toolkitCoordinator(e = null) {
|
|
2935
|
-
s(e), jn();
|
|
2936
|
-
}
|
|
2937
|
-
}, ue = Sa(), de = nr(ue), fe = (e) => {
|
|
2938
|
-
var t = xa(), n = nr(t);
|
|
2939
|
-
Gi(n, (e) => H(p, e), () => Q(p));
|
|
2940
|
-
var a = rr(n, 2), o = (e) => {
|
|
2941
|
-
var t = va(), n = nr(t, !0);
|
|
2942
|
-
Ve(t), yr((e) => pi(n, e), [() => Q(u).t("tools.calculator.loading")]), ui(e, t);
|
|
2943
|
-
};
|
|
2944
|
-
Oi(a, (e) => {
|
|
2945
|
-
(Q(g) || Q(ee) || r() && !Q(_) && !Q(y)) && e(o);
|
|
2946
|
-
});
|
|
2947
|
-
var s = rr(a, 2), c = (e) => {
|
|
2948
|
-
var t = ba(), n = rr(nr(t)), r = (e) => {
|
|
2949
|
-
var t = ya(), n = nr(t, !0);
|
|
2950
|
-
Ve(t), yr(() => pi(n, Q(v))), ui(e, t);
|
|
2951
|
-
};
|
|
2952
|
-
Oi(n, (e) => {
|
|
2953
|
-
Q(v) && e(r);
|
|
2954
|
-
}), Ve(t), ui(e, t);
|
|
2955
|
-
};
|
|
2956
|
-
Oi(s, (e) => {
|
|
2957
|
-
Q(_) && e(c);
|
|
2958
|
-
}), Ve(t), yr((e, r, a) => {
|
|
2959
|
-
Ni(t, "data-tool-id", i()), Ni(t, "lang", e), Ni(t, "dir", r), Ni(t, "aria-label", a), Ni(n, "data-calculator-type", Q(h)), t.dir = t.dir;
|
|
2960
|
-
}, [
|
|
2961
|
-
() => Q(u).getLocale(),
|
|
2962
|
-
() => Q(u).getDirection?.() ?? "ltr",
|
|
2963
|
-
() => Q(u).t("tools.calculator.toolA11y")
|
|
2964
|
-
]), ui(e, t);
|
|
2965
|
-
};
|
|
2966
|
-
return Oi(de, (e) => {
|
|
2967
|
-
r() && e(fe);
|
|
2968
|
-
}), Ve(ue), Gi(ue, (e) => H(c, e), () => Q(c)), ui(t, ue), Xe(le);
|
|
2969
|
-
}
|
|
2970
|
-
customElements.define("pie-tool-calculator", ea(wa, {
|
|
2971
|
-
visible: {
|
|
2972
|
-
attribute: "visible",
|
|
2973
|
-
type: "Boolean"
|
|
2974
|
-
},
|
|
2975
|
-
toolId: {
|
|
2976
|
-
attribute: "tool-id",
|
|
2977
|
-
type: "String"
|
|
2978
|
-
},
|
|
2979
|
-
calculatorType: {
|
|
2980
|
-
attribute: "calculator-type",
|
|
2981
|
-
type: "String"
|
|
2982
|
-
},
|
|
2983
|
-
availableTypes: {
|
|
2984
|
-
attribute: "available-types",
|
|
2985
|
-
type: "Array"
|
|
2986
|
-
},
|
|
2987
|
-
toolkitCoordinator: { type: "Object" }
|
|
2988
|
-
}, [], []));
|
|
2989
|
-
//#endregion
|
|
2990
|
-
export { wa as default };
|
|
2991
|
-
|
|
2992
|
-
//# sourceMappingURL=pie-tool-calculator-BiWMTJe7.js.map
|