@pie-players/pie-tool-line-reader 1.0.0-beta.7 → 1.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tool-line-reader.js +1100 -1118
- package/package.json +5 -5
package/dist/tool-line-reader.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { coerceBooleanAttributes as
|
|
2
|
-
import { ZIndexLayer as
|
|
3
|
-
import { DEFAULT_CONTAINMENT_GUTTER as
|
|
4
|
-
import { resolveInterfaceI18n as
|
|
1
|
+
import { coerceBooleanAttributes as Cs } from "@pie-players/pie-players-shared/ui/attribute-coercion";
|
|
2
|
+
import { ZIndexLayer as Ns, connectToolRuntimeContext as Is, createToolCoordinatorRegistration as zs } from "@pie-players/pie-assessment-toolkit/tools/registration";
|
|
3
|
+
import { DEFAULT_CONTAINMENT_GUTTER as Ls, OVERLAY_PLACEMENT_NUDGES as ni, OVERLAY_PLACEMENT_ROTATIONS as Ws, clampPointWithinBlock as Hs, createFocusReturn as Ds, createPointerDragController as js, createPointerGesture as Fs, dockUprightControls as Bs, resolveContainingBlockRect as qs } from "@pie-players/pie-players-shared";
|
|
4
|
+
import { resolveInterfaceI18n as Us } from "@pie-players/pie-players-shared/i18n/provider";
|
|
5
5
|
if (typeof window < "u") {
|
|
6
|
-
var
|
|
7
|
-
((
|
|
6
|
+
var zn, Ln;
|
|
7
|
+
((zn = (Ln = window).__svelte ?? (Ln.__svelte = {})).v ?? (zn.v = /* @__PURE__ */ new Set())).add("5");
|
|
8
8
|
}
|
|
9
9
|
var ze = {}, F = /* @__PURE__ */ Symbol("uninitialized");
|
|
10
|
-
var
|
|
10
|
+
var ii = Array.isArray, Ys = Array.prototype.indexOf, Dt = Array.prototype.includes, Mr = Array.from, pr = Object.keys, jt = Object.defineProperty, Xe = Object.getOwnPropertyDescriptor, Gs = Object.getOwnPropertyDescriptors, Vs = Object.prototype, Ks = Array.prototype, si = Object.getPrototypeOf, Wn = Object.isExtensible, Xs = () => {
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function Zs(e) {
|
|
13
13
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function ai() {
|
|
16
16
|
var e, t;
|
|
17
17
|
return {
|
|
18
18
|
promise: new Promise((r, n) => {
|
|
@@ -22,7 +22,7 @@ function ci() {
|
|
|
22
22
|
reject: t
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Js(e, t) {
|
|
26
26
|
if (Array.isArray(e)) return e;
|
|
27
27
|
if (t === void 0 || !(Symbol.iterator in e)) return Array.from(e);
|
|
28
28
|
const r = [];
|
|
@@ -30,78 +30,78 @@ function ra(e, t) {
|
|
|
30
30
|
if (r.push(n), r.length === t) break;
|
|
31
31
|
return r;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Ft(e) {
|
|
34
34
|
"@babel/helpers - typeof";
|
|
35
|
-
return
|
|
35
|
+
return Ft = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
36
36
|
return typeof t;
|
|
37
37
|
} : function(t) {
|
|
38
38
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
39
|
-
},
|
|
39
|
+
}, Ft(e);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
if (
|
|
41
|
+
function Qs(e, t) {
|
|
42
|
+
if (Ft(e) != "object" || !e) return e;
|
|
43
43
|
var r = e[Symbol.toPrimitive];
|
|
44
44
|
if (r !== void 0) {
|
|
45
45
|
var n = r.call(e, t || "default");
|
|
46
|
-
if (
|
|
46
|
+
if (Ft(n) != "object") return n;
|
|
47
47
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
48
48
|
}
|
|
49
49
|
return (t === "string" ? String : Number)(e);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
var t =
|
|
53
|
-
return
|
|
51
|
+
function ea(e) {
|
|
52
|
+
var t = Qs(e, "string");
|
|
53
|
+
return Ft(t) == "symbol" ? t : t + "";
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
return (t =
|
|
55
|
+
function N(e, t, r) {
|
|
56
|
+
return (t = ea(t)) in e ? Object.defineProperty(e, t, {
|
|
57
57
|
value: r,
|
|
58
58
|
enumerable: !0,
|
|
59
59
|
configurable: !0,
|
|
60
60
|
writable: !0
|
|
61
61
|
}) : e[t] = r, e;
|
|
62
62
|
}
|
|
63
|
-
var
|
|
64
|
-
var
|
|
63
|
+
var Xo = 1 << 24, ie = 1024, J = 2048, He = 4096, an = 8192, oi = 16384, on = 32768, Yr = 1 << 25, ln = 65536, Zo = 1 << 17, Jo = 1 << 18, gt = 1 << 19, ta = 1 << 20, zt = 1 << 25, Hn = 1 << 21, ra = 1 << 22, _r = 1 << 23, Lt = /* @__PURE__ */ Symbol("$state"), li = /* @__PURE__ */ Symbol("component"), fi = /* @__PURE__ */ Symbol("legacy props"), na = /* @__PURE__ */ Symbol(""), ia = /* @__PURE__ */ Symbol("proxy path"), Gr = /* @__PURE__ */ Symbol("attributes"), Vr = /* @__PURE__ */ Symbol("class"), Kr = /* @__PURE__ */ Symbol("style"), dr = /* @__PURE__ */ Symbol("text");
|
|
64
|
+
var Gt = new class extends Error {
|
|
65
65
|
constructor(...t) {
|
|
66
|
-
super(...t),
|
|
66
|
+
super(...t), N(this, "name", "StaleReactionError"), N(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
67
67
|
}
|
|
68
|
-
}(),
|
|
69
|
-
function
|
|
68
|
+
}(), sa = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
69
|
+
function aa() {
|
|
70
70
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Rr(e) {
|
|
73
73
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function oa() {
|
|
76
76
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
77
77
|
}
|
|
78
78
|
var R = !1;
|
|
79
|
-
function
|
|
79
|
+
function Se(e) {
|
|
80
80
|
R = e;
|
|
81
81
|
}
|
|
82
82
|
var P;
|
|
83
83
|
function Z(e) {
|
|
84
84
|
if (e === null)
|
|
85
|
-
throw
|
|
85
|
+
throw Rr(), ze;
|
|
86
86
|
return P = e;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return Z(/* @__PURE__ */
|
|
88
|
+
function Pr() {
|
|
89
|
+
return Z(/* @__PURE__ */ ke(P));
|
|
90
90
|
}
|
|
91
91
|
function qe(e) {
|
|
92
92
|
if (R) {
|
|
93
|
-
if (/* @__PURE__ */
|
|
94
|
-
throw
|
|
93
|
+
if (/* @__PURE__ */ ke(P) !== null)
|
|
94
|
+
throw Rr(), ze;
|
|
95
95
|
P = e;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function la(e = 1) {
|
|
99
99
|
if (R) {
|
|
100
|
-
for (var t = e, r = P; t--; ) r = /* @__PURE__ */
|
|
100
|
+
for (var t = e, r = P; t--; ) r = /* @__PURE__ */ ke(r);
|
|
101
101
|
P = r;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function gr(e = !0) {
|
|
105
105
|
for (var t = 0, r = P; ; ) {
|
|
106
106
|
if (r.nodeType === 8) {
|
|
107
107
|
var n = r.data;
|
|
@@ -110,200 +110,200 @@ function mr(e = !0) {
|
|
|
110
110
|
t -= 1;
|
|
111
111
|
} else (n === "[" || n === "[!" || n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
|
|
112
112
|
}
|
|
113
|
-
var i = /* @__PURE__ */
|
|
113
|
+
var i = /* @__PURE__ */ ke(r);
|
|
114
114
|
e && r.remove(), r = i;
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function fn(e) {
|
|
118
118
|
if (!e || e.nodeType !== 8)
|
|
119
|
-
throw
|
|
119
|
+
throw Rr(), ze;
|
|
120
120
|
return e.data;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function ui(e) {
|
|
123
123
|
return e === this.v;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function fa(e, t) {
|
|
126
126
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
return !
|
|
128
|
+
function ci(e) {
|
|
129
|
+
return !fa(e, this.v);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function ua(e) {
|
|
132
132
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function ca() {
|
|
135
135
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function da(e, t, r) {
|
|
138
138
|
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function ha(e) {
|
|
141
141
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function va() {
|
|
144
144
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function pa(e) {
|
|
147
147
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function _a() {
|
|
150
150
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function ga() {
|
|
153
153
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function wa(e) {
|
|
156
156
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function ba() {
|
|
159
159
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function ma() {
|
|
162
162
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function ya() {
|
|
165
165
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function ka() {
|
|
168
168
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
169
169
|
}
|
|
170
|
-
var De = !1,
|
|
171
|
-
function
|
|
172
|
-
return e.label = t,
|
|
170
|
+
var De = !1, Vt = !1;
|
|
171
|
+
function Dn(e, t) {
|
|
172
|
+
return e.label = t, $a(e.v, t), e;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
return e?.[
|
|
174
|
+
function $a(e, t) {
|
|
175
|
+
return e?.[ia]?.(t), e;
|
|
176
176
|
}
|
|
177
|
-
var
|
|
178
|
-
function
|
|
179
|
-
|
|
177
|
+
var L = null;
|
|
178
|
+
function ht(e) {
|
|
179
|
+
L = e;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
|
|
183
|
-
p:
|
|
181
|
+
function un(e, t = !1, r) {
|
|
182
|
+
L = {
|
|
183
|
+
p: L,
|
|
184
184
|
i: !1,
|
|
185
185
|
c: null,
|
|
186
186
|
e: null,
|
|
187
187
|
s: e,
|
|
188
188
|
x: null,
|
|
189
189
|
r: T,
|
|
190
|
-
l:
|
|
190
|
+
l: Vt && !t ? {
|
|
191
191
|
s: null,
|
|
192
192
|
u: null,
|
|
193
193
|
$: []
|
|
194
194
|
} : null
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
var t =
|
|
197
|
+
function cn(e) {
|
|
198
|
+
var t = L, r = t.e;
|
|
199
199
|
if (r !== null) {
|
|
200
200
|
t.e = null;
|
|
201
|
-
for (var n of r)
|
|
201
|
+
for (var n of r) Ii(n);
|
|
202
202
|
}
|
|
203
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
203
|
+
return e !== void 0 && (t.x = e), t.i = !0, L = t.p, dn(e);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
return
|
|
205
|
+
function dn(e = {}) {
|
|
206
|
+
return jt(e, li, { value: !0 }), e;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
return !
|
|
208
|
+
function Kt() {
|
|
209
|
+
return !Vt || L !== null && L.l === null;
|
|
210
210
|
}
|
|
211
211
|
var Ve = [];
|
|
212
|
-
function
|
|
212
|
+
function di() {
|
|
213
213
|
var e = Ve;
|
|
214
|
-
Ve = [],
|
|
214
|
+
Ve = [], Zs(e);
|
|
215
215
|
}
|
|
216
216
|
function Le(e) {
|
|
217
|
-
if (Ve.length === 0 && !
|
|
217
|
+
if (Ve.length === 0 && !Wt) {
|
|
218
218
|
var t = Ve;
|
|
219
219
|
queueMicrotask(() => {
|
|
220
|
-
t === Ve &&
|
|
220
|
+
t === Ve && di();
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
Ve.push(e);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
for (; Ve.length > 0; )
|
|
225
|
+
function xa() {
|
|
226
|
+
for (; Ve.length > 0; ) di();
|
|
227
227
|
}
|
|
228
|
-
var
|
|
229
|
-
function
|
|
230
|
-
e.f = e.f &
|
|
228
|
+
var Ea = ~(J | He | ie);
|
|
229
|
+
function D(e, t) {
|
|
230
|
+
e.f = e.f & Ea | t;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
(e.f & 512) !== 0 || e.deps === null ?
|
|
232
|
+
function hn(e) {
|
|
233
|
+
(e.f & 512) !== 0 || e.deps === null ? D(e, ie) : D(e, He);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
(e.f & 2048) !== 0 ? t.
|
|
235
|
+
function hi(e, t) {
|
|
236
|
+
(e.f & 2048) !== 0 ? t.set(e, J) : (e.f & 4096) !== 0 && t.get(e) !== 2048 && t.set(e, He), D(e, ie);
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
var t =
|
|
240
|
-
ae(null),
|
|
238
|
+
function Or(e) {
|
|
239
|
+
var t = A, r = T;
|
|
240
|
+
ae(null), ye(null);
|
|
241
241
|
try {
|
|
242
242
|
return e();
|
|
243
243
|
} finally {
|
|
244
|
-
ae(t),
|
|
244
|
+
ae(t), ye(r);
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
const i =
|
|
247
|
+
function Sa(e, t, r, n) {
|
|
248
|
+
const i = Kt() ? Bt : vn;
|
|
249
249
|
var s = e.filter((f) => !f.settled), a = t.map(i);
|
|
250
250
|
if (r.length === 0 && s.length === 0) {
|
|
251
251
|
n(a);
|
|
252
252
|
return;
|
|
253
253
|
}
|
|
254
|
-
var l = T, u =
|
|
254
|
+
var l = T, u = Ta(), v = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((f) => f.promise)) : null;
|
|
255
255
|
function _(f) {
|
|
256
256
|
if ((l.f & 16384) === 0) {
|
|
257
257
|
u();
|
|
258
258
|
try {
|
|
259
259
|
n([...a, ...f]);
|
|
260
260
|
} catch (g) {
|
|
261
|
-
|
|
261
|
+
me(g, l);
|
|
262
262
|
}
|
|
263
|
-
|
|
263
|
+
wr();
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
|
-
var c =
|
|
266
|
+
var c = vi();
|
|
267
267
|
if (r.length === 0) {
|
|
268
268
|
v.then(() => _([])).finally(c);
|
|
269
269
|
return;
|
|
270
270
|
}
|
|
271
271
|
function h() {
|
|
272
|
-
Promise.all(r.map((f) => /* @__PURE__ */
|
|
272
|
+
Promise.all(r.map((f) => /* @__PURE__ */ Ma(f))).then(_).catch((f) => me(f, l)).finally(c);
|
|
273
273
|
}
|
|
274
274
|
v ? v.then(() => {
|
|
275
275
|
if ((l.f & 16384) !== 0) {
|
|
276
276
|
c();
|
|
277
277
|
return;
|
|
278
278
|
}
|
|
279
|
-
u(), h(),
|
|
279
|
+
u(), h(), wr();
|
|
280
280
|
}) : h();
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
var e = T, t =
|
|
282
|
+
function Ta() {
|
|
283
|
+
var e = T, t = A, r = L, n = M;
|
|
284
284
|
if (0) var i;
|
|
285
285
|
return function(a = !0) {
|
|
286
|
-
|
|
286
|
+
ye(e), ae(t), ht(r), a && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
|
-
var
|
|
290
|
-
function
|
|
291
|
-
|
|
289
|
+
var Aa = !1;
|
|
290
|
+
function wr(e = !0) {
|
|
291
|
+
Aa = !1, ye(null), ae(null), ht(null), e && M?.deactivate();
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
var e = T, t = e.b, r =
|
|
293
|
+
function vi() {
|
|
294
|
+
var e = T, t = e.b, r = M, n = !!t?.is_rendered();
|
|
295
295
|
return t?.update_pending_count(1, r), r.increment(n, e), () => {
|
|
296
296
|
t?.update_pending_count(-1, r), r.decrement(n, e);
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
299
|
// @__NO_SIDE_EFFECTS__
|
|
300
|
-
function
|
|
301
|
-
var t = 2 |
|
|
302
|
-
return T !== null && (T.f |=
|
|
303
|
-
ctx:
|
|
300
|
+
function Bt(e) {
|
|
301
|
+
var t = 2 | J;
|
|
302
|
+
return T !== null && (T.f |= gt), {
|
|
303
|
+
ctx: L,
|
|
304
304
|
deps: null,
|
|
305
305
|
effects: null,
|
|
306
|
-
equals:
|
|
306
|
+
equals: ui,
|
|
307
307
|
f: t,
|
|
308
308
|
fn: e,
|
|
309
309
|
reactions: null,
|
|
@@ -314,35 +314,35 @@ function Yt(e) {
|
|
|
314
314
|
ac: null
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
|
-
var
|
|
317
|
+
var Tt = /* @__PURE__ */ Symbol("obsolete");
|
|
318
318
|
// @__NO_SIDE_EFFECTS__
|
|
319
|
-
function
|
|
319
|
+
function Ma(e, t, r) {
|
|
320
320
|
let n = T;
|
|
321
|
-
n === null &&
|
|
322
|
-
var i = void 0, s =
|
|
323
|
-
return
|
|
324
|
-
var u = T, v =
|
|
321
|
+
n === null && ca();
|
|
322
|
+
var i = void 0, s = tt(F), a = !A, l = /* @__PURE__ */ new Set();
|
|
323
|
+
return Va(() => {
|
|
324
|
+
var u = T, v = ai();
|
|
325
325
|
i = v.promise;
|
|
326
326
|
try {
|
|
327
327
|
Promise.resolve(e()).then(v.resolve, (f) => {
|
|
328
|
-
f !==
|
|
329
|
-
}).finally(
|
|
328
|
+
f !== Gt && v.reject(f);
|
|
329
|
+
}).finally(wr);
|
|
330
330
|
} catch (f) {
|
|
331
|
-
v.reject(f),
|
|
331
|
+
v.reject(f), wr();
|
|
332
332
|
}
|
|
333
|
-
var _ =
|
|
333
|
+
var _ = M;
|
|
334
334
|
if (a) {
|
|
335
|
-
if ((u.f & 32768) !== 0) var c =
|
|
336
|
-
if (n.b?.is_rendered()) _.async_deriveds.get(u)?.reject(
|
|
337
|
-
else for (const f of l.values()) f.reject(
|
|
335
|
+
if ((u.f & 32768) !== 0) var c = vi();
|
|
336
|
+
if (n.b?.is_rendered()) _.async_deriveds.get(u)?.reject(Tt);
|
|
337
|
+
else for (const f of l.values()) f.reject(Tt);
|
|
338
338
|
l.add(v), _.async_deriveds.set(u, v);
|
|
339
339
|
}
|
|
340
340
|
const h = (f, g = void 0) => {
|
|
341
|
-
c?.(), l.delete(v), g !==
|
|
341
|
+
c?.(), l.delete(v), g !== Tt && (_.activate(), g ? (s.f |= _r, vt(s, g)) : ((s.f & 8388608) !== 0 && (s.f ^= _r), vt(s, f)), _.deactivate());
|
|
342
342
|
};
|
|
343
343
|
v.promise.then(h, (f) => h(null, f || "unknown"));
|
|
344
|
-
}),
|
|
345
|
-
for (const u of l) u.reject(
|
|
344
|
+
}), Ua(() => {
|
|
345
|
+
for (const u of l) u.reject(Tt);
|
|
346
346
|
}), new Promise((u) => {
|
|
347
347
|
function v(_) {
|
|
348
348
|
function c() {
|
|
@@ -354,203 +354,190 @@ function Ca(e, t, r) {
|
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
356
|
// @__NO_SIDE_EFFECTS__
|
|
357
|
-
function
|
|
358
|
-
const t = /* @__PURE__ */
|
|
359
|
-
return De ||
|
|
357
|
+
function At(e) {
|
|
358
|
+
const t = /* @__PURE__ */ Bt(e);
|
|
359
|
+
return De || ji(t), t;
|
|
360
360
|
}
|
|
361
361
|
// @__NO_SIDE_EFFECTS__
|
|
362
|
-
function
|
|
363
|
-
const t = /* @__PURE__ */
|
|
364
|
-
return t.equals =
|
|
362
|
+
function vn(e) {
|
|
363
|
+
const t = /* @__PURE__ */ Bt(e);
|
|
364
|
+
return t.equals = ci, t;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Ra(e) {
|
|
367
367
|
var t = e.effects;
|
|
368
368
|
if (t !== null) {
|
|
369
369
|
e.effects = null;
|
|
370
370
|
for (var r = 0; r < t.length; r += 1) V(t[r]);
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function pn(e) {
|
|
374
374
|
var t, r = T, n = e.parent;
|
|
375
|
-
if (!
|
|
376
|
-
return
|
|
377
|
-
|
|
375
|
+
if (!Te && n !== null && e.v !== F && (n.f & 24576) !== 0)
|
|
376
|
+
return aa(), e.v;
|
|
377
|
+
ye(n);
|
|
378
378
|
try {
|
|
379
|
-
|
|
379
|
+
Ra(e), t = Ui(e);
|
|
380
380
|
} finally {
|
|
381
|
-
|
|
381
|
+
ye(r);
|
|
382
382
|
}
|
|
383
383
|
return t;
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
var t =
|
|
387
|
-
if (!e.equals(t) && (e.wv =
|
|
388
|
-
|
|
385
|
+
function pi(e) {
|
|
386
|
+
var t = pn(e);
|
|
387
|
+
if (!e.equals(t) && (e.wv = Bi(), (!M?.is_fork || e.deps === null) && (M !== null ? (M.capture(e, t, !0), ct?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
388
|
+
D(e, ie);
|
|
389
389
|
return;
|
|
390
390
|
}
|
|
391
|
-
|
|
391
|
+
Te || (G !== null ? (yn() || M?.is_fork) && G.set(e, t) : hn(e));
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Pa(e) {
|
|
394
394
|
if (e.effects !== null)
|
|
395
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null &&
|
|
396
|
-
t.ac.abort(
|
|
397
|
-
}), t.fn !== null && (t.teardown =
|
|
395
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && Or(() => {
|
|
396
|
+
t.ac.abort(Gt), t.ac = null;
|
|
397
|
+
}), t.fn !== null && (t.teardown = Xs), Ut(t, 0), xn(t));
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function _i(e) {
|
|
400
400
|
if (e.effects !== null)
|
|
401
|
-
for (const t of e.effects) t.teardown && t.fn !== null &&
|
|
401
|
+
for (const t of e.effects) t.teardown && t.fn !== null && pt(t);
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function gi(e, t) {
|
|
404
404
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
405
405
|
}
|
|
406
|
-
function
|
|
407
|
-
|
|
406
|
+
function _n(e, t) {
|
|
407
|
+
gi(e, t), t.add(e);
|
|
408
408
|
}
|
|
409
409
|
function S(e, t, r) {
|
|
410
|
-
|
|
410
|
+
gi(e, t), t.set(e, r);
|
|
411
411
|
}
|
|
412
412
|
function k(e, t, r) {
|
|
413
413
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
414
414
|
throw new TypeError("Private element is not present on this object");
|
|
415
415
|
}
|
|
416
|
-
function $(e, t, r) {
|
|
417
|
-
return e.set(k(e, t), r), r;
|
|
418
|
-
}
|
|
419
416
|
function o(e, t) {
|
|
420
417
|
return e.get(k(e, t));
|
|
421
418
|
}
|
|
422
|
-
|
|
423
|
-
|
|
419
|
+
function E(e, t, r) {
|
|
420
|
+
return e.set(k(e, t), r), r;
|
|
421
|
+
}
|
|
422
|
+
var wi, br = null, at = null, M = null, ct = null, G = null, Xr = null, Wt = !1, zr = !1, qt = null, mr = null, bi = 0;
|
|
423
|
+
var Oa = 1, yr = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakSet(), rt = class mi {
|
|
424
424
|
constructor() {
|
|
425
|
-
|
|
425
|
+
_n(this, I), N(this, "id", Oa++), N(this, "started", !1), N(this, "linked", !0), N(this, "prev", null), N(this, "next", null), N(this, "async_deriveds", /* @__PURE__ */ new Map()), N(this, "current", /* @__PURE__ */ new Map()), N(this, "previous", /* @__PURE__ */ new Map()), S(this, yr, /* @__PURE__ */ new Set()), S(this, or, /* @__PURE__ */ new Set()), S(this, ot, 0), S(this, Be, /* @__PURE__ */ new Map()), S(this, Mt, null), S(this, et, []), S(this, Zr, []), S(this, Ne, /* @__PURE__ */ new Map()), S(this, Pe, /* @__PURE__ */ new Map()), S(this, hr, /* @__PURE__ */ new Set()), N(this, "is_fork", !1), S(this, Rt, !1), at === null ? br = at = this : (at.next = this, this.prev = at), at = this;
|
|
426
426
|
}
|
|
427
427
|
skip_effect(t) {
|
|
428
|
-
o(
|
|
428
|
+
o(Pe, this).has(t) || o(Pe, this).set(t, {
|
|
429
429
|
d: [],
|
|
430
430
|
m: []
|
|
431
|
-
}), o(
|
|
431
|
+
}), o(hr, this).delete(t);
|
|
432
432
|
}
|
|
433
433
|
unskip_effect(t, r = (n) => this.schedule(n)) {
|
|
434
|
-
var n = o(
|
|
434
|
+
var n = o(Pe, this).get(t);
|
|
435
435
|
if (n) {
|
|
436
|
-
o(
|
|
436
|
+
o(Pe, this).delete(t);
|
|
437
437
|
for (var i of n.d)
|
|
438
|
-
|
|
438
|
+
D(i, J), r(i);
|
|
439
439
|
for (i of n.m)
|
|
440
|
-
|
|
440
|
+
D(i, He), r(i);
|
|
441
441
|
}
|
|
442
|
-
o(
|
|
442
|
+
o(hr, this).add(t);
|
|
443
443
|
}
|
|
444
444
|
capture(t, r, n = !1) {
|
|
445
445
|
t.v !== F && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]), G?.set(t, r)), this.is_fork || (t.v = r);
|
|
446
446
|
}
|
|
447
447
|
activate() {
|
|
448
|
-
|
|
448
|
+
M = this;
|
|
449
449
|
}
|
|
450
450
|
deactivate() {
|
|
451
|
-
|
|
451
|
+
M = null, G = null;
|
|
452
452
|
}
|
|
453
453
|
flush() {
|
|
454
454
|
try {
|
|
455
|
-
|
|
455
|
+
zr = !0, M = this, k(I, this, kr).call(this);
|
|
456
456
|
} finally {
|
|
457
|
-
|
|
457
|
+
bi = 0, Xr = null, qt = null, mr = null, zr = !1, M = null, G = null, be.clear();
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
discard() {
|
|
461
|
-
for (const t of o(
|
|
462
|
-
o(
|
|
463
|
-
for (const t of this.async_deriveds.values()) t.reject(
|
|
464
|
-
k(
|
|
461
|
+
for (const t of o(or, this)) t(this);
|
|
462
|
+
o(or, this).clear();
|
|
463
|
+
for (const t of this.async_deriveds.values()) t.reject(Tt);
|
|
464
|
+
k(I, this, $r).call(this), o(Mt, this)?.resolve();
|
|
465
465
|
}
|
|
466
466
|
register_created_effect(t) {
|
|
467
|
-
o(
|
|
467
|
+
o(Zr, this).push(t);
|
|
468
468
|
}
|
|
469
469
|
increment(t, r) {
|
|
470
|
-
if (
|
|
470
|
+
if (E(ot, this, o(ot, this) + 1), t) {
|
|
471
471
|
let n = o(Be, this).get(r) ?? 0;
|
|
472
472
|
o(Be, this).set(r, n + 1);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
decrement(t, r) {
|
|
476
|
-
if (
|
|
476
|
+
if (E(ot, this, o(ot, this) - 1), t) {
|
|
477
477
|
let n = o(Be, this).get(r) ?? 0;
|
|
478
478
|
n === 1 ? o(Be, this).delete(r) : o(Be, this).set(r, n - 1);
|
|
479
479
|
}
|
|
480
|
-
o(
|
|
481
|
-
|
|
480
|
+
o(Rt, this) || (E(Rt, this, !0), Le(() => {
|
|
481
|
+
E(Rt, this, !1), this.linked && this.flush();
|
|
482
482
|
}));
|
|
483
483
|
}
|
|
484
|
-
|
|
485
|
-
for (const n of t)
|
|
486
|
-
|
|
487
|
-
|
|
484
|
+
transfer_reactions(t) {
|
|
485
|
+
for (const [r, n] of t) this.add_dirty_reaction(r, n);
|
|
486
|
+
t.clear();
|
|
487
|
+
}
|
|
488
|
+
add_dirty_reaction(t, r) {
|
|
489
|
+
(r === 2048 || o(Ne, this).get(t) !== 2048) && o(Ne, this).set(t, r);
|
|
488
490
|
}
|
|
489
491
|
oncommit(t) {
|
|
490
|
-
o(
|
|
492
|
+
o(yr, this).add(t);
|
|
491
493
|
}
|
|
492
494
|
ondiscard(t) {
|
|
493
|
-
o(
|
|
495
|
+
o(or, this).add(t);
|
|
494
496
|
}
|
|
495
497
|
settled() {
|
|
496
|
-
return (o(
|
|
498
|
+
return (o(Mt, this) ?? E(Mt, this, ai())).promise;
|
|
497
499
|
}
|
|
498
500
|
static ensure() {
|
|
499
|
-
if (
|
|
500
|
-
const t =
|
|
501
|
-
!
|
|
502
|
-
|
|
501
|
+
if (M === null) {
|
|
502
|
+
const t = M = new mi();
|
|
503
|
+
!zr && !Wt && Le(() => {
|
|
504
|
+
t.started || t.flush();
|
|
503
505
|
});
|
|
504
506
|
}
|
|
505
|
-
return
|
|
507
|
+
return M;
|
|
506
508
|
}
|
|
507
509
|
apply() {
|
|
508
|
-
if (!De || !this.is_fork &&
|
|
510
|
+
if (!De || !this.is_fork && this.prev === null && this.next === null) {
|
|
509
511
|
G = null;
|
|
510
512
|
return;
|
|
511
513
|
}
|
|
512
514
|
G = /* @__PURE__ */ new Map();
|
|
513
|
-
for (const [
|
|
514
|
-
for (let
|
|
515
|
-
if (!(
|
|
516
|
-
|
|
517
|
-
if (r.id < this.id) {
|
|
518
|
-
for (const [n, [, i]] of r.current)
|
|
519
|
-
if (!i && this.current.has(n)) {
|
|
520
|
-
t = !0;
|
|
521
|
-
break;
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
if (!t)
|
|
525
|
-
for (const [n, i] of r.previous) G.has(n) || G.set(n, i);
|
|
526
|
-
}
|
|
515
|
+
for (const [t, [r]] of this.current) G.set(t, r);
|
|
516
|
+
for (let t = br; t !== null; t = t.next)
|
|
517
|
+
if (!(t === this || t.is_fork) && (t.id >= this.id || !k(I, t, $i).call(t, this)))
|
|
518
|
+
for (const [r, n] of t.previous) G.has(r) || G.set(r, n);
|
|
527
519
|
}
|
|
528
520
|
schedule(t) {
|
|
529
|
-
if (
|
|
521
|
+
if (Xr = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
|
|
530
522
|
t.b.defer_effect(t);
|
|
531
523
|
return;
|
|
532
524
|
}
|
|
533
|
-
o(
|
|
525
|
+
o(et, this).push(t);
|
|
534
526
|
}
|
|
535
527
|
};
|
|
536
|
-
|
|
537
|
-
function
|
|
528
|
+
wi = rt;
|
|
529
|
+
function jn() {
|
|
538
530
|
if (this.is_fork) return !0;
|
|
539
|
-
for (const
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
}
|
|
545
|
-
e = e.parent;
|
|
546
|
-
}
|
|
547
|
-
if (!t) return !0;
|
|
548
|
-
}
|
|
531
|
+
for (const e of o(Be, this).keys()) if (!k(I, this, Ca).call(this, e)) return !0;
|
|
532
|
+
return !1;
|
|
533
|
+
}
|
|
534
|
+
function Ca(e) {
|
|
535
|
+
for (var t = e; t !== null; t = t.parent) if (o(Pe, this).has(t)) return !0;
|
|
549
536
|
return !1;
|
|
550
537
|
}
|
|
551
|
-
function
|
|
538
|
+
function yi() {
|
|
552
539
|
var e = [];
|
|
553
|
-
for (const i of o(
|
|
540
|
+
for (const i of o(et, this))
|
|
554
541
|
if (!((i.f & 16384) !== 0 || (i.f & 6144) === 0)) {
|
|
555
542
|
for (var t = i, r = !1; t.parent !== null; ) {
|
|
556
543
|
t = t.parent;
|
|
@@ -565,55 +552,48 @@ function Si() {
|
|
|
565
552
|
}
|
|
566
553
|
r || e.push(t);
|
|
567
554
|
}
|
|
568
|
-
return
|
|
555
|
+
return E(et, this, []), e;
|
|
569
556
|
}
|
|
570
|
-
function
|
|
571
|
-
|
|
572
|
-
for (const a of o(
|
|
573
|
-
|
|
574
|
-
for (const a of o(Ae, this))
|
|
575
|
-
L(a, it), this.schedule(a);
|
|
557
|
+
function kr() {
|
|
558
|
+
this.started = !0;
|
|
559
|
+
for (const [a, l] of o(Ne, this))
|
|
560
|
+
D(a, l), this.schedule(a);
|
|
576
561
|
this.apply();
|
|
577
|
-
for (var e =
|
|
578
|
-
|
|
579
|
-
for (const a of k(
|
|
580
|
-
k(
|
|
562
|
+
for (var e = qt = [], t = [], r = mr = []; o(et, this).length > 0; ) {
|
|
563
|
+
bi++ > 1e3 && (k(I, this, $r).call(this), La());
|
|
564
|
+
for (const a of k(I, this, yi).call(this)) try {
|
|
565
|
+
k(I, this, ki).call(this, a, e, t);
|
|
581
566
|
} catch (l) {
|
|
582
|
-
throw
|
|
567
|
+
throw Si(a), k(I, this, jn).call(this) || this.discard(), l;
|
|
583
568
|
}
|
|
584
569
|
}
|
|
585
|
-
if (
|
|
586
|
-
var n =
|
|
570
|
+
if (M = null, r.length > 0) {
|
|
571
|
+
var n = wi.ensure();
|
|
587
572
|
for (const a of r) n.schedule(a);
|
|
588
573
|
}
|
|
589
|
-
if (
|
|
590
|
-
k(
|
|
591
|
-
for (const [a, l] of o(
|
|
592
|
-
r.length > 0 && k(
|
|
574
|
+
if (qt = null, mr = null, k(I, this, jn).call(this)) {
|
|
575
|
+
k(I, this, Pt).call(this, t), k(I, this, Pt).call(this, e);
|
|
576
|
+
for (const [a, l] of o(Pe, this)) Ei(a, l);
|
|
577
|
+
r.length > 0 && k(I, M, kr).call(M);
|
|
593
578
|
return;
|
|
594
579
|
}
|
|
595
|
-
const i = k(
|
|
580
|
+
const i = k(I, this, Na).call(this);
|
|
596
581
|
if (i) {
|
|
597
|
-
k(
|
|
582
|
+
k(I, this, Pt).call(this, t), k(I, this, Pt).call(this, e), k(I, i, Ia).call(i, this);
|
|
598
583
|
return;
|
|
599
584
|
}
|
|
600
|
-
o(
|
|
601
|
-
for (const a of o(
|
|
602
|
-
o(
|
|
603
|
-
var s =
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
$(le, this, []);
|
|
608
|
-
} else s = this;
|
|
609
|
-
s !== null && (me.clear(), k(W, s, Sr).call(s));
|
|
610
|
-
}
|
|
611
|
-
function Ti(e, t, r) {
|
|
585
|
+
o(Ne, this).clear();
|
|
586
|
+
for (const a of o(yr, this)) a(this);
|
|
587
|
+
o(yr, this).clear(), ct = this, Fn(t), Fn(e), ct = null, o(Mt, this)?.resolve();
|
|
588
|
+
var s = M;
|
|
589
|
+
o(ot, this) === 0 && (o(et, this).length === 0 || s !== null) && (k(I, this, $r).call(this), De && (k(I, this, za).call(this), M = s)), s !== null && (be.clear(), k(I, s, kr).call(s));
|
|
590
|
+
}
|
|
591
|
+
function ki(e, t, r) {
|
|
612
592
|
e.f ^= ie;
|
|
613
593
|
for (var n = e.first; n !== null; ) {
|
|
614
594
|
var i = n.f, s = (i & 96) !== 0;
|
|
615
|
-
if (!(s && (i & 1024) !== 0 || (i & 8192) !== 0 || o(
|
|
616
|
-
s ? n.f ^= ie : (i & 4) !== 0 ? t.push(n) : De && (i & 16777224) !== 0 ? r.push(n) :
|
|
595
|
+
if (!(s && (i & 1024) !== 0 || (i & 8192) !== 0 || o(Pe, this).has(n)) && n.fn !== null) {
|
|
596
|
+
s ? n.f ^= ie : (i & 4) !== 0 ? t.push(n) : De && (i & 16777224) !== 0 ? r.push(n) : Xt(n) && ((i & 16) !== 0 && this.add_dirty_reaction(n, He), pt(n));
|
|
617
597
|
var a = n.first;
|
|
618
598
|
if (a !== null) {
|
|
619
599
|
n = a;
|
|
@@ -630,23 +610,24 @@ function Ti(e, t, r) {
|
|
|
630
610
|
}
|
|
631
611
|
}
|
|
632
612
|
}
|
|
633
|
-
function
|
|
634
|
-
for (var e =
|
|
635
|
-
if (!e.is_fork) {
|
|
636
|
-
for (const [t, [, r]] of this.current) if (e.current.has(t) && !r) return e;
|
|
637
|
-
}
|
|
638
|
-
e = o(Je, e);
|
|
639
|
-
}
|
|
613
|
+
function Na() {
|
|
614
|
+
for (var e = this.prev; e !== null; e = e.prev) if (!e.is_fork && k(I, this, $i).call(this, e)) return e;
|
|
640
615
|
return null;
|
|
641
616
|
}
|
|
642
|
-
function
|
|
617
|
+
function $i(e) {
|
|
618
|
+
for (const [t, [, r]] of this.current)
|
|
619
|
+
if (!r && e.current.has(t))
|
|
620
|
+
return !0;
|
|
621
|
+
return !1;
|
|
622
|
+
}
|
|
623
|
+
function Ia(e) {
|
|
643
624
|
for (const [r, n] of e.current)
|
|
644
625
|
!this.previous.has(r) && e.previous.has(r) && this.previous.set(r, e.previous.get(r)), this.current.set(r, n);
|
|
645
626
|
for (const [r, n] of e.async_deriveds) {
|
|
646
627
|
const i = this.async_deriveds.get(r);
|
|
647
628
|
i && n.promise.then(i.resolve).catch(i.reject);
|
|
648
629
|
}
|
|
649
|
-
e.async_deriveds.clear(), this.
|
|
630
|
+
e.async_deriveds.clear(), this.transfer_reactions(o(Ne, e));
|
|
650
631
|
const t = (r) => {
|
|
651
632
|
var n = r.reactions;
|
|
652
633
|
if (n !== null && !((r.f & 2) !== 0 && (r.f & 6144) === 0))
|
|
@@ -655,18 +636,18 @@ function La(e) {
|
|
|
655
636
|
if ((i & 2) !== 0) t(a);
|
|
656
637
|
else {
|
|
657
638
|
var s = a;
|
|
658
|
-
i & 4194320 && !this.async_deriveds.has(s) && (o(
|
|
639
|
+
i & 4194320 && !this.async_deriveds.has(s) && (o(Ne, this).delete(s), D(s, J), this.schedule(s));
|
|
659
640
|
}
|
|
660
641
|
}
|
|
661
642
|
};
|
|
662
643
|
for (const r of this.current.keys()) t(r);
|
|
663
|
-
this.oncommit(() => e.discard()), k(
|
|
644
|
+
this.oncommit(() => e.discard()), k(I, e, $r).call(e), M = this, k(I, this, kr).call(this);
|
|
664
645
|
}
|
|
665
|
-
function
|
|
666
|
-
for (var t = 0; t < e.length; t += 1)
|
|
646
|
+
function Pt(e) {
|
|
647
|
+
for (var t = 0; t < e.length; t += 1) hi(e[t], o(Ne, this));
|
|
667
648
|
}
|
|
668
|
-
function
|
|
669
|
-
for (let _ =
|
|
649
|
+
function za() {
|
|
650
|
+
for (let _ = br; _ !== null; _ = _.next) {
|
|
670
651
|
var e = _.id < this.id, t = [];
|
|
671
652
|
for (const [c, [h, f]] of this.current) {
|
|
672
653
|
if (_.current.has(c)) {
|
|
@@ -681,129 +662,129 @@ function Ha() {
|
|
|
681
662
|
f && h.promise.then(f.resolve).catch(f.reject);
|
|
682
663
|
}
|
|
683
664
|
var n = [..._.current.keys()].filter((c) => !_.current.get(c)[1]);
|
|
684
|
-
if (!(!
|
|
665
|
+
if (!(!_.started || n.length === 0)) {
|
|
685
666
|
var i = n.filter((c) => !this.current.has(c));
|
|
686
667
|
if (i.length === 0)
|
|
687
668
|
e && _.discard();
|
|
688
669
|
else if (t.length > 0) {
|
|
689
|
-
if (e) for (const c of o(
|
|
690
|
-
(h.f & 4194320) !== 0 ? _.schedule(h) : k(
|
|
670
|
+
if (e) for (const c of o(hr, this)) _.unskip_effect(c, (h) => {
|
|
671
|
+
(h.f & 4194320) !== 0 ? _.schedule(h) : k(I, _, Pt).call(_, [h]);
|
|
691
672
|
});
|
|
692
673
|
_.activate();
|
|
693
674
|
var s = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
|
|
694
|
-
for (var l of t)
|
|
675
|
+
for (var l of t) xi(l, i, s, a);
|
|
695
676
|
a = /* @__PURE__ */ new Map();
|
|
696
677
|
var u = [..._.current].filter(([c, h]) => {
|
|
697
678
|
const f = this.current.get(c);
|
|
698
679
|
return f ? f[0] !== h[0] || f[1] !== h[1] : !0;
|
|
699
680
|
}).map(([c]) => c);
|
|
700
681
|
if (u.length > 0)
|
|
701
|
-
for (const c of o(
|
|
702
|
-
if (o(
|
|
682
|
+
for (const c of o(Zr, this)) (c.f & 155648) === 0 && gn(c, u, a) && ((c.f & 4194320) !== 0 ? (D(c, J), _.schedule(c)) : _.add_dirty_reaction(c, J));
|
|
683
|
+
if (o(et, _).length > 0 && !o(Rt, _)) {
|
|
703
684
|
_.apply();
|
|
704
|
-
for (var v of k(
|
|
685
|
+
for (var v of k(I, _, yi).call(_)) k(I, _, ki).call(_, v, [], []);
|
|
705
686
|
}
|
|
706
687
|
_.deactivate();
|
|
707
688
|
}
|
|
708
689
|
}
|
|
709
690
|
}
|
|
710
691
|
}
|
|
711
|
-
function
|
|
692
|
+
function $r() {
|
|
712
693
|
if (this.linked) {
|
|
713
|
-
var e =
|
|
714
|
-
e === null ?
|
|
694
|
+
var e = this.prev, t = this.next;
|
|
695
|
+
e === null ? br = t : e.next = t, t === null ? at = e : t.prev = e, this.linked = !1;
|
|
715
696
|
}
|
|
716
697
|
}
|
|
717
|
-
function
|
|
718
|
-
var t =
|
|
719
|
-
|
|
698
|
+
function Ee(e) {
|
|
699
|
+
var t = Wt, r = ct;
|
|
700
|
+
ct = null, Wt = !0;
|
|
720
701
|
try {
|
|
721
702
|
var n;
|
|
722
|
-
for (e && (
|
|
723
|
-
if (
|
|
724
|
-
|
|
703
|
+
for (e && (Ee(), n = e()); ; ) {
|
|
704
|
+
if (xa(), M === null) return n;
|
|
705
|
+
M.flush();
|
|
725
706
|
}
|
|
726
707
|
} finally {
|
|
727
|
-
|
|
708
|
+
Wt = t, ct = r;
|
|
728
709
|
}
|
|
729
710
|
}
|
|
730
|
-
function
|
|
711
|
+
function La() {
|
|
731
712
|
if (0) {
|
|
732
713
|
var e;
|
|
733
|
-
for (const r of
|
|
714
|
+
for (const r of M.current.keys()) for (const [n, i] of r.updated ?? [])
|
|
734
715
|
var t;
|
|
735
716
|
}
|
|
736
717
|
try {
|
|
737
|
-
|
|
718
|
+
_a();
|
|
738
719
|
} catch (r) {
|
|
739
|
-
|
|
720
|
+
me(r, Xr);
|
|
740
721
|
}
|
|
741
722
|
}
|
|
742
|
-
var
|
|
743
|
-
function
|
|
723
|
+
var pe = null;
|
|
724
|
+
function Fn(e) {
|
|
744
725
|
var t = e.length;
|
|
745
726
|
if (t !== 0) {
|
|
746
727
|
for (var r = 0; r < t; ) {
|
|
747
728
|
var n = e[r++];
|
|
748
|
-
if ((n.f & 24576) === 0 &&
|
|
749
|
-
|
|
750
|
-
for (const i of
|
|
729
|
+
if ((n.f & 24576) === 0 && Xt(n) && (pe = /* @__PURE__ */ new Set(), pt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Wi(n), pe?.size > 0)) {
|
|
730
|
+
be.clear();
|
|
731
|
+
for (const i of pe) {
|
|
751
732
|
if ((i.f & 24576) !== 0) continue;
|
|
752
733
|
const s = [i];
|
|
753
734
|
let a = i.parent;
|
|
754
735
|
for (; a !== null; )
|
|
755
|
-
|
|
736
|
+
pe.has(a) && (pe.delete(a), s.push(a)), a = a.parent;
|
|
756
737
|
for (let l = s.length - 1; l >= 0; l--) {
|
|
757
738
|
const u = s[l];
|
|
758
|
-
(u.f & 24576) === 0 &&
|
|
739
|
+
(u.f & 24576) === 0 && pt(u);
|
|
759
740
|
}
|
|
760
741
|
}
|
|
761
|
-
|
|
742
|
+
pe.clear();
|
|
762
743
|
}
|
|
763
744
|
}
|
|
764
|
-
|
|
745
|
+
pe = null;
|
|
765
746
|
}
|
|
766
747
|
}
|
|
767
|
-
function
|
|
748
|
+
function xi(e, t, r, n) {
|
|
768
749
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
769
750
|
for (const i of e.reactions) {
|
|
770
751
|
const s = i.f;
|
|
771
|
-
(s & 2) !== 0 ?
|
|
752
|
+
(s & 2) !== 0 ? xi(i, t, r, n) : (s & 4194320) !== 0 && (s & 2048) === 0 && gn(i, t, n) && (D(i, J), wn(i));
|
|
772
753
|
}
|
|
773
754
|
}
|
|
774
|
-
function
|
|
755
|
+
function gn(e, t, r) {
|
|
775
756
|
const n = r.get(e);
|
|
776
757
|
if (n !== void 0) return n;
|
|
777
758
|
if (e.deps !== null) for (const i of e.deps) {
|
|
778
|
-
if (
|
|
779
|
-
if ((i.f & 2) !== 0 &&
|
|
759
|
+
if (Dt.call(t, i)) return !0;
|
|
760
|
+
if ((i.f & 2) !== 0 && gn(i, t, r))
|
|
780
761
|
return r.set(i, !0), !0;
|
|
781
762
|
}
|
|
782
763
|
return r.set(e, !1), !1;
|
|
783
764
|
}
|
|
784
|
-
function
|
|
785
|
-
|
|
765
|
+
function wn(e) {
|
|
766
|
+
M.schedule(e);
|
|
786
767
|
}
|
|
787
|
-
function
|
|
768
|
+
function Ei(e, t) {
|
|
788
769
|
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
789
|
-
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e),
|
|
770
|
+
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), D(e, ie);
|
|
790
771
|
for (var r = e.first; r !== null; )
|
|
791
|
-
|
|
772
|
+
Ei(r, t), r = r.next;
|
|
792
773
|
}
|
|
793
774
|
}
|
|
794
|
-
function
|
|
795
|
-
|
|
775
|
+
function Si(e) {
|
|
776
|
+
D(e, ie);
|
|
796
777
|
for (var t = e.first; t !== null; )
|
|
797
|
-
|
|
778
|
+
Si(t), t = t.next;
|
|
798
779
|
}
|
|
799
|
-
var
|
|
800
|
-
var
|
|
801
|
-
function
|
|
780
|
+
var xr = /* @__PURE__ */ new Set(), be = /* @__PURE__ */ new Map();
|
|
781
|
+
var Ti = !1;
|
|
782
|
+
function tt(e, t) {
|
|
802
783
|
var r = {
|
|
803
784
|
f: 0,
|
|
804
785
|
v: e,
|
|
805
786
|
reactions: null,
|
|
806
|
-
equals:
|
|
787
|
+
equals: ui,
|
|
807
788
|
rv: 0,
|
|
808
789
|
wv: 0
|
|
809
790
|
};
|
|
@@ -811,102 +792,102 @@ function nt(e, t) {
|
|
|
811
792
|
}
|
|
812
793
|
// @__NO_SIDE_EFFECTS__
|
|
813
794
|
function B(e, t) {
|
|
814
|
-
const r =
|
|
815
|
-
return
|
|
795
|
+
const r = tt(e, t);
|
|
796
|
+
return ji(r), r;
|
|
816
797
|
}
|
|
817
798
|
// @__NO_SIDE_EFFECTS__
|
|
818
|
-
function
|
|
819
|
-
const n =
|
|
820
|
-
if (t || (n.equals =
|
|
799
|
+
function Ai(e, t = !1, r = !0) {
|
|
800
|
+
const n = tt(e);
|
|
801
|
+
if (t || (n.equals = ci), Vt && r && L !== null && L.l !== null) {
|
|
821
802
|
var i;
|
|
822
|
-
((i =
|
|
803
|
+
((i = L.l).s ?? (i.s = [])).push(n);
|
|
823
804
|
}
|
|
824
805
|
return n;
|
|
825
806
|
}
|
|
826
807
|
function C(e, t, r = !1) {
|
|
827
|
-
|
|
828
|
-
let n = r ?
|
|
829
|
-
return
|
|
808
|
+
A !== null && (!le || (A.f & 131072) !== 0) && Kt() && (A.f & 4325394) !== 0 && (ue === null || !ue.has(e)) && ya();
|
|
809
|
+
let n = r ? Ce(t) : t;
|
|
810
|
+
return vt(e, n, mr);
|
|
830
811
|
}
|
|
831
|
-
var Ue = null,
|
|
832
|
-
function
|
|
812
|
+
var Ue = null, Jr = 0;
|
|
813
|
+
function vt(e, t, r = null) {
|
|
833
814
|
if (!e.equals(t)) {
|
|
834
|
-
|
|
835
|
-
var n =
|
|
815
|
+
Te ? be.set(e, t) : be.has(e) || be.set(e, e.v);
|
|
816
|
+
var n = rt.ensure();
|
|
836
817
|
if (n.capture(e, t), (e.f & 2) !== 0) {
|
|
837
818
|
const i = e;
|
|
838
|
-
(e.f & 2048) !== 0 &&
|
|
819
|
+
(e.f & 2048) !== 0 && pn(i), G === null && hn(i);
|
|
839
820
|
}
|
|
840
|
-
e.wv =
|
|
821
|
+
e.wv = Bi(), Ue = null, Jr = 0, Mi(e, J, r), Ue = null, Kt() && T !== null && (T.f & 1024) !== 0 && (T.f & 96) === 0 && (re === null ? Ja([e]) : re.push(e)), !n.is_fork && xr.size > 0 && !Ti && Wa();
|
|
841
822
|
}
|
|
842
823
|
return t;
|
|
843
824
|
}
|
|
844
|
-
function
|
|
845
|
-
|
|
846
|
-
for (const e of
|
|
847
|
-
(e.f & 1024) !== 0 &&
|
|
825
|
+
function Wa() {
|
|
826
|
+
Ti = !1;
|
|
827
|
+
for (const e of xr) {
|
|
828
|
+
(e.f & 1024) !== 0 && D(e, He);
|
|
848
829
|
let t;
|
|
849
830
|
try {
|
|
850
|
-
t =
|
|
831
|
+
t = Xt(e);
|
|
851
832
|
} catch {
|
|
852
833
|
t = !0;
|
|
853
834
|
}
|
|
854
|
-
t &&
|
|
835
|
+
t && pt(e);
|
|
855
836
|
}
|
|
856
|
-
|
|
837
|
+
xr.clear();
|
|
857
838
|
}
|
|
858
|
-
function
|
|
839
|
+
function Ht(e) {
|
|
859
840
|
C(e, e.v + 1);
|
|
860
841
|
}
|
|
861
|
-
function
|
|
842
|
+
function Mi(e, t, r) {
|
|
862
843
|
var n = e.reactions;
|
|
863
844
|
if (n !== null) {
|
|
864
|
-
var i =
|
|
865
|
-
if (
|
|
845
|
+
var i = Kt(), s = n.length;
|
|
846
|
+
if (Jr += s, Jr > 1e5 && Ue === null && (Ue = /* @__PURE__ */ new Set()), Ue !== null) {
|
|
866
847
|
if (Ue.has(e)) return;
|
|
867
848
|
Ue.add(e);
|
|
868
849
|
}
|
|
869
850
|
for (var a = 0; a < s; a++) {
|
|
870
851
|
var l = n[a], u = l.f;
|
|
871
852
|
if (!(!i && l === T)) {
|
|
872
|
-
var v = (u &
|
|
873
|
-
if (v &&
|
|
853
|
+
var v = (u & J) === 0;
|
|
854
|
+
if (v && D(l, t), (u & 131072) !== 0) xr.add(l);
|
|
874
855
|
else if ((u & 2) !== 0) {
|
|
875
856
|
var _ = l;
|
|
876
|
-
G?.delete(_),
|
|
857
|
+
G?.delete(_), Mi(_, He, r);
|
|
877
858
|
} else if (v) {
|
|
878
859
|
var c = l;
|
|
879
|
-
(u & 16) !== 0 &&
|
|
860
|
+
(u & 16) !== 0 && pe !== null && pe.add(c), r !== null ? r.push(c) : wn(c);
|
|
880
861
|
}
|
|
881
862
|
}
|
|
882
863
|
}
|
|
883
864
|
}
|
|
884
865
|
}
|
|
885
|
-
var
|
|
886
|
-
function
|
|
887
|
-
if (typeof e != "object" || e === null ||
|
|
888
|
-
const t =
|
|
889
|
-
if (t !==
|
|
890
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
891
|
-
if (
|
|
892
|
-
var h =
|
|
893
|
-
ae(null),
|
|
866
|
+
var Ha = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
867
|
+
function Ce(e) {
|
|
868
|
+
if (typeof e != "object" || e === null || Lt in e || li in e) return e;
|
|
869
|
+
const t = si(e);
|
|
870
|
+
if (t !== Vs && t !== Ks) return e;
|
|
871
|
+
var r = /* @__PURE__ */ new Map(), n = ii(e), i = /* @__PURE__ */ B(0), s = null, a = Ze, l = (c) => {
|
|
872
|
+
if (Ze === a) return c();
|
|
873
|
+
var h = A, f = Ze;
|
|
874
|
+
ae(null), Un(a);
|
|
894
875
|
var g = c();
|
|
895
|
-
return ae(h),
|
|
876
|
+
return ae(h), Un(f), g;
|
|
896
877
|
};
|
|
897
878
|
n && r.set("length", /* @__PURE__ */ B(e.length, s));
|
|
898
879
|
var u = "";
|
|
899
880
|
let v = !1;
|
|
900
881
|
function _(c) {
|
|
901
882
|
if (!v) {
|
|
902
|
-
v = !0, u = c,
|
|
903
|
-
for (const [h, f] of r)
|
|
883
|
+
v = !0, u = c, Dn(i, `${u} version`);
|
|
884
|
+
for (const [h, f] of r) Dn(f, Da(u, h));
|
|
904
885
|
v = !1;
|
|
905
886
|
}
|
|
906
887
|
}
|
|
907
888
|
return new Proxy(e, {
|
|
908
889
|
defineProperty(c, h, f) {
|
|
909
|
-
(!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) &&
|
|
890
|
+
(!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && ba();
|
|
910
891
|
var g = r.get(h);
|
|
911
892
|
return g === void 0 ? l(() => {
|
|
912
893
|
var b = /* @__PURE__ */ B(f.value, s);
|
|
@@ -918,17 +899,17 @@ function Ie(e) {
|
|
|
918
899
|
if (f === void 0) {
|
|
919
900
|
if (h in c) {
|
|
920
901
|
const g = l(() => /* @__PURE__ */ B(F, s));
|
|
921
|
-
r.set(h, g),
|
|
902
|
+
r.set(h, g), Ht(i);
|
|
922
903
|
}
|
|
923
904
|
} else
|
|
924
|
-
C(f, F),
|
|
905
|
+
C(f, F), Ht(i);
|
|
925
906
|
return !0;
|
|
926
907
|
},
|
|
927
908
|
get(c, h, f) {
|
|
928
|
-
if (h ===
|
|
909
|
+
if (h === Lt) return e;
|
|
929
910
|
var g = r.get(h), b = h in c;
|
|
930
|
-
if (g === void 0 && (!b ||
|
|
931
|
-
var m =
|
|
911
|
+
if (g === void 0 && (!b || Xe(c, h)?.writable) && (g = l(() => {
|
|
912
|
+
var m = Ce(b ? c[h] : F), y = /* @__PURE__ */ B(m, s);
|
|
932
913
|
return y;
|
|
933
914
|
}), r.set(h, g)), g !== void 0) {
|
|
934
915
|
var p = d(g);
|
|
@@ -953,10 +934,10 @@ function Ie(e) {
|
|
|
953
934
|
return f;
|
|
954
935
|
},
|
|
955
936
|
has(c, h) {
|
|
956
|
-
if (h ===
|
|
937
|
+
if (h === Lt) return !0;
|
|
957
938
|
var f = r.get(h), g = f !== void 0 && f.v !== F || Reflect.has(c, h);
|
|
958
|
-
return (f !== void 0 || T !== null && (!g ||
|
|
959
|
-
var b = g ?
|
|
939
|
+
return (f !== void 0 || (T !== null || A !== null) && (!g || Xe(c, h)?.writable)) && (f === void 0 && (f = l(() => {
|
|
940
|
+
var b = g ? Ce(c[h]) : F, p = /* @__PURE__ */ B(b, s);
|
|
960
941
|
return p;
|
|
961
942
|
}), r.set(h, f)), d(f) === F) ? !1 : g;
|
|
962
943
|
},
|
|
@@ -967,19 +948,19 @@ function Ie(e) {
|
|
|
967
948
|
y !== void 0 ? C(y, F) : m in c && (y = l(() => /* @__PURE__ */ B(F, s)), r.set(m + "", y));
|
|
968
949
|
}
|
|
969
950
|
if (b === void 0)
|
|
970
|
-
(!p ||
|
|
951
|
+
(!p || Xe(c, h)?.writable) && (b = l(() => /* @__PURE__ */ B(void 0, s)), C(b, Ce(f)), r.set(h, b));
|
|
971
952
|
else {
|
|
972
953
|
p = b.v !== F;
|
|
973
|
-
var O = l(() =>
|
|
954
|
+
var O = l(() => Ce(f));
|
|
974
955
|
C(b, O);
|
|
975
956
|
}
|
|
976
|
-
var
|
|
977
|
-
if (
|
|
957
|
+
var $ = Reflect.getOwnPropertyDescriptor(c, h);
|
|
958
|
+
if ($?.set && $.set.call(g, f), !p) {
|
|
978
959
|
if (n && typeof h == "string") {
|
|
979
|
-
var
|
|
980
|
-
Number.isInteger(
|
|
960
|
+
var W = r.get("length"), H = Number(h);
|
|
961
|
+
Number.isInteger(H) && H >= W.v && C(W, H + 1);
|
|
981
962
|
}
|
|
982
|
-
|
|
963
|
+
Ht(i);
|
|
983
964
|
}
|
|
984
965
|
return !0;
|
|
985
966
|
},
|
|
@@ -993,99 +974,99 @@ function Ie(e) {
|
|
|
993
974
|
return h;
|
|
994
975
|
},
|
|
995
976
|
setPrototypeOf() {
|
|
996
|
-
|
|
977
|
+
ma();
|
|
997
978
|
}
|
|
998
979
|
});
|
|
999
980
|
}
|
|
1000
|
-
function
|
|
1001
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
981
|
+
function Da(e, t) {
|
|
982
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Ha.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
1002
983
|
}
|
|
1003
|
-
var
|
|
1004
|
-
function
|
|
1005
|
-
if (
|
|
1006
|
-
|
|
984
|
+
var Bn, ja, Ri, Pi, Oi;
|
|
985
|
+
function Qr() {
|
|
986
|
+
if (Bn === void 0) {
|
|
987
|
+
Bn = window, ja = document, Ri = /Firefox/.test(navigator.userAgent);
|
|
1007
988
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1008
|
-
|
|
989
|
+
Pi = Xe(t, "firstChild").get, Oi = Xe(t, "nextSibling").get, Wn(e) && (e[Vr] = void 0, e[Gr] = null, e[Kr] = void 0, e.__e = void 0), Wn(r) && (r[dr] = void 0);
|
|
1009
990
|
}
|
|
1010
991
|
}
|
|
1011
992
|
function ne(e = "") {
|
|
1012
993
|
return document.createTextNode(e);
|
|
1013
994
|
}
|
|
1014
995
|
// @__NO_SIDE_EFFECTS__
|
|
1015
|
-
function
|
|
1016
|
-
return
|
|
996
|
+
function We(e) {
|
|
997
|
+
return Pi.call(e);
|
|
1017
998
|
}
|
|
1018
999
|
// @__NO_SIDE_EFFECTS__
|
|
1019
|
-
function
|
|
1020
|
-
return
|
|
1000
|
+
function ke(e) {
|
|
1001
|
+
return Oi.call(e);
|
|
1021
1002
|
}
|
|
1022
1003
|
function Ye(e, t) {
|
|
1023
|
-
if (!R) return /* @__PURE__ */
|
|
1024
|
-
var r = /* @__PURE__ */
|
|
1004
|
+
if (!R) return /* @__PURE__ */ We(e);
|
|
1005
|
+
var r = /* @__PURE__ */ We(P);
|
|
1025
1006
|
if (r === null) r = P.appendChild(ne());
|
|
1026
1007
|
else if (t && r.nodeType !== 3) {
|
|
1027
1008
|
var n = ne();
|
|
1028
1009
|
return r?.before(n), Z(n), n;
|
|
1029
1010
|
}
|
|
1030
|
-
return t &&
|
|
1011
|
+
return t && mn(r), Z(r), r;
|
|
1031
1012
|
}
|
|
1032
|
-
function
|
|
1013
|
+
function Er(e, t = !1) {
|
|
1033
1014
|
if (!R) {
|
|
1034
|
-
var r = /* @__PURE__ */
|
|
1035
|
-
return r instanceof Comment && r.data === "" ? /* @__PURE__ */
|
|
1015
|
+
var r = /* @__PURE__ */ We(e);
|
|
1016
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ ke(r) : r;
|
|
1036
1017
|
}
|
|
1037
1018
|
if (t) {
|
|
1038
1019
|
if (P?.nodeType !== 3) {
|
|
1039
1020
|
var n = ne();
|
|
1040
1021
|
return P?.before(n), Z(n), n;
|
|
1041
1022
|
}
|
|
1042
|
-
|
|
1023
|
+
mn(P);
|
|
1043
1024
|
}
|
|
1044
1025
|
return P;
|
|
1045
1026
|
}
|
|
1046
|
-
function
|
|
1047
|
-
if (!R) return /* @__PURE__ */
|
|
1027
|
+
function Ot(e, t = !1) {
|
|
1028
|
+
if (!R) return /* @__PURE__ */ We(e);
|
|
1048
1029
|
var r = Ye(e, t);
|
|
1049
1030
|
return qe(e), r;
|
|
1050
1031
|
}
|
|
1051
|
-
function
|
|
1032
|
+
function _e(e, t = 1, r = !1) {
|
|
1052
1033
|
let n = R ? P : e;
|
|
1053
1034
|
for (var i; t--; )
|
|
1054
|
-
i = n, n = /* @__PURE__ */
|
|
1035
|
+
i = n, n = /* @__PURE__ */ ke(n);
|
|
1055
1036
|
if (!R) return n;
|
|
1056
1037
|
if (r) {
|
|
1057
1038
|
if (n?.nodeType !== 3) {
|
|
1058
1039
|
var s = ne();
|
|
1059
1040
|
return n === null ? i?.after(s) : n.before(s), Z(s), s;
|
|
1060
1041
|
}
|
|
1061
|
-
|
|
1042
|
+
mn(n);
|
|
1062
1043
|
}
|
|
1063
1044
|
return Z(n), n;
|
|
1064
1045
|
}
|
|
1065
|
-
function
|
|
1046
|
+
function Ci(e) {
|
|
1066
1047
|
e.textContent = "";
|
|
1067
1048
|
}
|
|
1068
|
-
function
|
|
1069
|
-
return !De ||
|
|
1049
|
+
function Ni() {
|
|
1050
|
+
return !De || pe !== null ? !1 : (T.f & on) !== 0;
|
|
1070
1051
|
}
|
|
1071
|
-
function
|
|
1052
|
+
function bn(e, t, r) {
|
|
1072
1053
|
return t == null || t === "http://www.w3.org/1999/xhtml" ? r ? document.createElement(e, { is: r }) : document.createElement(e) : r ? document.createElementNS(t, e, { is: r }) : document.createElementNS(t, e);
|
|
1073
1054
|
}
|
|
1074
|
-
function
|
|
1055
|
+
function mn(e) {
|
|
1075
1056
|
if (e.nodeValue.length < 65536) return;
|
|
1076
1057
|
let t = e.nextSibling;
|
|
1077
1058
|
for (; t !== null && t.nodeType === 3; )
|
|
1078
1059
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1079
1060
|
}
|
|
1080
|
-
function
|
|
1061
|
+
function Fa(e) {
|
|
1081
1062
|
var t = T;
|
|
1082
1063
|
if (t === null)
|
|
1083
|
-
return
|
|
1064
|
+
return A.f |= _r, e;
|
|
1084
1065
|
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
1085
1066
|
throw e;
|
|
1086
|
-
|
|
1067
|
+
me(e, t);
|
|
1087
1068
|
}
|
|
1088
|
-
function
|
|
1069
|
+
function me(e, t) {
|
|
1089
1070
|
if (e === ze) throw e;
|
|
1090
1071
|
if (!(t !== null && (t.f & 16384) !== 0)) {
|
|
1091
1072
|
for (; t !== null; ) {
|
|
@@ -1103,21 +1084,21 @@ function ye(e, t) {
|
|
|
1103
1084
|
throw e;
|
|
1104
1085
|
}
|
|
1105
1086
|
}
|
|
1106
|
-
function
|
|
1107
|
-
T === null && (
|
|
1087
|
+
function Ba(e) {
|
|
1088
|
+
T === null && (A === null && pa(e), va()), Te && ha(e);
|
|
1108
1089
|
}
|
|
1109
|
-
function
|
|
1090
|
+
function qa(e, t) {
|
|
1110
1091
|
var r = t.last;
|
|
1111
1092
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1112
1093
|
}
|
|
1113
|
-
function
|
|
1094
|
+
function $e(e, t) {
|
|
1114
1095
|
var r = T;
|
|
1115
|
-
r !== null && (r.f & 8192) !== 0 && (e |=
|
|
1096
|
+
r !== null && (r.f & 8192) !== 0 && (e |= an);
|
|
1116
1097
|
var n = {
|
|
1117
|
-
ctx:
|
|
1098
|
+
ctx: L,
|
|
1118
1099
|
deps: null,
|
|
1119
1100
|
nodes: null,
|
|
1120
|
-
f: e |
|
|
1101
|
+
f: e | J | 512,
|
|
1121
1102
|
first: null,
|
|
1122
1103
|
fn: t,
|
|
1123
1104
|
last: null,
|
|
@@ -1129,107 +1110,107 @@ function xe(e, t) {
|
|
|
1129
1110
|
wv: 0,
|
|
1130
1111
|
ac: null
|
|
1131
1112
|
};
|
|
1132
|
-
|
|
1113
|
+
M?.register_created_effect(n);
|
|
1133
1114
|
var i = n;
|
|
1134
1115
|
if ((e & 4) !== 0)
|
|
1135
|
-
|
|
1116
|
+
qt !== null ? qt.push(n) : rt.ensure().schedule(n);
|
|
1136
1117
|
else if (t !== null) {
|
|
1137
1118
|
try {
|
|
1138
|
-
|
|
1119
|
+
pt(n);
|
|
1139
1120
|
} catch (a) {
|
|
1140
1121
|
throw V(n), a;
|
|
1141
1122
|
}
|
|
1142
|
-
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |=
|
|
1123
|
+
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |= ln));
|
|
1143
1124
|
}
|
|
1144
|
-
if (i !== null && (i.parent = r, r !== null &&
|
|
1145
|
-
var s =
|
|
1125
|
+
if (i !== null && (i.parent = r, r !== null && qa(i, r), A !== null && (A.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1126
|
+
var s = A;
|
|
1146
1127
|
(s.effects ?? (s.effects = [])).push(i);
|
|
1147
1128
|
}
|
|
1148
1129
|
return n;
|
|
1149
1130
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return
|
|
1131
|
+
function yn() {
|
|
1132
|
+
return A !== null && !le;
|
|
1152
1133
|
}
|
|
1153
|
-
function
|
|
1154
|
-
const t =
|
|
1155
|
-
return
|
|
1134
|
+
function Ua(e) {
|
|
1135
|
+
const t = $e(8, null);
|
|
1136
|
+
return D(t, ie), t.teardown = e, t;
|
|
1156
1137
|
}
|
|
1157
|
-
function
|
|
1158
|
-
|
|
1138
|
+
function Re(e) {
|
|
1139
|
+
Ba("$effect");
|
|
1159
1140
|
var t = T.f;
|
|
1160
|
-
if (!
|
|
1161
|
-
var r =
|
|
1141
|
+
if (!A && (t & 32) !== 0 && L !== null && !L.i) {
|
|
1142
|
+
var r = L;
|
|
1162
1143
|
(r.e ?? (r.e = [])).push(e);
|
|
1163
|
-
} else return
|
|
1144
|
+
} else return Ii(e);
|
|
1164
1145
|
}
|
|
1165
|
-
function
|
|
1166
|
-
return
|
|
1146
|
+
function Ii(e) {
|
|
1147
|
+
return $e(4 | ta, e);
|
|
1167
1148
|
}
|
|
1168
|
-
function
|
|
1169
|
-
|
|
1170
|
-
const t =
|
|
1149
|
+
function Ya(e) {
|
|
1150
|
+
rt.ensure();
|
|
1151
|
+
const t = $e(64 | gt, e);
|
|
1171
1152
|
return () => {
|
|
1172
1153
|
V(t);
|
|
1173
1154
|
};
|
|
1174
1155
|
}
|
|
1175
|
-
function
|
|
1176
|
-
|
|
1177
|
-
const t =
|
|
1156
|
+
function Ga(e) {
|
|
1157
|
+
rt.ensure();
|
|
1158
|
+
const t = $e(64 | gt, e);
|
|
1178
1159
|
return (r = {}) => new Promise((n) => {
|
|
1179
|
-
r.outro ?
|
|
1160
|
+
r.outro ? nt(t, () => {
|
|
1180
1161
|
V(t), n(void 0);
|
|
1181
1162
|
}) : (V(t), n(void 0));
|
|
1182
1163
|
});
|
|
1183
1164
|
}
|
|
1184
|
-
function
|
|
1185
|
-
return
|
|
1165
|
+
function zi(e) {
|
|
1166
|
+
return $e(4, e);
|
|
1186
1167
|
}
|
|
1187
|
-
function
|
|
1188
|
-
return
|
|
1168
|
+
function Va(e) {
|
|
1169
|
+
return $e(ra | gt, e);
|
|
1189
1170
|
}
|
|
1190
|
-
function
|
|
1191
|
-
return
|
|
1171
|
+
function kn(e, t = 0) {
|
|
1172
|
+
return $e(8 | t, e);
|
|
1192
1173
|
}
|
|
1193
|
-
function
|
|
1194
|
-
|
|
1195
|
-
|
|
1174
|
+
function Ct(e, t = [], r = [], n = []) {
|
|
1175
|
+
Sa(n, t, r, (i) => {
|
|
1176
|
+
$e(8, () => {
|
|
1196
1177
|
e(...i.map(d));
|
|
1197
1178
|
});
|
|
1198
1179
|
});
|
|
1199
1180
|
}
|
|
1200
|
-
function
|
|
1201
|
-
var r =
|
|
1181
|
+
function $n(e, t = 0) {
|
|
1182
|
+
var r = $e(16 | t, e);
|
|
1202
1183
|
return r;
|
|
1203
1184
|
}
|
|
1204
1185
|
function se(e) {
|
|
1205
|
-
return
|
|
1186
|
+
return $e(32 | gt, e);
|
|
1206
1187
|
}
|
|
1207
|
-
function
|
|
1188
|
+
function Li(e) {
|
|
1208
1189
|
var t = e.teardown;
|
|
1209
1190
|
if (t !== null) {
|
|
1210
|
-
const r =
|
|
1211
|
-
|
|
1191
|
+
const r = Te, n = A;
|
|
1192
|
+
qn(!0), ae(null);
|
|
1212
1193
|
try {
|
|
1213
1194
|
t.call(null);
|
|
1214
1195
|
} catch (i) {
|
|
1215
|
-
|
|
1196
|
+
me(i, e.parent);
|
|
1216
1197
|
} finally {
|
|
1217
|
-
|
|
1198
|
+
qn(r), ae(n);
|
|
1218
1199
|
}
|
|
1219
1200
|
}
|
|
1220
1201
|
}
|
|
1221
|
-
function
|
|
1202
|
+
function xn(e, t = !1) {
|
|
1222
1203
|
var r = e.first;
|
|
1223
1204
|
for (e.first = e.last = null; r !== null; ) {
|
|
1224
1205
|
const i = r.ac;
|
|
1225
|
-
i !== null &&
|
|
1226
|
-
i.abort(
|
|
1206
|
+
i !== null && Or(() => {
|
|
1207
|
+
i.abort(Gt);
|
|
1227
1208
|
});
|
|
1228
1209
|
var n = r.next;
|
|
1229
1210
|
(r.f & 64) !== 0 ? r.parent = null : V(r, t), r = n;
|
|
1230
1211
|
}
|
|
1231
1212
|
}
|
|
1232
|
-
function
|
|
1213
|
+
function Ka(e) {
|
|
1233
1214
|
for (var t = e.first; t !== null; ) {
|
|
1234
1215
|
var r = t.next;
|
|
1235
1216
|
(t.f & 32) === 0 && V(t), t = r;
|
|
@@ -1237,26 +1218,26 @@ function Ja(e) {
|
|
|
1237
1218
|
}
|
|
1238
1219
|
function V(e, t = !0) {
|
|
1239
1220
|
var r = !1;
|
|
1240
|
-
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (
|
|
1221
|
+
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (Xa(e.nodes.start, e.nodes.end), r = !0), e.f |= Yr, xn(e, t && !r), Ut(e, 0);
|
|
1241
1222
|
var n = e.nodes && e.nodes.t;
|
|
1242
1223
|
if (n !== null) for (const s of n) s.stop();
|
|
1243
|
-
|
|
1224
|
+
Li(e), e.f ^= Yr, e.f |= oi;
|
|
1244
1225
|
var i = e.parent;
|
|
1245
|
-
i !== null && i.first !== null &&
|
|
1226
|
+
i !== null && i.first !== null && Wi(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1246
1227
|
}
|
|
1247
|
-
function
|
|
1228
|
+
function Xa(e, t) {
|
|
1248
1229
|
for (; e !== null; ) {
|
|
1249
|
-
var r = e === t ? null : /* @__PURE__ */
|
|
1230
|
+
var r = e === t ? null : /* @__PURE__ */ ke(e);
|
|
1250
1231
|
e.remove(), e = r;
|
|
1251
1232
|
}
|
|
1252
1233
|
}
|
|
1253
|
-
function
|
|
1234
|
+
function Wi(e) {
|
|
1254
1235
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1255
1236
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1256
1237
|
}
|
|
1257
|
-
function
|
|
1238
|
+
function nt(e, t, r = !0) {
|
|
1258
1239
|
var n = [];
|
|
1259
|
-
e.f |= 256,
|
|
1240
|
+
e.f |= 256, Hi(e, n, !0);
|
|
1260
1241
|
var i = () => {
|
|
1261
1242
|
r && V(e), t && t();
|
|
1262
1243
|
}, s = n.length;
|
|
@@ -1265,9 +1246,9 @@ function at(e, t, r = !0) {
|
|
|
1265
1246
|
for (var l of n) l.out(a);
|
|
1266
1247
|
} else i();
|
|
1267
1248
|
}
|
|
1268
|
-
function
|
|
1249
|
+
function Hi(e, t, r) {
|
|
1269
1250
|
if ((e.f & 8192) === 0) {
|
|
1270
|
-
e.f ^=
|
|
1251
|
+
e.f ^= an;
|
|
1271
1252
|
var n = e.nodes && e.nodes.t;
|
|
1272
1253
|
if (n !== null)
|
|
1273
1254
|
for (const l of n) (l.is_global || r) && t.push(l);
|
|
@@ -1275,150 +1256,150 @@ function Bi(e, t, r) {
|
|
|
1275
1256
|
var s = i.next;
|
|
1276
1257
|
if ((i.f & 64) === 0) {
|
|
1277
1258
|
var a = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1278
|
-
|
|
1259
|
+
Hi(i, t, a ? r : !1);
|
|
1279
1260
|
}
|
|
1280
1261
|
i = s;
|
|
1281
1262
|
}
|
|
1282
1263
|
}
|
|
1283
1264
|
}
|
|
1284
|
-
function
|
|
1285
|
-
e.f &= -257,
|
|
1265
|
+
function Sr(e) {
|
|
1266
|
+
e.f &= -257, Di(e, !0);
|
|
1286
1267
|
}
|
|
1287
|
-
function
|
|
1268
|
+
function Di(e, t) {
|
|
1288
1269
|
if ((e.f & 256) === 0 && (e.f & 8192) !== 0) {
|
|
1289
|
-
e.f ^=
|
|
1270
|
+
e.f ^= an, (e.f & 1024) === 0 && (D(e, J), rt.ensure().schedule(e));
|
|
1290
1271
|
for (var r = e.first; r !== null; ) {
|
|
1291
1272
|
var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1292
|
-
|
|
1273
|
+
Di(r, i ? t : !1), r = n;
|
|
1293
1274
|
}
|
|
1294
1275
|
var s = e.nodes && e.nodes.t;
|
|
1295
1276
|
if (s !== null)
|
|
1296
1277
|
for (const a of s) (a.is_global || t) && a.in();
|
|
1297
1278
|
}
|
|
1298
1279
|
}
|
|
1299
|
-
function
|
|
1280
|
+
function En(e, t) {
|
|
1300
1281
|
if (e.nodes)
|
|
1301
1282
|
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1302
|
-
var i = r === n ? null : /* @__PURE__ */
|
|
1283
|
+
var i = r === n ? null : /* @__PURE__ */ ke(r);
|
|
1303
1284
|
t.append(r), r = i;
|
|
1304
1285
|
}
|
|
1305
1286
|
}
|
|
1306
|
-
var
|
|
1307
|
-
function
|
|
1308
|
-
|
|
1287
|
+
var Za = null, Te = !1;
|
|
1288
|
+
function qn(e) {
|
|
1289
|
+
Te = e;
|
|
1309
1290
|
}
|
|
1310
|
-
var
|
|
1291
|
+
var A = null, le = !1;
|
|
1311
1292
|
function ae(e) {
|
|
1312
|
-
|
|
1293
|
+
A = e;
|
|
1313
1294
|
}
|
|
1314
1295
|
var T = null;
|
|
1315
|
-
function
|
|
1296
|
+
function ye(e) {
|
|
1316
1297
|
T = e;
|
|
1317
1298
|
}
|
|
1318
|
-
var
|
|
1319
|
-
function
|
|
1320
|
-
|
|
1299
|
+
var ue = null;
|
|
1300
|
+
function ji(e) {
|
|
1301
|
+
A !== null && (!De && (A.f & 2097152) !== 0 || (A.f & 2) !== 0) && (ue ?? (ue = /* @__PURE__ */ new Set())).add(e);
|
|
1321
1302
|
}
|
|
1322
|
-
var K = null,
|
|
1323
|
-
function
|
|
1303
|
+
var K = null, Q = 0, re = null;
|
|
1304
|
+
function Ja(e) {
|
|
1324
1305
|
re = e;
|
|
1325
1306
|
}
|
|
1326
|
-
var
|
|
1327
|
-
function
|
|
1328
|
-
|
|
1307
|
+
var Fi = 1, Ke = 0, Ze = Ke;
|
|
1308
|
+
function Un(e) {
|
|
1309
|
+
Ze = e;
|
|
1329
1310
|
}
|
|
1330
|
-
function
|
|
1331
|
-
return ++
|
|
1311
|
+
function Bi() {
|
|
1312
|
+
return ++Fi;
|
|
1332
1313
|
}
|
|
1333
|
-
function
|
|
1314
|
+
function Xt(e) {
|
|
1334
1315
|
var t = e.f;
|
|
1335
1316
|
if ((t & 2048) !== 0) return !0;
|
|
1336
1317
|
if ((t & 4096) !== 0) {
|
|
1337
1318
|
for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
|
|
1338
1319
|
var s = r[i];
|
|
1339
|
-
if (
|
|
1320
|
+
if (Xt(s) && pi(s), s.wv > e.wv) return !0;
|
|
1340
1321
|
}
|
|
1341
|
-
(t & 512) !== 0 && G === null &&
|
|
1322
|
+
(t & 512) !== 0 && G === null && D(e, ie);
|
|
1342
1323
|
}
|
|
1343
1324
|
return !1;
|
|
1344
1325
|
}
|
|
1345
|
-
function
|
|
1326
|
+
function qi(e, t, r = !0) {
|
|
1346
1327
|
var n = e.reactions;
|
|
1347
|
-
if (n !== null && !(!De &&
|
|
1328
|
+
if (n !== null && !(!De && ue !== null && ue.has(e)))
|
|
1348
1329
|
for (var i = 0; i < n.length; i++) {
|
|
1349
1330
|
var s = n[i];
|
|
1350
|
-
(s.f & 2) !== 0 ?
|
|
1331
|
+
(s.f & 2) !== 0 ? qi(s, t, !1) : t === s && (r ? D(s, J) : (s.f & 1024) !== 0 && D(s, He), wn(s));
|
|
1351
1332
|
}
|
|
1352
1333
|
}
|
|
1353
|
-
function
|
|
1354
|
-
var t = K, r =
|
|
1355
|
-
K = null,
|
|
1356
|
-
e.ac.abort(
|
|
1334
|
+
function Ui(e) {
|
|
1335
|
+
var t = K, r = Q, n = re, i = A, s = ue, a = L, l = le, u = Ze, v = e.f;
|
|
1336
|
+
K = null, Q = 0, re = null, A = (v & 96) === 0 ? e : null, ue = null, ht(e.ctx), le = !1, Ze = ++Ke, e.ac !== null && (Or(() => {
|
|
1337
|
+
e.ac.abort(Gt);
|
|
1357
1338
|
}), e.ac = null);
|
|
1358
1339
|
try {
|
|
1359
|
-
e.f |=
|
|
1340
|
+
e.f |= Hn;
|
|
1360
1341
|
var _ = e.fn, c = _();
|
|
1361
|
-
e.f |=
|
|
1362
|
-
var h =
|
|
1363
|
-
if (
|
|
1342
|
+
e.f |= on;
|
|
1343
|
+
var h = Yn(e);
|
|
1344
|
+
if (Kt() && re !== null && !le && h !== null && (e.f & 6146) === 0) for (var f = 0; f < re.length; f++) qi(re[f], e);
|
|
1364
1345
|
if (i !== null && i !== e) {
|
|
1365
|
-
if (
|
|
1366
|
-
if (t !== null) for (const g of t) g.rv =
|
|
1346
|
+
if (Ke++, i.deps !== null) for (let g = 0; g < r; g += 1) i.deps[g].rv = Ke;
|
|
1347
|
+
if (t !== null) for (const g of t) g.rv = Ke;
|
|
1367
1348
|
re !== null && (n === null ? n = re : n.push(...re));
|
|
1368
1349
|
}
|
|
1369
|
-
return (e.f & 8388608) !== 0 && (e.f ^=
|
|
1350
|
+
return (e.f & 8388608) !== 0 && (e.f ^= _r), c;
|
|
1370
1351
|
} catch (g) {
|
|
1371
|
-
return
|
|
1352
|
+
return Yn(e), Fa(g);
|
|
1372
1353
|
} finally {
|
|
1373
|
-
e.f ^=
|
|
1354
|
+
e.f ^= Hn, K = t, Q = r, re = n, A = i, ue = s, ht(a), le = l, Ze = u;
|
|
1374
1355
|
}
|
|
1375
1356
|
}
|
|
1376
|
-
function
|
|
1377
|
-
var t = e.deps, r =
|
|
1357
|
+
function Yn(e) {
|
|
1358
|
+
var t = e.deps, r = M?.is_fork;
|
|
1378
1359
|
if (K !== null) {
|
|
1379
1360
|
var n;
|
|
1380
|
-
if (r ||
|
|
1381
|
-
for (t.length =
|
|
1361
|
+
if (r || Ut(e, Q), t !== null && Q > 0)
|
|
1362
|
+
for (t.length = Q + K.length, n = 0; n < K.length; n++) t[Q + n] = K[n];
|
|
1382
1363
|
else e.deps = t = K;
|
|
1383
|
-
if (
|
|
1364
|
+
if (yn() && (e.f & 512) !== 0) for (n = Q; n < t.length; n++) {
|
|
1384
1365
|
var i;
|
|
1385
1366
|
((i = t[n]).reactions ?? (i.reactions = [])).push(e);
|
|
1386
1367
|
}
|
|
1387
|
-
} else !r && t !== null &&
|
|
1368
|
+
} else !r && t !== null && Q < t.length && (Ut(e, Q), t.length = Q);
|
|
1388
1369
|
return t;
|
|
1389
1370
|
}
|
|
1390
|
-
function
|
|
1371
|
+
function Qa(e, t) {
|
|
1391
1372
|
let r = t.reactions;
|
|
1392
1373
|
if (r !== null) {
|
|
1393
|
-
var n =
|
|
1374
|
+
var n = Ys.call(r, e);
|
|
1394
1375
|
if (n !== -1) {
|
|
1395
1376
|
var i = r.length - 1;
|
|
1396
1377
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1397
1378
|
}
|
|
1398
1379
|
}
|
|
1399
|
-
if (r === null && (t.f & 2) !== 0 && (K === null || !
|
|
1380
|
+
if (r === null && (t.f & 2) !== 0 && (K === null || !Dt.call(K, t))) {
|
|
1400
1381
|
var s = t;
|
|
1401
|
-
(s.f & 512) !== 0 && (s.f ^= 512), s.v !== F &&
|
|
1402
|
-
s.ac.abort(
|
|
1403
|
-
}),
|
|
1382
|
+
(s.f & 512) !== 0 && (s.f ^= 512), s.v !== F && hn(s), s.ac !== null && Or(() => {
|
|
1383
|
+
s.ac.abort(Gt), s.ac = null, D(s, J);
|
|
1384
|
+
}), Pa(s), Ut(s, 0);
|
|
1404
1385
|
}
|
|
1405
1386
|
}
|
|
1406
|
-
function
|
|
1387
|
+
function Ut(e, t) {
|
|
1407
1388
|
var r = e.deps;
|
|
1408
1389
|
if (r !== null)
|
|
1409
|
-
for (var n = t; n < r.length; n++)
|
|
1390
|
+
for (var n = t; n < r.length; n++) Qa(e, r[n]);
|
|
1410
1391
|
}
|
|
1411
|
-
function
|
|
1392
|
+
function pt(e) {
|
|
1412
1393
|
var t = e.f;
|
|
1413
1394
|
if ((t & 16384) === 0) {
|
|
1414
|
-
|
|
1395
|
+
D(e, ie);
|
|
1415
1396
|
var r = T;
|
|
1416
1397
|
if (T = e, 0)
|
|
1417
1398
|
var n, i;
|
|
1418
1399
|
try {
|
|
1419
|
-
(t & 16777232) !== 0 ?
|
|
1420
|
-
var s =
|
|
1421
|
-
if (e.teardown = typeof s == "function" ? s : null, e.wv =
|
|
1400
|
+
(t & 16777232) !== 0 ? Ka(e) : xn(e), Li(e);
|
|
1401
|
+
var s = Ui(e);
|
|
1402
|
+
if (e.teardown = typeof s == "function" ? s : null, e.wv = Fi, 0)
|
|
1422
1403
|
for (var a of e.deps) ;
|
|
1423
1404
|
} finally {
|
|
1424
1405
|
T = r;
|
|
@@ -1427,80 +1408,80 @@ function wt(e) {
|
|
|
1427
1408
|
}
|
|
1428
1409
|
function d(e) {
|
|
1429
1410
|
var t = (e.f & 2) !== 0;
|
|
1430
|
-
if (
|
|
1431
|
-
var r =
|
|
1432
|
-
if ((
|
|
1433
|
-
e.rv <
|
|
1411
|
+
if (Za?.add(e), A !== null && !le && !(T !== null && (T.f & 16384) !== 0) && (ue === null || !ue.has(e))) {
|
|
1412
|
+
var r = A.deps;
|
|
1413
|
+
if ((A.f & 2097152) !== 0)
|
|
1414
|
+
e.rv < Ke && (e.rv = Ke, K === null && r !== null && r[Q] === e ? Q++ : K === null ? K = [e] : K.push(e));
|
|
1434
1415
|
else {
|
|
1435
1416
|
var n;
|
|
1436
|
-
(n =
|
|
1417
|
+
(n = A).deps ?? (n.deps = []), Dt.call(A.deps, e) || A.deps.push(e);
|
|
1437
1418
|
var i = e.reactions;
|
|
1438
|
-
i === null ? e.reactions = [
|
|
1419
|
+
i === null ? e.reactions = [A] : Dt.call(i, A) || i.push(A);
|
|
1439
1420
|
}
|
|
1440
1421
|
}
|
|
1441
1422
|
if (0) {
|
|
1442
|
-
if (!
|
|
1423
|
+
if (!le && reactivity_loss_tracker && M === null && ct === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1443
1424
|
var s;
|
|
1444
|
-
if (tracing_mode_flag && !
|
|
1425
|
+
if (tracing_mode_flag && !le && tracing_expressions !== null && A !== null && tracing_expressions.reaction === A && !e.trace) {
|
|
1445
1426
|
if (s)
|
|
1446
1427
|
var a, l;
|
|
1447
1428
|
}
|
|
1448
1429
|
}
|
|
1449
|
-
if (
|
|
1430
|
+
if (Te && be.has(e)) return be.get(e);
|
|
1450
1431
|
if (t) {
|
|
1451
1432
|
var u = e;
|
|
1452
|
-
if (
|
|
1433
|
+
if (Te) {
|
|
1453
1434
|
var v = u.v;
|
|
1454
|
-
return ((u.f & 1024) === 0 && u.reactions !== null ||
|
|
1435
|
+
return ((u.f & 1024) === 0 && u.reactions !== null || Gi(u)) && (v = pn(u)), be.set(u, v), v;
|
|
1455
1436
|
}
|
|
1456
|
-
var _ = (u.f & 512) === 0 && !
|
|
1457
|
-
|
|
1437
|
+
var _ = (u.f & 512) === 0 && !le && A !== null && (A.f & 512) !== 0, c = (u.f & on) === 0;
|
|
1438
|
+
Xt(u) && (_ && (u.f |= 512), pi(u)), _ && !c && (_i(u), Yi(u));
|
|
1458
1439
|
}
|
|
1459
1440
|
if (G?.has(e)) return G.get(e);
|
|
1460
1441
|
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1461
1442
|
return e.v;
|
|
1462
1443
|
}
|
|
1463
|
-
function
|
|
1444
|
+
function Yi(e) {
|
|
1464
1445
|
if (e.f |= 512, e.deps !== null)
|
|
1465
1446
|
for (const r of e.deps) {
|
|
1466
1447
|
var t = r.reactions;
|
|
1467
|
-
t === null ? r.reactions = [e] :
|
|
1448
|
+
t === null ? r.reactions = [e] : Dt.call(t, e) || t.push(e), (r.f & 2) !== 0 && (r.f & 512) === 0 && (_i(r), Yi(r));
|
|
1468
1449
|
}
|
|
1469
1450
|
}
|
|
1470
|
-
function
|
|
1451
|
+
function Gi(e) {
|
|
1471
1452
|
if (e.v === F) return !0;
|
|
1472
1453
|
if (e.deps === null) return !1;
|
|
1473
1454
|
for (const t of e.deps)
|
|
1474
|
-
if (
|
|
1455
|
+
if (be.has(t) || (t.f & 2) !== 0 && Gi(t)) return !0;
|
|
1475
1456
|
return !1;
|
|
1476
1457
|
}
|
|
1477
|
-
function
|
|
1478
|
-
var t =
|
|
1458
|
+
function _t(e) {
|
|
1459
|
+
var t = le;
|
|
1479
1460
|
try {
|
|
1480
|
-
return
|
|
1461
|
+
return le = !0, e();
|
|
1481
1462
|
} finally {
|
|
1482
|
-
|
|
1463
|
+
le = t;
|
|
1483
1464
|
}
|
|
1484
1465
|
}
|
|
1485
|
-
var
|
|
1486
|
-
function
|
|
1487
|
-
(t[
|
|
1466
|
+
var ut = /* @__PURE__ */ Symbol("events"), Vi = /* @__PURE__ */ new Set(), en = /* @__PURE__ */ new Set();
|
|
1467
|
+
function ge(e, t, r) {
|
|
1468
|
+
(t[ut] ?? (t[ut] = {}))[e] = r;
|
|
1488
1469
|
}
|
|
1489
|
-
function
|
|
1490
|
-
for (var t = 0; t < e.length; t++)
|
|
1491
|
-
for (var r of
|
|
1470
|
+
function Ki(e) {
|
|
1471
|
+
for (var t = 0; t < e.length; t++) Vi.add(e[t]);
|
|
1472
|
+
for (var r of en) r(e);
|
|
1492
1473
|
}
|
|
1493
|
-
var
|
|
1494
|
-
function
|
|
1474
|
+
var Lr = null, Wr = !1;
|
|
1475
|
+
function Gn(e) {
|
|
1495
1476
|
var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], s = i[0] || e.target;
|
|
1496
|
-
|
|
1497
|
-
|
|
1477
|
+
Lr = e, Wr || (Wr = !0, setTimeout(() => {
|
|
1478
|
+
Wr = !1, Lr = null;
|
|
1498
1479
|
}));
|
|
1499
|
-
var a = 0, l =
|
|
1480
|
+
var a = 0, l = Lr === e && e[ut];
|
|
1500
1481
|
if (l) {
|
|
1501
1482
|
var u = i.indexOf(l);
|
|
1502
1483
|
if (u !== -1 && (t === document || t === window)) {
|
|
1503
|
-
e[
|
|
1484
|
+
e[ut] = t;
|
|
1504
1485
|
return;
|
|
1505
1486
|
}
|
|
1506
1487
|
var v = i.indexOf(t);
|
|
@@ -1508,18 +1489,18 @@ function Jn(e) {
|
|
|
1508
1489
|
u <= v && (a = u);
|
|
1509
1490
|
}
|
|
1510
1491
|
if (s = i[a] || e.target, s !== t) {
|
|
1511
|
-
|
|
1492
|
+
jt(e, "currentTarget", {
|
|
1512
1493
|
configurable: !0,
|
|
1513
1494
|
get() {
|
|
1514
1495
|
return s || r;
|
|
1515
1496
|
}
|
|
1516
1497
|
});
|
|
1517
|
-
var _ =
|
|
1518
|
-
ae(null),
|
|
1498
|
+
var _ = A, c = T;
|
|
1499
|
+
ae(null), ye(null);
|
|
1519
1500
|
try {
|
|
1520
1501
|
for (var h, f = []; s !== null && s !== t; ) {
|
|
1521
1502
|
try {
|
|
1522
|
-
var g = s[
|
|
1503
|
+
var g = s[ut]?.[n];
|
|
1523
1504
|
g != null && (!s.disabled || e.target === s) && g.call(s, e);
|
|
1524
1505
|
} catch (b) {
|
|
1525
1506
|
h ? f.push(b) : h = b;
|
|
@@ -1534,19 +1515,19 @@ function Jn(e) {
|
|
|
1534
1515
|
throw h;
|
|
1535
1516
|
}
|
|
1536
1517
|
} finally {
|
|
1537
|
-
e[
|
|
1518
|
+
e[ut] = t, delete e.currentTarget, ae(_), ye(c);
|
|
1538
1519
|
}
|
|
1539
1520
|
}
|
|
1540
1521
|
}
|
|
1541
|
-
var
|
|
1542
|
-
function
|
|
1543
|
-
return
|
|
1522
|
+
var eo = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1523
|
+
function to(e) {
|
|
1524
|
+
return eo?.createHTML(e) ?? e;
|
|
1544
1525
|
}
|
|
1545
|
-
function
|
|
1546
|
-
var t =
|
|
1547
|
-
return t.innerHTML =
|
|
1526
|
+
function ro(e) {
|
|
1527
|
+
var t = bn("template");
|
|
1528
|
+
return t.innerHTML = to(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1548
1529
|
}
|
|
1549
|
-
function
|
|
1530
|
+
function dt(e, t) {
|
|
1550
1531
|
var r = T;
|
|
1551
1532
|
r.nodes === null && (r.nodes = {
|
|
1552
1533
|
start: e,
|
|
@@ -1556,35 +1537,35 @@ function pt(e, t) {
|
|
|
1556
1537
|
});
|
|
1557
1538
|
}
|
|
1558
1539
|
// @__NO_SIDE_EFFECTS__
|
|
1559
|
-
function
|
|
1540
|
+
function Zt(e, t) {
|
|
1560
1541
|
var r = (t & 1) !== 0, n = (t & 2) !== 0, i, s = !e.startsWith("<!>");
|
|
1561
1542
|
return () => {
|
|
1562
1543
|
if (R)
|
|
1563
|
-
return
|
|
1564
|
-
i === void 0 && (i =
|
|
1565
|
-
var a = n ||
|
|
1544
|
+
return dt(P, null), P;
|
|
1545
|
+
i === void 0 && (i = ro(s ? e : "<!>" + e), r || (i = /* @__PURE__ */ We(i)));
|
|
1546
|
+
var a = n || Ri ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1566
1547
|
if (r) {
|
|
1567
|
-
var l = /* @__PURE__ */
|
|
1568
|
-
|
|
1569
|
-
} else
|
|
1548
|
+
var l = /* @__PURE__ */ We(a), u = a.lastChild;
|
|
1549
|
+
dt(l, u);
|
|
1550
|
+
} else dt(a, a);
|
|
1570
1551
|
return a;
|
|
1571
1552
|
};
|
|
1572
1553
|
}
|
|
1573
|
-
function
|
|
1554
|
+
function no() {
|
|
1574
1555
|
if (R)
|
|
1575
|
-
return
|
|
1556
|
+
return dt(P, null), P;
|
|
1576
1557
|
var e = document.createDocumentFragment(), t = document.createComment(""), r = ne();
|
|
1577
|
-
return e.append(t, r),
|
|
1558
|
+
return e.append(t, r), dt(t, r), e;
|
|
1578
1559
|
}
|
|
1579
|
-
function
|
|
1560
|
+
function Oe(e, t) {
|
|
1580
1561
|
if (R) {
|
|
1581
1562
|
var r = T;
|
|
1582
|
-
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = P),
|
|
1563
|
+
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = P), Pr();
|
|
1583
1564
|
return;
|
|
1584
1565
|
}
|
|
1585
1566
|
e !== null && e.before(t);
|
|
1586
1567
|
}
|
|
1587
|
-
var
|
|
1568
|
+
var io = [
|
|
1588
1569
|
"allowfullscreen",
|
|
1589
1570
|
"async",
|
|
1590
1571
|
"autofocus",
|
|
@@ -1613,8 +1594,8 @@ var oo = [
|
|
|
1613
1594
|
"defer",
|
|
1614
1595
|
"disablepictureinpicture",
|
|
1615
1596
|
"disableremoteplayback"
|
|
1616
|
-
],
|
|
1617
|
-
...
|
|
1597
|
+
], el = [
|
|
1598
|
+
...io,
|
|
1618
1599
|
"formNoValidate",
|
|
1619
1600
|
"isMap",
|
|
1620
1601
|
"noModule",
|
|
@@ -1629,17 +1610,17 @@ var oo = [
|
|
|
1629
1610
|
"allowFullscreen",
|
|
1630
1611
|
"disablePictureInPicture",
|
|
1631
1612
|
"disableRemotePlayback"
|
|
1632
|
-
],
|
|
1633
|
-
function
|
|
1634
|
-
return
|
|
1613
|
+
], so = ["touchstart", "touchmove"];
|
|
1614
|
+
function ao(e) {
|
|
1615
|
+
return so.includes(e);
|
|
1635
1616
|
}
|
|
1636
|
-
var
|
|
1617
|
+
var oo = [
|
|
1637
1618
|
"$state",
|
|
1638
1619
|
"$state.raw",
|
|
1639
1620
|
"$derived",
|
|
1640
1621
|
"$derived.by"
|
|
1641
|
-
],
|
|
1642
|
-
...
|
|
1622
|
+
], tl = [
|
|
1623
|
+
...oo,
|
|
1643
1624
|
"$state.eager",
|
|
1644
1625
|
"$state.snapshot",
|
|
1645
1626
|
"$props",
|
|
@@ -1655,333 +1636,333 @@ var uo = [
|
|
|
1655
1636
|
"$inspect.trace",
|
|
1656
1637
|
"$host"
|
|
1657
1638
|
];
|
|
1658
|
-
function
|
|
1659
|
-
let t = 0, r =
|
|
1639
|
+
function lo(e) {
|
|
1640
|
+
let t = 0, r = tt(0), n;
|
|
1660
1641
|
return () => {
|
|
1661
|
-
|
|
1642
|
+
yn() && (d(r), kn(() => (t === 0 && (n = _t(() => e(() => Ht(r)))), t += 1, () => {
|
|
1662
1643
|
Le(() => {
|
|
1663
|
-
t -= 1, t === 0 && (n?.(), n = void 0,
|
|
1644
|
+
t -= 1, t === 0 && (n?.(), n = void 0, Ht(r));
|
|
1664
1645
|
});
|
|
1665
1646
|
})));
|
|
1666
1647
|
};
|
|
1667
1648
|
}
|
|
1668
|
-
var
|
|
1669
|
-
function
|
|
1670
|
-
new
|
|
1649
|
+
var fo = ln | gt;
|
|
1650
|
+
function uo(e, t, r, n) {
|
|
1651
|
+
new co(e, t, r, n);
|
|
1671
1652
|
}
|
|
1672
|
-
var
|
|
1653
|
+
var ce = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakSet(), co = class {
|
|
1673
1654
|
constructor(e, t, r, n) {
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
}))),
|
|
1655
|
+
_n(this, z), N(this, "parent", void 0), N(this, "is_pending", !1), N(this, "transform_error", void 0), S(this, ce, void 0), S(this, tn, R ? P : null), S(this, we, void 0), S(this, Yt, void 0), S(this, X, void 0), S(this, de, null), S(this, ee, null), S(this, fe, null), S(this, Ie, null), S(this, lt, 0), S(this, Je, 0), S(this, lr, !1), S(this, rn, /* @__PURE__ */ new Map()), S(this, je, null), S(this, Vn, lo(() => (E(je, this, tt(o(lt, this))), () => {
|
|
1656
|
+
E(je, this, null);
|
|
1657
|
+
}))), E(ce, this, e), E(we, this, t), E(Yt, this, (i) => {
|
|
1677
1658
|
var s = T;
|
|
1678
1659
|
s.b = this, s.f |= 128, r(i);
|
|
1679
|
-
}), this.parent = T.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i),
|
|
1660
|
+
}), this.parent = T.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), E(X, this, $n(() => {
|
|
1680
1661
|
if (R) {
|
|
1681
|
-
const i =
|
|
1682
|
-
|
|
1662
|
+
const i = fn(o(tn, this));
|
|
1663
|
+
Pr();
|
|
1683
1664
|
const s = i === "[!";
|
|
1684
1665
|
if (i.startsWith("[?")) {
|
|
1685
1666
|
const a = JSON.parse(i.slice(2));
|
|
1686
|
-
k(
|
|
1687
|
-
} else s ? k(
|
|
1688
|
-
} else k(
|
|
1689
|
-
},
|
|
1667
|
+
k(z, this, vo).call(this, a);
|
|
1668
|
+
} else s ? k(z, this, po).call(this) : k(z, this, ho).call(this);
|
|
1669
|
+
} else k(z, this, Zi).call(this);
|
|
1670
|
+
}, fo)), R && E(ce, this, P);
|
|
1690
1671
|
}
|
|
1691
1672
|
defer_effect(e) {
|
|
1692
|
-
|
|
1673
|
+
hi(e, o(rn, this));
|
|
1693
1674
|
}
|
|
1694
1675
|
is_rendered() {
|
|
1695
1676
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
1696
1677
|
}
|
|
1697
1678
|
has_pending_snippet() {
|
|
1698
|
-
return !!o(
|
|
1679
|
+
return !!o(we, this).pending;
|
|
1699
1680
|
}
|
|
1700
1681
|
update_pending_count(e, t) {
|
|
1701
|
-
k(
|
|
1702
|
-
|
|
1682
|
+
k(z, this, Ji).call(this, e, t), E(lt, this, o(lt, this) + e), !(!o(je, this) || o(lr, this)) && (E(lr, this, !0), Le(() => {
|
|
1683
|
+
E(lr, this, !1), o(je, this) && vt(o(je, this), o(lt, this));
|
|
1703
1684
|
}));
|
|
1704
1685
|
}
|
|
1705
1686
|
get_effect_pending() {
|
|
1706
|
-
return o(
|
|
1687
|
+
return o(Vn, this).call(this), d(o(je, this));
|
|
1707
1688
|
}
|
|
1708
1689
|
error(e) {
|
|
1709
|
-
if (e === ze || !o(
|
|
1710
|
-
|
|
1711
|
-
k(
|
|
1712
|
-
})) : k(
|
|
1690
|
+
if (e === ze || !o(we, this).onerror && !o(we, this).failed) throw e;
|
|
1691
|
+
M?.is_fork ? (o(de, this) && M.skip_effect(o(de, this)), o(ee, this) && M.skip_effect(o(ee, this)), o(fe, this) && M.skip_effect(o(fe, this)), M.oncommit(() => {
|
|
1692
|
+
k(z, this, Qe).call(this) || k(z, this, Kn).call(this, e);
|
|
1693
|
+
})) : k(z, this, Kn).call(this, e);
|
|
1713
1694
|
}
|
|
1714
1695
|
};
|
|
1715
|
-
function
|
|
1696
|
+
function ho() {
|
|
1716
1697
|
try {
|
|
1717
|
-
|
|
1698
|
+
E(de, this, se(() => o(Yt, this).call(this, o(ce, this))));
|
|
1718
1699
|
} catch (e) {
|
|
1719
1700
|
this.error(e);
|
|
1720
1701
|
}
|
|
1721
1702
|
}
|
|
1722
|
-
function
|
|
1723
|
-
const t = o(
|
|
1724
|
-
Le(n), t &&
|
|
1725
|
-
t(o(
|
|
1703
|
+
function vo(e) {
|
|
1704
|
+
const t = o(we, this).failed, { reset: r, invoke_onerror: n } = k(z, this, Xi).call(this, e);
|
|
1705
|
+
Le(n), t && E(fe, this, se(() => {
|
|
1706
|
+
t(o(ce, this), () => e, () => r);
|
|
1726
1707
|
}));
|
|
1727
1708
|
}
|
|
1728
|
-
function
|
|
1709
|
+
function Xi(e) {
|
|
1729
1710
|
var t = !1, r = !1;
|
|
1730
1711
|
const n = () => {
|
|
1731
|
-
if (!k(
|
|
1712
|
+
if (!k(z, this, Qe).call(this)) {
|
|
1732
1713
|
if (t) {
|
|
1733
|
-
|
|
1714
|
+
oa();
|
|
1734
1715
|
return;
|
|
1735
1716
|
}
|
|
1736
|
-
t = !0, r &&
|
|
1737
|
-
|
|
1738
|
-
}), k(
|
|
1739
|
-
k(
|
|
1717
|
+
t = !0, r && ka(), o(fe, this) !== null && nt(o(fe, this), () => {
|
|
1718
|
+
E(fe, this, null);
|
|
1719
|
+
}), k(z, this, Sn).call(this, () => {
|
|
1720
|
+
k(z, this, Zi).call(this);
|
|
1740
1721
|
});
|
|
1741
1722
|
}
|
|
1742
1723
|
};
|
|
1743
1724
|
return {
|
|
1744
1725
|
reset: n,
|
|
1745
1726
|
invoke_onerror: () => {
|
|
1746
|
-
if (!k(
|
|
1727
|
+
if (!k(z, this, Qe).call(this))
|
|
1747
1728
|
try {
|
|
1748
|
-
r = !0, o(
|
|
1729
|
+
r = !0, o(we, this).onerror?.(e, n), r = !1;
|
|
1749
1730
|
} catch (s) {
|
|
1750
|
-
|
|
1731
|
+
me(s, o(X, this) && o(X, this).parent);
|
|
1751
1732
|
}
|
|
1752
1733
|
}
|
|
1753
1734
|
};
|
|
1754
1735
|
}
|
|
1755
|
-
function
|
|
1756
|
-
return (o(X, this).f & (
|
|
1736
|
+
function Qe() {
|
|
1737
|
+
return (o(X, this).f & (oi | Yr)) !== 0;
|
|
1757
1738
|
}
|
|
1758
|
-
function
|
|
1759
|
-
const e = o(
|
|
1760
|
-
e && (this.is_pending = !0,
|
|
1761
|
-
if (!k(
|
|
1762
|
-
var t =
|
|
1763
|
-
if (t.append(r),
|
|
1739
|
+
function po() {
|
|
1740
|
+
const e = o(we, this).pending;
|
|
1741
|
+
e && (this.is_pending = !0, E(ee, this, se(() => e(o(ce, this)))), Le(() => {
|
|
1742
|
+
if (!k(z, this, Qe).call(this)) {
|
|
1743
|
+
var t = E(Ie, this, document.createDocumentFragment()), r = ne(), n = !1;
|
|
1744
|
+
if (t.append(r), E(de, this, k(z, this, Sn).call(this, () => {
|
|
1764
1745
|
try {
|
|
1765
|
-
return se(() => o(
|
|
1746
|
+
return se(() => o(Yt, this).call(this, r));
|
|
1766
1747
|
} catch (i) {
|
|
1767
1748
|
try {
|
|
1768
1749
|
this.error(i), n = !0;
|
|
1769
1750
|
} catch (s) {
|
|
1770
|
-
|
|
1751
|
+
me(s, o(X, this).parent);
|
|
1771
1752
|
}
|
|
1772
1753
|
return null;
|
|
1773
1754
|
}
|
|
1774
|
-
})), o(
|
|
1775
|
-
|
|
1755
|
+
})), o(de, this) === null) {
|
|
1756
|
+
E(Ie, this, null), n && k(z, this, Tr).call(this, M);
|
|
1776
1757
|
return;
|
|
1777
1758
|
}
|
|
1778
|
-
o(
|
|
1779
|
-
|
|
1780
|
-
}), k(
|
|
1759
|
+
o(Je, this) === 0 && (o(ce, this).before(t), E(Ie, this, null), nt(o(ee, this), () => {
|
|
1760
|
+
E(ee, this, null);
|
|
1761
|
+
}), k(z, this, Tr).call(this, M));
|
|
1781
1762
|
}
|
|
1782
1763
|
}));
|
|
1783
1764
|
}
|
|
1784
|
-
function
|
|
1765
|
+
function Zi() {
|
|
1785
1766
|
try {
|
|
1786
|
-
if (this.is_pending = this.has_pending_snippet(),
|
|
1787
|
-
o(
|
|
1788
|
-
})), o(
|
|
1789
|
-
var e =
|
|
1790
|
-
|
|
1791
|
-
const t = o(
|
|
1792
|
-
|
|
1793
|
-
} else k(
|
|
1767
|
+
if (this.is_pending = this.has_pending_snippet(), E(Je, this, 0), E(lt, this, 0), E(de, this, se(() => {
|
|
1768
|
+
o(Yt, this).call(this, o(ce, this));
|
|
1769
|
+
})), o(Je, this) > 0) {
|
|
1770
|
+
var e = E(Ie, this, document.createDocumentFragment());
|
|
1771
|
+
En(o(de, this), e);
|
|
1772
|
+
const t = o(we, this).pending;
|
|
1773
|
+
E(ee, this, se(() => t(o(ce, this))));
|
|
1774
|
+
} else k(z, this, Tr).call(this, M);
|
|
1794
1775
|
} catch (t) {
|
|
1795
1776
|
this.error(t);
|
|
1796
1777
|
}
|
|
1797
1778
|
}
|
|
1798
|
-
function
|
|
1799
|
-
this.is_pending = !1, e.
|
|
1779
|
+
function Tr(e) {
|
|
1780
|
+
this.is_pending = !1, e.transfer_reactions(o(rn, this));
|
|
1800
1781
|
}
|
|
1801
|
-
function
|
|
1802
|
-
var t = T, r =
|
|
1803
|
-
|
|
1782
|
+
function Sn(e) {
|
|
1783
|
+
var t = T, r = A, n = L;
|
|
1784
|
+
ye(o(X, this)), ae(o(X, this)), ht(o(X, this).ctx);
|
|
1804
1785
|
try {
|
|
1805
|
-
return
|
|
1786
|
+
return rt.ensure(), e();
|
|
1806
1787
|
} finally {
|
|
1807
|
-
|
|
1788
|
+
ye(t), ae(r), ht(n);
|
|
1808
1789
|
}
|
|
1809
1790
|
}
|
|
1810
|
-
function
|
|
1791
|
+
function Ji(e, t) {
|
|
1811
1792
|
if (!this.has_pending_snippet()) {
|
|
1812
1793
|
if (this.parent) {
|
|
1813
1794
|
var r;
|
|
1814
|
-
k(
|
|
1795
|
+
k(z, r = this.parent, Ji).call(r, e, t);
|
|
1815
1796
|
}
|
|
1816
1797
|
return;
|
|
1817
1798
|
}
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
}), o(
|
|
1799
|
+
E(Je, this, o(Je, this) + e), o(Je, this) === 0 && (k(z, this, Tr).call(this, t), o(ee, this) && nt(o(ee, this), () => {
|
|
1800
|
+
E(ee, this, null);
|
|
1801
|
+
}), o(Ie, this) && (o(ce, this).before(o(Ie, this)), E(Ie, this, null)));
|
|
1821
1802
|
}
|
|
1822
|
-
function
|
|
1823
|
-
o(
|
|
1824
|
-
let t = o(
|
|
1803
|
+
function Kn(e) {
|
|
1804
|
+
o(de, this) && (V(o(de, this)), E(de, this, null)), o(ee, this) && (V(o(ee, this)), E(ee, this, null)), o(fe, this) && (V(o(fe, this)), E(fe, this, null)), R && (Z(o(tn, this)), la(), Z(gr()));
|
|
1805
|
+
let t = o(we, this).failed;
|
|
1825
1806
|
const r = (n) => {
|
|
1826
|
-
if (k(
|
|
1827
|
-
const { reset: i, invoke_onerror: s } = k(
|
|
1828
|
-
s(), t && !k(
|
|
1807
|
+
if (k(z, this, Qe).call(this)) return;
|
|
1808
|
+
const { reset: i, invoke_onerror: s } = k(z, this, Xi).call(this, n);
|
|
1809
|
+
s(), t && !k(z, this, Qe).call(this) && E(fe, this, k(z, this, Sn).call(this, () => {
|
|
1829
1810
|
try {
|
|
1830
1811
|
return se(() => {
|
|
1831
1812
|
var a = T;
|
|
1832
|
-
a.b = this, a.f |= 128, t(o(
|
|
1813
|
+
a.b = this, a.f |= 128, t(o(ce, this), () => n, () => i);
|
|
1833
1814
|
});
|
|
1834
1815
|
} catch (a) {
|
|
1835
|
-
return
|
|
1816
|
+
return me(a, o(X, this).parent), null;
|
|
1836
1817
|
}
|
|
1837
1818
|
}));
|
|
1838
1819
|
};
|
|
1839
1820
|
Le(() => {
|
|
1840
|
-
if (!k(
|
|
1821
|
+
if (!k(z, this, Qe).call(this)) {
|
|
1841
1822
|
var n;
|
|
1842
1823
|
try {
|
|
1843
1824
|
n = this.transform_error(e);
|
|
1844
1825
|
} catch (i) {
|
|
1845
|
-
|
|
1826
|
+
me(i, o(X, this) && o(X, this).parent);
|
|
1846
1827
|
return;
|
|
1847
1828
|
}
|
|
1848
|
-
n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) =>
|
|
1829
|
+
n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) => me(i, o(X, this) && o(X, this).parent)) : r(n);
|
|
1849
1830
|
}
|
|
1850
1831
|
});
|
|
1851
1832
|
}
|
|
1852
|
-
var
|
|
1853
|
-
function
|
|
1833
|
+
var Xn = !0;
|
|
1834
|
+
function Nt(e, t) {
|
|
1854
1835
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1855
|
-
r !== (e[
|
|
1836
|
+
r !== (e[dr] ?? (e[dr] = e.nodeValue)) && (e[dr] = r, e.nodeValue = `${r}`);
|
|
1856
1837
|
}
|
|
1857
|
-
function
|
|
1858
|
-
return
|
|
1838
|
+
function Qi(e, t) {
|
|
1839
|
+
return es(e, t);
|
|
1859
1840
|
}
|
|
1860
|
-
function
|
|
1861
|
-
|
|
1841
|
+
function _o(e, t) {
|
|
1842
|
+
Qr(), t.intro = t.intro ?? !1;
|
|
1862
1843
|
const r = t.target, n = R, i = P;
|
|
1863
1844
|
try {
|
|
1864
|
-
for (var s = /* @__PURE__ */
|
|
1845
|
+
for (var s = /* @__PURE__ */ We(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */ ke(s);
|
|
1865
1846
|
if (!s) throw ze;
|
|
1866
|
-
|
|
1867
|
-
const a =
|
|
1847
|
+
Se(!0), Z(s);
|
|
1848
|
+
const a = es(e, {
|
|
1868
1849
|
...t,
|
|
1869
1850
|
anchor: s
|
|
1870
1851
|
});
|
|
1871
|
-
return
|
|
1852
|
+
return Se(!1), a;
|
|
1872
1853
|
} catch (a) {
|
|
1873
1854
|
if (a instanceof Error && a.message.split(`
|
|
1874
1855
|
`).some((l) => l.startsWith("https://svelte.dev/e/"))) throw a;
|
|
1875
|
-
return a !== ze && console.warn("Failed to hydrate: ", a), t.recover === !1 &&
|
|
1856
|
+
return a !== ze && console.warn("Failed to hydrate: ", a), t.recover === !1 && ga(), Qr(), Ci(r), Se(!1), Qi(e, t);
|
|
1876
1857
|
} finally {
|
|
1877
|
-
|
|
1858
|
+
Se(n), Z(i);
|
|
1878
1859
|
}
|
|
1879
1860
|
}
|
|
1880
|
-
var
|
|
1881
|
-
function
|
|
1882
|
-
|
|
1883
|
-
var u = void 0, v =
|
|
1861
|
+
var fr = /* @__PURE__ */ new Map();
|
|
1862
|
+
function es(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: a = !0, transformError: l }) {
|
|
1863
|
+
Qr();
|
|
1864
|
+
var u = void 0, v = Ga(() => {
|
|
1884
1865
|
var _ = r ?? t.appendChild(ne());
|
|
1885
|
-
|
|
1866
|
+
uo(_, { pending: () => {
|
|
1886
1867
|
} }, (f) => {
|
|
1887
|
-
|
|
1888
|
-
var g =
|
|
1889
|
-
if (s && (g.c = s), i && (n.$$events = i), R &&
|
|
1890
|
-
throw
|
|
1891
|
-
|
|
1868
|
+
un({});
|
|
1869
|
+
var g = L;
|
|
1870
|
+
if (s && (g.c = s), i && (n.$$events = i), R && dt(f, null), Xn = a, u = e(f, n) || dn(), Xn = !0, R && (T.nodes.end = P, P === null || P.nodeType !== 8 || P.data !== "]"))
|
|
1871
|
+
throw Rr(), ze;
|
|
1872
|
+
cn();
|
|
1892
1873
|
}, l);
|
|
1893
1874
|
var c = /* @__PURE__ */ new Set(), h = (f) => {
|
|
1894
1875
|
for (var g = 0; g < f.length; g++) {
|
|
1895
1876
|
var b = f[g];
|
|
1896
1877
|
if (!c.has(b)) {
|
|
1897
1878
|
c.add(b);
|
|
1898
|
-
var p =
|
|
1879
|
+
var p = ao(b);
|
|
1899
1880
|
for (const O of [t, document]) {
|
|
1900
|
-
var m =
|
|
1901
|
-
m === void 0 && (m = /* @__PURE__ */ new Map(),
|
|
1881
|
+
var m = fr.get(O);
|
|
1882
|
+
m === void 0 && (m = /* @__PURE__ */ new Map(), fr.set(O, m));
|
|
1902
1883
|
var y = m.get(b);
|
|
1903
|
-
y === void 0 ? (O.addEventListener(b,
|
|
1884
|
+
y === void 0 ? (O.addEventListener(b, Gn, { passive: p }), m.set(b, 1)) : m.set(b, y + 1);
|
|
1904
1885
|
}
|
|
1905
1886
|
}
|
|
1906
1887
|
}
|
|
1907
1888
|
};
|
|
1908
|
-
return h(
|
|
1889
|
+
return h(Mr(Vi)), en.add(h), () => {
|
|
1909
1890
|
for (var f of c) for (const p of [t, document]) {
|
|
1910
|
-
var g =
|
|
1911
|
-
--b == 0 ? (p.removeEventListener(f,
|
|
1891
|
+
var g = fr.get(p), b = g.get(f);
|
|
1892
|
+
--b == 0 ? (p.removeEventListener(f, Gn), g.delete(f), g.size === 0 && fr.delete(p)) : g.set(f, b);
|
|
1912
1893
|
}
|
|
1913
|
-
|
|
1894
|
+
en.delete(h), _ !== r && _.parentNode?.removeChild(_);
|
|
1914
1895
|
};
|
|
1915
1896
|
});
|
|
1916
|
-
return
|
|
1897
|
+
return nn.set(u, v), u;
|
|
1917
1898
|
}
|
|
1918
|
-
var
|
|
1919
|
-
function
|
|
1920
|
-
const r =
|
|
1921
|
-
return r ? (
|
|
1899
|
+
var nn = /* @__PURE__ */ new WeakMap();
|
|
1900
|
+
function go(e, t) {
|
|
1901
|
+
const r = nn.get(e);
|
|
1902
|
+
return r ? (nn.delete(e), r(t)) : Promise.resolve();
|
|
1922
1903
|
}
|
|
1923
|
-
var
|
|
1904
|
+
var xe = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), Dr = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakMap(), wo = class {
|
|
1924
1905
|
constructor(e, t = !0) {
|
|
1925
|
-
|
|
1926
|
-
if (o(
|
|
1927
|
-
var n = o(
|
|
1906
|
+
N(this, "anchor", void 0), S(this, xe, /* @__PURE__ */ new Map()), S(this, Ae, /* @__PURE__ */ new Map()), S(this, oe, /* @__PURE__ */ new Map()), S(this, xt, /* @__PURE__ */ new Set()), S(this, Hr, !0), S(this, Dr, (r) => {
|
|
1907
|
+
if (o(xe, this).has(r)) {
|
|
1908
|
+
var n = o(xe, this).get(r), i = o(Ae, this).get(n);
|
|
1928
1909
|
if (i)
|
|
1929
|
-
|
|
1910
|
+
Sr(i), o(xt, this).delete(n);
|
|
1930
1911
|
else {
|
|
1931
1912
|
var s = o(oe, this).get(n);
|
|
1932
|
-
s && (
|
|
1913
|
+
s && (Sr(s.effect), o(Ae, this).set(n, s.effect), o(oe, this).delete(n), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), i = s.effect);
|
|
1933
1914
|
}
|
|
1934
|
-
for (const [a, l] of o(
|
|
1935
|
-
if (o(
|
|
1915
|
+
for (const [a, l] of o(xe, this)) {
|
|
1916
|
+
if (o(xe, this).delete(a), a === r) break;
|
|
1936
1917
|
const u = o(oe, this).get(l);
|
|
1937
1918
|
u && (V(u.effect), o(oe, this).delete(l));
|
|
1938
1919
|
}
|
|
1939
|
-
for (const [a, l] of o(
|
|
1940
|
-
if (a === n || o(
|
|
1920
|
+
for (const [a, l] of o(Ae, this)) {
|
|
1921
|
+
if (a === n || o(xt, this).has(a)) continue;
|
|
1941
1922
|
const u = () => {
|
|
1942
|
-
if (Array.from(o(
|
|
1923
|
+
if (Array.from(o(xe, this).values()).includes(a)) {
|
|
1943
1924
|
var v = document.createDocumentFragment();
|
|
1944
|
-
|
|
1925
|
+
En(l, v), v.append(ne()), o(oe, this).set(a, {
|
|
1945
1926
|
effect: l,
|
|
1946
1927
|
fragment: v
|
|
1947
1928
|
});
|
|
1948
1929
|
} else V(l);
|
|
1949
|
-
o(
|
|
1930
|
+
o(xt, this).delete(a), o(Ae, this).delete(a);
|
|
1950
1931
|
};
|
|
1951
|
-
o(
|
|
1932
|
+
o(Hr, this) || !i ? (o(xt, this).add(a), nt(l, u, !1)) : u();
|
|
1952
1933
|
}
|
|
1953
1934
|
}
|
|
1954
|
-
}), S(this,
|
|
1955
|
-
o(
|
|
1956
|
-
const n = Array.from(o(
|
|
1935
|
+
}), S(this, Zn, (r) => {
|
|
1936
|
+
o(xe, this).delete(r);
|
|
1937
|
+
const n = Array.from(o(xe, this).values());
|
|
1957
1938
|
for (const [i, s] of o(oe, this)) n.includes(i) || (V(s.effect), o(oe, this).delete(i));
|
|
1958
|
-
}), this.anchor = e,
|
|
1939
|
+
}), this.anchor = e, E(Hr, this, t);
|
|
1959
1940
|
}
|
|
1960
1941
|
ensure(e, t) {
|
|
1961
|
-
var r =
|
|
1962
|
-
if (t && !o(
|
|
1942
|
+
var r = M, n = Ni();
|
|
1943
|
+
if (t && !o(Ae, this).has(e) && !o(oe, this).has(e))
|
|
1963
1944
|
if (n) {
|
|
1964
1945
|
var i = document.createDocumentFragment(), s = ne();
|
|
1965
1946
|
i.append(s), o(oe, this).set(e, {
|
|
1966
1947
|
effect: se(() => t(s)),
|
|
1967
1948
|
fragment: i
|
|
1968
1949
|
});
|
|
1969
|
-
} else o(
|
|
1970
|
-
if (o(
|
|
1971
|
-
for (const [a, l] of o(
|
|
1950
|
+
} else o(Ae, this).set(e, se(() => t(this.anchor)));
|
|
1951
|
+
if (o(xe, this).set(r, e), n) {
|
|
1952
|
+
for (const [a, l] of o(Ae, this)) a === e ? r.unskip_effect(l) : r.skip_effect(l);
|
|
1972
1953
|
for (const [a, l] of o(oe, this)) a === e ? r.unskip_effect(l.effect) : r.skip_effect(l.effect);
|
|
1973
|
-
r.oncommit(o(
|
|
1954
|
+
r.oncommit(o(Dr, this)), r.ondiscard(o(Zn, this));
|
|
1974
1955
|
} else
|
|
1975
|
-
R && (this.anchor = P), o(
|
|
1956
|
+
R && (this.anchor = P), o(Dr, this).call(this, r);
|
|
1976
1957
|
}
|
|
1977
1958
|
};
|
|
1978
|
-
function
|
|
1979
|
-
|
|
1980
|
-
const t =
|
|
1959
|
+
function bo(e) {
|
|
1960
|
+
L === null && ua("onMount"), Vt && L.l !== null ? mo(L).m.push(e) : Re(() => {
|
|
1961
|
+
const t = _t(e);
|
|
1981
1962
|
if (typeof t == "function") return t;
|
|
1982
1963
|
});
|
|
1983
1964
|
}
|
|
1984
|
-
function
|
|
1965
|
+
function mo(e) {
|
|
1985
1966
|
var t = e.l;
|
|
1986
1967
|
return t.u ?? (t.u = {
|
|
1987
1968
|
a: [],
|
|
@@ -1989,39 +1970,39 @@ function $o(e) {
|
|
|
1989
1970
|
m: []
|
|
1990
1971
|
});
|
|
1991
1972
|
}
|
|
1992
|
-
function
|
|
1973
|
+
function ts(e, t, r = !1) {
|
|
1993
1974
|
var n;
|
|
1994
|
-
R && (n = P,
|
|
1995
|
-
var i = new
|
|
1975
|
+
R && (n = P, Pr());
|
|
1976
|
+
var i = new wo(e), s = r ? ln : 0;
|
|
1996
1977
|
function a(l, u) {
|
|
1997
1978
|
if (R) {
|
|
1998
|
-
var v =
|
|
1979
|
+
var v = fn(n);
|
|
1999
1980
|
if (l !== parseInt(v.substring(1))) {
|
|
2000
|
-
var _ =
|
|
2001
|
-
Z(_), i.anchor = _,
|
|
1981
|
+
var _ = gr();
|
|
1982
|
+
Z(_), i.anchor = _, Se(!1), i.ensure(l, u), Se(!0);
|
|
2002
1983
|
return;
|
|
2003
1984
|
}
|
|
2004
1985
|
}
|
|
2005
1986
|
i.ensure(l, u);
|
|
2006
1987
|
}
|
|
2007
|
-
|
|
1988
|
+
$n(() => {
|
|
2008
1989
|
var l = !1;
|
|
2009
1990
|
t((u, v = 0) => {
|
|
2010
1991
|
l = !0, a(v, u);
|
|
2011
1992
|
}), l || a(-1, null);
|
|
2012
1993
|
}, s);
|
|
2013
1994
|
}
|
|
2014
|
-
function
|
|
1995
|
+
function yo(e, t) {
|
|
2015
1996
|
return t;
|
|
2016
1997
|
}
|
|
2017
|
-
function
|
|
1998
|
+
function ko(e, t, r) {
|
|
2018
1999
|
for (var n = [], i = t.length, s, a = t.length, l = 0; l < i; l++) {
|
|
2019
2000
|
let c = t[l];
|
|
2020
|
-
|
|
2001
|
+
nt(c, () => {
|
|
2021
2002
|
if (s) {
|
|
2022
2003
|
if (s.pending.delete(c), s.done.add(c), s.pending.size === 0) {
|
|
2023
2004
|
var h = e.outrogroups;
|
|
2024
|
-
|
|
2005
|
+
sn(e, Mr(s.done)), h.delete(s), h.size === 0 && (e.outrogroups = null);
|
|
2025
2006
|
}
|
|
2026
2007
|
} else a -= 1;
|
|
2027
2008
|
}, !1);
|
|
@@ -2030,16 +2011,16 @@ function Eo(e, t, r) {
|
|
|
2030
2011
|
var u = n.length === 0 && r !== null && e.pending.size === 0;
|
|
2031
2012
|
if (u) {
|
|
2032
2013
|
var v = r, _ = v.parentNode;
|
|
2033
|
-
|
|
2014
|
+
Ci(_), _.append(v), e.items.clear();
|
|
2034
2015
|
}
|
|
2035
|
-
|
|
2016
|
+
sn(e, t, !u);
|
|
2036
2017
|
} else
|
|
2037
2018
|
s = {
|
|
2038
2019
|
pending: new Set(t),
|
|
2039
2020
|
done: /* @__PURE__ */ new Set()
|
|
2040
2021
|
}, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(s);
|
|
2041
2022
|
}
|
|
2042
|
-
function
|
|
2023
|
+
function sn(e, t, r = !0) {
|
|
2043
2024
|
var n;
|
|
2044
2025
|
if (e.pending.size > 0) {
|
|
2045
2026
|
n = /* @__PURE__ */ new Set();
|
|
@@ -2048,29 +2029,29 @@ function un(e, t, r = !0) {
|
|
|
2048
2029
|
for (var i = 0; i < t.length; i++) {
|
|
2049
2030
|
var s = t[i];
|
|
2050
2031
|
if (n?.has(s)) {
|
|
2051
|
-
s.f |=
|
|
2032
|
+
s.f |= zt;
|
|
2052
2033
|
const a = document.createDocumentFragment();
|
|
2053
|
-
|
|
2034
|
+
En(s, a);
|
|
2054
2035
|
} else V(t[i], r);
|
|
2055
2036
|
}
|
|
2056
2037
|
}
|
|
2057
|
-
var
|
|
2058
|
-
function
|
|
2038
|
+
var ur;
|
|
2039
|
+
function jr(e, t, r, n, i, s = null) {
|
|
2059
2040
|
var a = e, l = /* @__PURE__ */ new Map();
|
|
2060
2041
|
if ((t & 4) !== 0) {
|
|
2061
2042
|
var u = e;
|
|
2062
|
-
a = R ? Z(/* @__PURE__ */
|
|
2043
|
+
a = R ? Z(/* @__PURE__ */ We(u)) : u.appendChild(ne());
|
|
2063
2044
|
}
|
|
2064
|
-
R &&
|
|
2065
|
-
var v = null, _ = /* @__PURE__ */
|
|
2045
|
+
R && Pr();
|
|
2046
|
+
var v = null, _ = /* @__PURE__ */ vn(() => {
|
|
2066
2047
|
var p = r();
|
|
2067
|
-
return
|
|
2048
|
+
return ii(p) ? p : p == null ? [] : Mr(p);
|
|
2068
2049
|
}), c = /* @__PURE__ */ new Map(), h = !0;
|
|
2069
2050
|
function f(p) {
|
|
2070
2051
|
if ((b.effect.f & 16384) === 0) {
|
|
2071
2052
|
b.pending.delete(p);
|
|
2072
2053
|
var m = d(_);
|
|
2073
|
-
b.fallback = v,
|
|
2054
|
+
b.fallback = v, $o(b, m, a, t, n), v !== null && (m.length === 0 ? (v.f & 33554432) === 0 ? Sr(v) : (v.f ^= zt, It(v, null, a)) : nt(v, () => {
|
|
2074
2055
|
v = null;
|
|
2075
2056
|
}));
|
|
2076
2057
|
}
|
|
@@ -2079,24 +2060,24 @@ function Ur(e, t, r, n, i, s = null) {
|
|
|
2079
2060
|
b.pending.delete(p);
|
|
2080
2061
|
}
|
|
2081
2062
|
var b = {
|
|
2082
|
-
effect:
|
|
2063
|
+
effect: $n(() => {
|
|
2083
2064
|
var p = d(_), m = p.length;
|
|
2084
2065
|
let y = !1;
|
|
2085
|
-
R &&
|
|
2086
|
-
for (var O = /* @__PURE__ */ new Set(),
|
|
2087
|
-
R && P.nodeType === 8 && P.data === "]" && (a = P, y = !0,
|
|
2088
|
-
var te = p[
|
|
2066
|
+
R && fn(a) === "[!" != (m === 0) && (a = gr(), Z(a), Se(!1), y = !0);
|
|
2067
|
+
for (var O = /* @__PURE__ */ new Set(), $ = M, W = Ni(), H = 0; H < m; H += 1) {
|
|
2068
|
+
R && P.nodeType === 8 && P.data === "]" && (a = P, y = !0, Se(!1));
|
|
2069
|
+
var te = p[H], he = n(te, H);
|
|
2089
2070
|
if (0)
|
|
2090
|
-
var
|
|
2091
|
-
var j = h ? null : l.get(
|
|
2092
|
-
j ? (j.v &&
|
|
2071
|
+
var wt;
|
|
2072
|
+
var j = h ? null : l.get(he);
|
|
2073
|
+
j ? (j.v && vt(j.v, te), j.i && vt(j.i, H), W && $.unskip_effect(j.e)) : (j = xo(l, h ? a : ur ?? (ur = ne()), te, he, H, i, t, r), h || (j.e.f |= zt), l.set(he, j)), O.add(he);
|
|
2093
2074
|
}
|
|
2094
|
-
if (m === 0 && s && !v && (h ? v = se(() => s(a)) : (v = se(() => s(
|
|
2095
|
-
if (c.set(
|
|
2096
|
-
for (const [
|
|
2097
|
-
|
|
2098
|
-
} else f(
|
|
2099
|
-
y &&
|
|
2075
|
+
if (m === 0 && s && !v && (h ? v = se(() => s(a)) : (v = se(() => s(ur ?? (ur = ne()))), v.f |= zt)), m > O.size && da("", "", ""), R && m > 0 && Z(gr()), !h)
|
|
2076
|
+
if (c.set($, O), W) {
|
|
2077
|
+
for (const [Jt, Qt] of l) O.has(Jt) || $.skip_effect(Qt.e);
|
|
2078
|
+
$.oncommit(f), $.ondiscard(g);
|
|
2079
|
+
} else f($);
|
|
2080
|
+
y && Se(!0), d(_);
|
|
2100
2081
|
}),
|
|
2101
2082
|
flags: t,
|
|
2102
2083
|
items: l,
|
|
@@ -2106,45 +2087,45 @@ function Ur(e, t, r, n, i, s = null) {
|
|
|
2106
2087
|
};
|
|
2107
2088
|
h = !1, R && (a = P);
|
|
2108
2089
|
}
|
|
2109
|
-
function
|
|
2090
|
+
function Et(e) {
|
|
2110
2091
|
for (; e !== null && (e.f & 32) === 0; ) e = e.next;
|
|
2111
2092
|
return e;
|
|
2112
2093
|
}
|
|
2113
|
-
function
|
|
2114
|
-
var s = (n & 8) !== 0, a = t.length, l = e.items, u =
|
|
2094
|
+
function $o(e, t, r, n, i) {
|
|
2095
|
+
var s = (n & 8) !== 0, a = t.length, l = e.items, u = Et(e.effect.first), v, _ = null, c, h = [], f = [], g, b, p, m;
|
|
2115
2096
|
if (s) for (m = 0; m < a; m += 1)
|
|
2116
2097
|
g = t[m], b = i(g, m), p = l.get(b).e, (p.f & 33554432) === 0 && (p.nodes?.a?.measure(), (c ?? (c = /* @__PURE__ */ new Set())).add(p));
|
|
2117
2098
|
for (m = 0; m < a; m += 1) {
|
|
2118
2099
|
if (g = t[m], b = i(g, m), p = l.get(b).e, e.outrogroups !== null) for (const j of e.outrogroups)
|
|
2119
2100
|
j.pending.delete(p), j.done.delete(p);
|
|
2120
|
-
if ((p.f & 8192) !== 0 && (
|
|
2121
|
-
if (p.f ^=
|
|
2101
|
+
if ((p.f & 8192) !== 0 && (Sr(p), s && (p.nodes?.a?.unfix(), (c ?? (c = /* @__PURE__ */ new Set())).delete(p))), (p.f & 33554432) !== 0)
|
|
2102
|
+
if (p.f ^= zt, p === u) It(p, null, r);
|
|
2122
2103
|
else {
|
|
2123
2104
|
var y = _ ? _.next : u;
|
|
2124
|
-
p === e.effect.last && (e.effect.last = p.prev), p.prev && (p.prev.next = p.next), p.next && (p.next.prev = p.prev),
|
|
2105
|
+
p === e.effect.last && (e.effect.last = p.prev), p.prev && (p.prev.next = p.next), p.next && (p.next.prev = p.prev), Me(e, _, p), Me(e, p, y), It(p, y, r), _ = p, h = [], f = [], u = Et(_.next);
|
|
2125
2106
|
continue;
|
|
2126
2107
|
}
|
|
2127
2108
|
if (p !== u) {
|
|
2128
2109
|
if (v !== void 0 && v.has(p)) {
|
|
2129
2110
|
if (h.length < f.length) {
|
|
2130
|
-
var O = f[0],
|
|
2111
|
+
var O = f[0], $;
|
|
2131
2112
|
_ = O.prev;
|
|
2132
|
-
var
|
|
2133
|
-
for (
|
|
2134
|
-
for (
|
|
2135
|
-
|
|
2113
|
+
var W = h[0], H = h[h.length - 1];
|
|
2114
|
+
for ($ = 0; $ < h.length; $ += 1) It(h[$], O, r);
|
|
2115
|
+
for ($ = 0; $ < f.length; $ += 1) v.delete(f[$]);
|
|
2116
|
+
Me(e, W.prev, H.next), Me(e, _, W), Me(e, H, O), u = O, _ = H, m -= 1, h = [], f = [];
|
|
2136
2117
|
} else
|
|
2137
|
-
v.delete(p),
|
|
2118
|
+
v.delete(p), It(p, u, r), Me(e, p.prev, p.next), Me(e, p, _ === null ? e.effect.first : _.next), Me(e, _, p), _ = p;
|
|
2138
2119
|
continue;
|
|
2139
2120
|
}
|
|
2140
2121
|
for (h = [], f = []; u !== null && u !== p; )
|
|
2141
|
-
(v ?? (v = /* @__PURE__ */ new Set())).add(u), f.push(u), u =
|
|
2122
|
+
(v ?? (v = /* @__PURE__ */ new Set())).add(u), f.push(u), u = Et(u.next);
|
|
2142
2123
|
if (u === null) continue;
|
|
2143
2124
|
}
|
|
2144
|
-
(p.f & 33554432) === 0 && h.push(p), _ = p, u =
|
|
2125
|
+
(p.f & 33554432) === 0 && h.push(p), _ = p, u = Et(p.next);
|
|
2145
2126
|
}
|
|
2146
2127
|
if (e.outrogroups !== null) {
|
|
2147
|
-
for (const j of e.outrogroups) j.pending.size === 0 && (
|
|
2128
|
+
for (const j of e.outrogroups) j.pending.size === 0 && (sn(e, Mr(j.done)), e.outrogroups?.delete(j));
|
|
2148
2129
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2149
2130
|
}
|
|
2150
2131
|
if (u !== null || v !== void 0) {
|
|
@@ -2152,15 +2133,15 @@ function So(e, t, r, n, i) {
|
|
|
2152
2133
|
if (v !== void 0)
|
|
2153
2134
|
for (p of v) (p.f & 8192) === 0 && te.push(p);
|
|
2154
2135
|
for (; u !== null; )
|
|
2155
|
-
(u.f & 8192) === 0 && u !== e.fallback && te.push(u), u =
|
|
2156
|
-
var
|
|
2157
|
-
if (
|
|
2158
|
-
var
|
|
2136
|
+
(u.f & 8192) === 0 && u !== e.fallback && te.push(u), u = Et(u.next);
|
|
2137
|
+
var he = te.length;
|
|
2138
|
+
if (he > 0) {
|
|
2139
|
+
var wt = (n & 4) !== 0 && a === 0 ? r : null;
|
|
2159
2140
|
if (s) {
|
|
2160
|
-
for (m = 0; m <
|
|
2161
|
-
for (m = 0; m <
|
|
2141
|
+
for (m = 0; m < he; m += 1) te[m].nodes?.a?.measure();
|
|
2142
|
+
for (m = 0; m < he; m += 1) te[m].nodes?.a?.fix();
|
|
2162
2143
|
}
|
|
2163
|
-
|
|
2144
|
+
ko(e, te, wt);
|
|
2164
2145
|
}
|
|
2165
2146
|
}
|
|
2166
2147
|
s && Le(() => {
|
|
@@ -2168,8 +2149,8 @@ function So(e, t, r, n, i) {
|
|
|
2168
2149
|
for (p of c) p.nodes?.a?.apply();
|
|
2169
2150
|
});
|
|
2170
2151
|
}
|
|
2171
|
-
function
|
|
2172
|
-
var u = (a & 1) !== 0 ? (a & 16) === 0 ? /* @__PURE__ */
|
|
2152
|
+
function xo(e, t, r, n, i, s, a, l) {
|
|
2153
|
+
var u = (a & 1) !== 0 ? (a & 16) === 0 ? /* @__PURE__ */ Ai(r, !1, !1) : tt(r) : null, v = (a & 2) !== 0 ? tt(i) : null;
|
|
2173
2154
|
return {
|
|
2174
2155
|
v: u,
|
|
2175
2156
|
i: v,
|
|
@@ -2178,42 +2159,42 @@ function To(e, t, r, n, i, s, a, l) {
|
|
|
2178
2159
|
}))
|
|
2179
2160
|
};
|
|
2180
2161
|
}
|
|
2181
|
-
function
|
|
2162
|
+
function It(e, t, r) {
|
|
2182
2163
|
if (e.nodes)
|
|
2183
2164
|
for (var n = e.nodes.start, i = e.nodes.end, s = t && (t.f & 33554432) === 0 ? t.nodes.start : r; n !== null; ) {
|
|
2184
|
-
var a = /* @__PURE__ */
|
|
2165
|
+
var a = /* @__PURE__ */ ke(n);
|
|
2185
2166
|
if (s.before(n), n === i) return;
|
|
2186
2167
|
n = a;
|
|
2187
2168
|
}
|
|
2188
2169
|
}
|
|
2189
|
-
function
|
|
2170
|
+
function Me(e, t, r) {
|
|
2190
2171
|
t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
|
|
2191
2172
|
}
|
|
2192
|
-
function
|
|
2193
|
-
|
|
2173
|
+
function rs(e, t) {
|
|
2174
|
+
zi(() => {
|
|
2194
2175
|
e = T?.parent?.nodes?.start ?? e;
|
|
2195
2176
|
var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
2196
2177
|
if (!n.querySelector("#" + t.hash)) {
|
|
2197
|
-
const i =
|
|
2178
|
+
const i = bn("style");
|
|
2198
2179
|
i.id = t.hash, i.textContent = t.code, n.appendChild(i);
|
|
2199
2180
|
}
|
|
2200
2181
|
});
|
|
2201
2182
|
}
|
|
2202
|
-
var
|
|
2183
|
+
var Jn = [...`
|
|
2203
2184
|
\r\f \v\uFEFF`];
|
|
2204
|
-
function
|
|
2185
|
+
function Eo(e, t, r) {
|
|
2205
2186
|
var n = e == null ? "" : "" + e;
|
|
2206
2187
|
if (t && (n = n ? n + " " + t : t), r) {
|
|
2207
2188
|
for (var i of Object.keys(r)) if (r[i]) n = n ? n + " " + i : i;
|
|
2208
2189
|
else if (n.length)
|
|
2209
2190
|
for (var s = i.length, a = 0; (a = n.indexOf(i, a)) >= 0; ) {
|
|
2210
2191
|
var l = a + s;
|
|
2211
|
-
(a === 0 ||
|
|
2192
|
+
(a === 0 || Jn.includes(n[a - 1])) && (l === n.length || Jn.includes(n[l])) ? n = (a === 0 ? "" : n.substring(0, a)) + n.substring(l + 1) : a = l;
|
|
2212
2193
|
}
|
|
2213
2194
|
}
|
|
2214
2195
|
return n === "" ? null : n;
|
|
2215
2196
|
}
|
|
2216
|
-
function
|
|
2197
|
+
function Qn(e, t = !1) {
|
|
2217
2198
|
var r = t ? " !important;" : ";", n = "";
|
|
2218
2199
|
for (var i of Object.keys(e)) {
|
|
2219
2200
|
var s = e[i];
|
|
@@ -2221,16 +2202,16 @@ function ii(e, t = !1) {
|
|
|
2221
2202
|
}
|
|
2222
2203
|
return n;
|
|
2223
2204
|
}
|
|
2224
|
-
function
|
|
2205
|
+
function Fr(e) {
|
|
2225
2206
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
2226
2207
|
}
|
|
2227
|
-
function
|
|
2208
|
+
function So(e, t) {
|
|
2228
2209
|
if (t) {
|
|
2229
2210
|
var r = "", n, i;
|
|
2230
2211
|
if (Array.isArray(t) ? (n = t[0], i = t[1]) : n = t, e) {
|
|
2231
2212
|
e = String(e).replaceAll(/\/\*.*?\*\//g, "").trim();
|
|
2232
2213
|
var s = !1, a = 0, l = !1, u = [];
|
|
2233
|
-
n && u.push(...Object.keys(n).map(
|
|
2214
|
+
n && u.push(...Object.keys(n).map(Fr)), i && u.push(...Object.keys(i).map(Fr));
|
|
2234
2215
|
var v = 0, _ = -1;
|
|
2235
2216
|
const b = e.length;
|
|
2236
2217
|
for (var c = 0; c < b; c++) {
|
|
@@ -2239,7 +2220,7 @@ function Mo(e, t) {
|
|
|
2239
2220
|
if (h === ":" && _ === -1) _ = c;
|
|
2240
2221
|
else if (h === ";" || c === b - 1) {
|
|
2241
2222
|
if (_ !== -1) {
|
|
2242
|
-
var f =
|
|
2223
|
+
var f = Fr(e.substring(v, _).trim());
|
|
2243
2224
|
if (!u.includes(f)) {
|
|
2244
2225
|
h !== ";" && c++;
|
|
2245
2226
|
var g = e.substring(v, c).trim();
|
|
@@ -2251,100 +2232,101 @@ function Mo(e, t) {
|
|
|
2251
2232
|
}
|
|
2252
2233
|
}
|
|
2253
2234
|
}
|
|
2254
|
-
return n && (r +=
|
|
2235
|
+
return n && (r += Qn(n)), i && (r += Qn(i, !0)), r = r.trim(), r === "" ? null : r;
|
|
2255
2236
|
}
|
|
2256
2237
|
return e == null ? null : String(e);
|
|
2257
2238
|
}
|
|
2258
|
-
function
|
|
2259
|
-
var a = e[
|
|
2239
|
+
function St(e, t, r, n, i, s) {
|
|
2240
|
+
var a = e[Vr];
|
|
2260
2241
|
if (R || a !== r || a === void 0) {
|
|
2261
|
-
var l =
|
|
2262
|
-
(!R || l !== e.getAttribute("class")) && (l == null ? e.removeAttribute("class") : t ? e.className = l : e.setAttribute("class", l)), e[
|
|
2242
|
+
var l = Eo(r, n, s);
|
|
2243
|
+
(!R || l !== e.getAttribute("class")) && (l == null ? e.removeAttribute("class") : t ? e.className = l : e.setAttribute("class", l)), e[Vr] = r;
|
|
2263
2244
|
} else if (s && i !== s) for (var u in s) {
|
|
2264
2245
|
var v = !!s[u];
|
|
2265
2246
|
(i == null || v !== !!i[u]) && e.classList.toggle(u, v);
|
|
2266
2247
|
}
|
|
2267
2248
|
return s;
|
|
2268
2249
|
}
|
|
2269
|
-
function
|
|
2250
|
+
function Br(e, t = {}, r, n) {
|
|
2270
2251
|
for (var i in r) {
|
|
2271
2252
|
var s = r[i];
|
|
2272
2253
|
t[i] !== s && (r[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, s, n));
|
|
2273
2254
|
}
|
|
2274
2255
|
}
|
|
2275
|
-
function
|
|
2276
|
-
var i = e[
|
|
2256
|
+
function To(e, t, r, n) {
|
|
2257
|
+
var i = e[Kr];
|
|
2277
2258
|
if (R || i !== t) {
|
|
2278
|
-
var s =
|
|
2279
|
-
(!R || s !== e.getAttribute("style")) && (s == null ? e.removeAttribute("style") : e.style.cssText = s), e[
|
|
2280
|
-
} else n && (Array.isArray(n) ? (
|
|
2259
|
+
var s = So(t, n);
|
|
2260
|
+
(!R || s !== e.getAttribute("style")) && (s == null ? e.removeAttribute("style") : e.style.cssText = s), e[Kr] = t;
|
|
2261
|
+
} else n && (Array.isArray(n) ? (Br(e, r?.[0], n[0]), Br(e, r?.[1], n[1], "important")) : Br(e, r, n));
|
|
2281
2262
|
return n;
|
|
2282
2263
|
}
|
|
2283
|
-
var
|
|
2264
|
+
var Ao = /* @__PURE__ */ Symbol("is custom element"), Mo = /* @__PURE__ */ Symbol("is html"), Ro = sa ? "link" : "LINK";
|
|
2284
2265
|
function Y(e, t, r, n) {
|
|
2285
|
-
var i =
|
|
2286
|
-
if (R && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
2266
|
+
var i = Po(e);
|
|
2267
|
+
if (R && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Ro)) {
|
|
2287
2268
|
n || void 0;
|
|
2288
2269
|
return;
|
|
2289
2270
|
}
|
|
2290
|
-
|
|
2271
|
+
var s = i[t];
|
|
2272
|
+
s !== (i[t] = r) && (t === "loading" && (e[na] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Oo(e).has(t) ? e[t] = r : R && (typeof r == "number" || typeof r == "boolean") && s === String(r) || e.setAttribute(t, r));
|
|
2291
2273
|
}
|
|
2292
|
-
function
|
|
2293
|
-
return e[
|
|
2294
|
-
[
|
|
2295
|
-
[
|
|
2274
|
+
function Po(e) {
|
|
2275
|
+
return e[Gr] ?? (e[Gr] = {
|
|
2276
|
+
[Ao]: e.nodeName.includes("-"),
|
|
2277
|
+
[Mo]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2296
2278
|
});
|
|
2297
2279
|
}
|
|
2298
|
-
var
|
|
2299
|
-
function
|
|
2300
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
2280
|
+
var ei = /* @__PURE__ */ new Map();
|
|
2281
|
+
function Oo(e) {
|
|
2282
|
+
var t = e.getAttribute("is") || e.nodeName, r = ei.get(t);
|
|
2301
2283
|
if (r) return r;
|
|
2302
|
-
|
|
2284
|
+
ei.set(t, r = /* @__PURE__ */ new Set());
|
|
2303
2285
|
for (var n, i = e, s = Element.prototype; s !== i; ) {
|
|
2304
|
-
n =
|
|
2286
|
+
n = Gs(i);
|
|
2305
2287
|
for (var a in n) n[a].set && a !== "innerHTML" && a !== "textContent" && a !== "innerText" && r.add(a);
|
|
2306
|
-
i =
|
|
2288
|
+
i = si(i);
|
|
2307
2289
|
}
|
|
2308
2290
|
return r;
|
|
2309
2291
|
}
|
|
2310
|
-
var
|
|
2292
|
+
var ns, ft = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), ti = /* @__PURE__ */ new WeakSet(), is = class {
|
|
2311
2293
|
constructor(e) {
|
|
2312
|
-
|
|
2294
|
+
_n(this, ti), S(this, ft, /* @__PURE__ */ new WeakMap()), S(this, Ar, void 0), S(this, qr, void 0), E(qr, this, e);
|
|
2313
2295
|
}
|
|
2314
2296
|
observe(e, t) {
|
|
2315
|
-
var r = o(
|
|
2316
|
-
return r.add(t), o(
|
|
2317
|
-
var n = o(
|
|
2318
|
-
n.delete(t), n.size === 0 && (o(
|
|
2297
|
+
var r = o(ft, this).get(e) || /* @__PURE__ */ new Set();
|
|
2298
|
+
return r.add(t), o(ft, this).set(e, r), k(ti, this, Co).call(this).observe(e, o(qr, this)), () => {
|
|
2299
|
+
var n = o(ft, this).get(e);
|
|
2300
|
+
n.delete(t), n.size === 0 && (o(ft, this).delete(e), o(Ar, this).unobserve(e));
|
|
2319
2301
|
};
|
|
2320
2302
|
}
|
|
2321
2303
|
};
|
|
2322
|
-
|
|
2323
|
-
function
|
|
2324
|
-
return o(
|
|
2304
|
+
ns = is;
|
|
2305
|
+
function Co() {
|
|
2306
|
+
return o(Ar, this) ?? E(Ar, this, new ResizeObserver((e) => {
|
|
2325
2307
|
for (var t of e) {
|
|
2326
|
-
|
|
2327
|
-
for (var r of o(
|
|
2308
|
+
ns.entries.set(t.target, t);
|
|
2309
|
+
for (var r of o(ft, this).get(t.target) || []) r(t);
|
|
2328
2310
|
}
|
|
2329
2311
|
}));
|
|
2330
2312
|
}
|
|
2331
|
-
|
|
2332
|
-
function
|
|
2333
|
-
return e === t || e?.[
|
|
2313
|
+
N(is, "entries", /* @__PURE__ */ new WeakMap());
|
|
2314
|
+
function Ur(e, t) {
|
|
2315
|
+
return e === t || e?.[Lt] === t;
|
|
2334
2316
|
}
|
|
2335
|
-
function
|
|
2336
|
-
var i =
|
|
2337
|
-
return
|
|
2317
|
+
function ss(e = dn(), t, r, n) {
|
|
2318
|
+
var i = L.r, s = T;
|
|
2319
|
+
return zi(() => {
|
|
2338
2320
|
var a, l;
|
|
2339
|
-
return
|
|
2340
|
-
a = l, l = n?.() || [],
|
|
2341
|
-
|
|
2321
|
+
return kn(() => {
|
|
2322
|
+
a = l, l = n?.() || [], _t(() => {
|
|
2323
|
+
Ur(r(...l), e) || (t(e, ...l), a && Ur(r(...a), e) && t(null, ...a));
|
|
2342
2324
|
});
|
|
2343
2325
|
}), () => {
|
|
2344
2326
|
let u = s;
|
|
2345
2327
|
for (; u !== i && u.parent !== null && u.parent.f & 33554432; ) u = u.parent;
|
|
2346
2328
|
const v = () => {
|
|
2347
|
-
l &&
|
|
2329
|
+
l && Ur(r(...l), e) && t(null, ...l);
|
|
2348
2330
|
}, _ = u.teardown;
|
|
2349
2331
|
u.teardown = () => {
|
|
2350
2332
|
v(), _?.();
|
|
@@ -2352,57 +2334,57 @@ function fs(e = gn(), t, r, n) {
|
|
|
2352
2334
|
};
|
|
2353
2335
|
}), e;
|
|
2354
2336
|
}
|
|
2355
|
-
var
|
|
2356
|
-
function
|
|
2357
|
-
var t =
|
|
2337
|
+
var cr = !1;
|
|
2338
|
+
function No(e) {
|
|
2339
|
+
var t = cr;
|
|
2358
2340
|
try {
|
|
2359
|
-
return
|
|
2341
|
+
return cr = !1, [e(), cr];
|
|
2360
2342
|
} finally {
|
|
2361
|
-
|
|
2343
|
+
cr = t;
|
|
2362
2344
|
}
|
|
2363
2345
|
}
|
|
2364
2346
|
function Ge(e, t, r, n) {
|
|
2365
|
-
var i = !
|
|
2347
|
+
var i = !Vt || (r & 2) !== 0, s = (r & 8) !== 0, a = (r & 16) !== 0, l = n, u = !0, v = void 0, _ = () => a && i ? (v ?? (v = /* @__PURE__ */ Bt(n)), d(v)) : (u && (u = !1, l = a ? _t(n) : n), l);
|
|
2366
2348
|
let c;
|
|
2367
2349
|
if (s) {
|
|
2368
|
-
var h =
|
|
2369
|
-
c =
|
|
2350
|
+
var h = Lt in e || fi in e;
|
|
2351
|
+
c = Xe(e, t)?.set ?? (h && t in e ? ($) => e[t] = $ : void 0);
|
|
2370
2352
|
}
|
|
2371
2353
|
var f, g = !1;
|
|
2372
|
-
s ? [f, g] =
|
|
2354
|
+
s ? [f, g] = No(() => e[t]) : f = e[t], f === void 0 && n !== void 0 && (f = _(), c && (i && wa(t), c(f)));
|
|
2373
2355
|
var b;
|
|
2374
2356
|
if (i ? b = () => {
|
|
2375
|
-
var
|
|
2376
|
-
return
|
|
2357
|
+
var $ = e[t];
|
|
2358
|
+
return $ === void 0 ? _() : (u = !0, $);
|
|
2377
2359
|
} : b = () => {
|
|
2378
|
-
var
|
|
2379
|
-
return
|
|
2360
|
+
var $ = e[t];
|
|
2361
|
+
return $ !== void 0 && (l = void 0), $ === void 0 ? l : $;
|
|
2380
2362
|
}, i && (r & 4) === 0) return b;
|
|
2381
2363
|
if (c) {
|
|
2382
2364
|
var p = e.$$legacy;
|
|
2383
|
-
return (function(
|
|
2384
|
-
return arguments.length > 0 ? ((!i || !
|
|
2365
|
+
return (function($, W) {
|
|
2366
|
+
return arguments.length > 0 ? ((!i || !W || p || g) && c(W ? b() : $), $) : b();
|
|
2385
2367
|
});
|
|
2386
2368
|
}
|
|
2387
|
-
var m = !1, y = ((r & 1) !== 0 ?
|
|
2369
|
+
var m = !1, y = ((r & 1) !== 0 ? Bt : vn)(() => (m = !1, b()));
|
|
2388
2370
|
s && d(y);
|
|
2389
2371
|
var O = T;
|
|
2390
|
-
return (function(
|
|
2372
|
+
return (function($, W) {
|
|
2391
2373
|
if (arguments.length > 0) {
|
|
2392
|
-
const
|
|
2393
|
-
return C(y,
|
|
2374
|
+
const H = W ? d(y) : i && s ? Ce($) : $;
|
|
2375
|
+
return C(y, H), m = !0, l !== void 0 && (l = H), $;
|
|
2394
2376
|
}
|
|
2395
|
-
return
|
|
2377
|
+
return Te && m || (O.f & 16384) !== 0 ? y.v : d(y);
|
|
2396
2378
|
});
|
|
2397
2379
|
}
|
|
2398
|
-
function
|
|
2399
|
-
return new
|
|
2380
|
+
function Io(e) {
|
|
2381
|
+
return new zo(e);
|
|
2400
2382
|
}
|
|
2401
|
-
var Fe = /* @__PURE__ */ new WeakMap(),
|
|
2383
|
+
var Fe = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), zo = class {
|
|
2402
2384
|
constructor(e) {
|
|
2403
|
-
S(this, Fe, void 0), S(this,
|
|
2385
|
+
S(this, Fe, void 0), S(this, ve, void 0);
|
|
2404
2386
|
var t = /* @__PURE__ */ new Map(), r = (i, s) => {
|
|
2405
|
-
var a = /* @__PURE__ */
|
|
2387
|
+
var a = /* @__PURE__ */ Ai(s, !1, !1);
|
|
2406
2388
|
return t.set(i, a), a;
|
|
2407
2389
|
};
|
|
2408
2390
|
const n = new Proxy({
|
|
@@ -2413,13 +2395,13 @@ var Fe = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), Ho =
|
|
|
2413
2395
|
return d(t.get(s) ?? r(s, Reflect.get(i, s)));
|
|
2414
2396
|
},
|
|
2415
2397
|
has(i, s) {
|
|
2416
|
-
return s ===
|
|
2398
|
+
return s === fi ? !0 : (d(t.get(s) ?? r(s, Reflect.get(i, s))), Reflect.has(i, s));
|
|
2417
2399
|
},
|
|
2418
2400
|
set(i, s, a) {
|
|
2419
2401
|
return C(t.get(s) ?? r(s, a), a), Reflect.set(i, s, a);
|
|
2420
2402
|
}
|
|
2421
2403
|
});
|
|
2422
|
-
|
|
2404
|
+
E(ve, this, (e.hydrate ? _o : Qi)(e.component, {
|
|
2423
2405
|
target: e.target,
|
|
2424
2406
|
anchor: e.anchor,
|
|
2425
2407
|
props: n,
|
|
@@ -2427,25 +2409,25 @@ var Fe = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), Ho =
|
|
|
2427
2409
|
intro: e.intro ?? !1,
|
|
2428
2410
|
recover: e.recover,
|
|
2429
2411
|
transformError: e.transformError
|
|
2430
|
-
})), !De && (!e?.props?.$$host || e.sync === !1) &&
|
|
2431
|
-
for (const i of Object.keys(o(
|
|
2432
|
-
i === "$set" || i === "$destroy" || i === "$on" ||
|
|
2412
|
+
})), !De && (!e?.props?.$$host || e.sync === !1) && Ee(), E(Fe, this, n.$$events);
|
|
2413
|
+
for (const i of Object.keys(o(ve, this)))
|
|
2414
|
+
i === "$set" || i === "$destroy" || i === "$on" || jt(this, i, {
|
|
2433
2415
|
get() {
|
|
2434
|
-
return o(
|
|
2416
|
+
return o(ve, this)[i];
|
|
2435
2417
|
},
|
|
2436
2418
|
set(s) {
|
|
2437
|
-
o(
|
|
2419
|
+
o(ve, this)[i] = s;
|
|
2438
2420
|
},
|
|
2439
2421
|
enumerable: !0
|
|
2440
2422
|
});
|
|
2441
|
-
o(
|
|
2423
|
+
o(ve, this).$set = (i) => {
|
|
2442
2424
|
Object.assign(n, i);
|
|
2443
|
-
}, o(
|
|
2444
|
-
|
|
2425
|
+
}, o(ve, this).$destroy = () => {
|
|
2426
|
+
go(o(ve, this));
|
|
2445
2427
|
};
|
|
2446
2428
|
}
|
|
2447
2429
|
$set(e) {
|
|
2448
|
-
o(
|
|
2430
|
+
o(ve, this).$set(e);
|
|
2449
2431
|
}
|
|
2450
2432
|
$on(e, t) {
|
|
2451
2433
|
o(Fe, this)[e] = o(Fe, this)[e] || [];
|
|
@@ -2455,12 +2437,12 @@ var Fe = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), Ho =
|
|
|
2455
2437
|
};
|
|
2456
2438
|
}
|
|
2457
2439
|
$destroy() {
|
|
2458
|
-
o(
|
|
2440
|
+
o(ve, this).$destroy();
|
|
2459
2441
|
}
|
|
2460
|
-
},
|
|
2461
|
-
typeof HTMLElement == "function" && (
|
|
2442
|
+
}, as;
|
|
2443
|
+
typeof HTMLElement == "function" && (as = class extends HTMLElement {
|
|
2462
2444
|
constructor(e, t, r) {
|
|
2463
|
-
super(),
|
|
2445
|
+
super(), N(this, "$$ctor", void 0), N(this, "$$s", void 0), N(this, "$$c", void 0), N(this, "$$cn", !1), N(this, "$$d", {}), N(this, "$$r", !1), N(this, "$$p_d", {}), N(this, "$$l", {}), N(this, "$$l_u", /* @__PURE__ */ new Map()), N(this, "$$me", void 0), N(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2464
2446
|
}
|
|
2465
2447
|
addEventListener(e, t, r) {
|
|
2466
2448
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
@@ -2479,19 +2461,19 @@ typeof HTMLElement == "function" && (us = class extends HTMLElement {
|
|
|
2479
2461
|
if (this.$$cn = !0, !this.$$c) {
|
|
2480
2462
|
let e = function(n) {
|
|
2481
2463
|
return (i) => {
|
|
2482
|
-
const s =
|
|
2483
|
-
n !== "default" && (s.name = n),
|
|
2464
|
+
const s = bn("slot");
|
|
2465
|
+
n !== "default" && (s.name = n), Oe(i, s);
|
|
2484
2466
|
};
|
|
2485
2467
|
};
|
|
2486
2468
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2487
|
-
const t = {}, r =
|
|
2469
|
+
const t = {}, r = Lo(this);
|
|
2488
2470
|
for (const n of this.$$s) n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2489
2471
|
for (const n of this.attributes) {
|
|
2490
2472
|
const i = this.$$g_p(n.name);
|
|
2491
|
-
i in this.$$d || (this.$$d[i] =
|
|
2473
|
+
i in this.$$d || (this.$$d[i] = vr(i, n.value, this.$$p_d, "toProp"));
|
|
2492
2474
|
}
|
|
2493
2475
|
for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2494
|
-
this.$$c =
|
|
2476
|
+
this.$$c = Io({
|
|
2495
2477
|
component: this.$$ctor,
|
|
2496
2478
|
target: this.$$shadowRoot || this,
|
|
2497
2479
|
props: {
|
|
@@ -2499,13 +2481,13 @@ typeof HTMLElement == "function" && (us = class extends HTMLElement {
|
|
|
2499
2481
|
$$slots: t,
|
|
2500
2482
|
$$host: this
|
|
2501
2483
|
}
|
|
2502
|
-
}), this.$$me =
|
|
2503
|
-
|
|
2484
|
+
}), this.$$me = Ya(() => {
|
|
2485
|
+
kn(() => {
|
|
2504
2486
|
this.$$r = !0;
|
|
2505
|
-
for (const n of
|
|
2487
|
+
for (const n of pr(this.$$c)) {
|
|
2506
2488
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
2507
2489
|
this.$$d[n] = this.$$c[n];
|
|
2508
|
-
const i =
|
|
2490
|
+
const i = vr(n, this.$$d[n], this.$$p_d, "toAttribute");
|
|
2509
2491
|
i == null ? this.removeAttribute(this.$$p_d[n].attribute || n) : this.setAttribute(this.$$p_d[n].attribute || n, i);
|
|
2510
2492
|
}
|
|
2511
2493
|
this.$$r = !1;
|
|
@@ -2519,7 +2501,7 @@ typeof HTMLElement == "function" && (us = class extends HTMLElement {
|
|
|
2519
2501
|
}
|
|
2520
2502
|
}
|
|
2521
2503
|
attributeChangedCallback(e, t, r) {
|
|
2522
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2504
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = vr(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2523
2505
|
}
|
|
2524
2506
|
disconnectedCallback() {
|
|
2525
2507
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2527,10 +2509,10 @@ typeof HTMLElement == "function" && (us = class extends HTMLElement {
|
|
|
2527
2509
|
});
|
|
2528
2510
|
}
|
|
2529
2511
|
$$g_p(e) {
|
|
2530
|
-
return
|
|
2512
|
+
return pr(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2531
2513
|
}
|
|
2532
2514
|
});
|
|
2533
|
-
function
|
|
2515
|
+
function vr(e, t, r, n) {
|
|
2534
2516
|
const i = r[e]?.type;
|
|
2535
2517
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e]) return t;
|
|
2536
2518
|
if (n === "toAttribute") switch (i) {
|
|
@@ -2556,39 +2538,39 @@ function gr(e, t, r, n) {
|
|
|
2556
2538
|
return t;
|
|
2557
2539
|
}
|
|
2558
2540
|
}
|
|
2559
|
-
function
|
|
2541
|
+
function Lo(e) {
|
|
2560
2542
|
const t = {};
|
|
2561
2543
|
return e.childNodes.forEach((r) => {
|
|
2562
2544
|
t[r.slot || "default"] = !0;
|
|
2563
2545
|
}), t;
|
|
2564
2546
|
}
|
|
2565
|
-
function
|
|
2566
|
-
let a = class extends
|
|
2547
|
+
function os(e, t, r, n, i, s) {
|
|
2548
|
+
let a = class extends as {
|
|
2567
2549
|
constructor() {
|
|
2568
2550
|
super(e, r, i), this.$$p_d = t;
|
|
2569
2551
|
}
|
|
2570
2552
|
static get observedAttributes() {
|
|
2571
|
-
return
|
|
2553
|
+
return pr(t).map((l) => (t[l].attribute || l).toLowerCase());
|
|
2572
2554
|
}
|
|
2573
2555
|
};
|
|
2574
|
-
return
|
|
2575
|
-
|
|
2556
|
+
return pr(t).forEach((l) => {
|
|
2557
|
+
jt(a.prototype, l, {
|
|
2576
2558
|
get() {
|
|
2577
2559
|
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
2578
2560
|
},
|
|
2579
2561
|
set(u) {
|
|
2580
|
-
u =
|
|
2562
|
+
u = vr(l, u, t), this.$$d[l] = u;
|
|
2581
2563
|
var v = this.$$c;
|
|
2582
|
-
v && (
|
|
2564
|
+
v && (Xe(v, l)?.get ? v[l] = u : v.$set({ [l]: u }));
|
|
2583
2565
|
}
|
|
2584
2566
|
});
|
|
2585
2567
|
}), n.forEach((l) => {
|
|
2586
|
-
|
|
2568
|
+
jt(a.prototype, l, { get() {
|
|
2587
2569
|
return this.$$c?.[l];
|
|
2588
2570
|
} });
|
|
2589
2571
|
}), s && (a = s(a)), e.element = a, a;
|
|
2590
2572
|
}
|
|
2591
|
-
var
|
|
2573
|
+
var ri = /* @__PURE__ */ Zt('<button type="button"><span aria-hidden="true"> </span></button>'), Wo = /* @__PURE__ */ Zt('<span class="pie-tool-placement__controls-divider svelte-nt6qeh" aria-hidden="true"></span> <!>', 1), Ho = /* @__PURE__ */ Zt('<span class="pie-tool-placement__controls-divider svelte-nt6qeh" aria-hidden="true"></span> <button type="button"><span aria-hidden="true"> </span></button> <button type="button"><span aria-hidden="true"> </span></button>', 1), Do = /* @__PURE__ */ Zt('<div role="group"><!> <!> <!></div>'), jo = {
|
|
2592
2574
|
hash: "svelte-nt6qeh",
|
|
2593
2575
|
code: `.pie-tool-placement__controls.svelte-nt6qeh {align-items:center;background:var(--pie-background, #fff);border:1px solid var(--pie-border-light, #cbd5e0);border-radius:8px;box-shadow:0 2px 6px color-mix(in srgb, var(--pie-black, #000) 15%, transparent);
|
|
2594
2576
|
/* So the docking's max-width bounds the whole strip. */box-sizing:border-box;cursor:default;
|
|
@@ -2598,84 +2580,84 @@ var oi = /* @__PURE__ */ er('<button type="button"><span aria-hidden="true"> </s
|
|
|
2598
2580
|
|
|
2599
2581
|
/* The tool is the controls' parent. */:focus-within > .pie-tool-placement__controls.svelte-nt6qeh {visibility:visible;}.pie-tool-placement__control.svelte-nt6qeh {align-items:center;background:var(--pie-button-bg, var(--pie-background, #fff));border:1px solid var(--pie-button-border, var(--pie-border, #94a3b8));border-radius:6px;color:var(--pie-button-color, var(--pie-text, #111827));cursor:pointer;display:inline-flex;font:inherit;font-size:14px;justify-content:center;min-height:32px;min-width:32px;padding:0 6px;}.pie-tool-placement__control.svelte-nt6qeh:hover {background:var(--pie-button-hover-bg, var(--pie-background-dark, #f3f5f7));}.pie-tool-placement__control.svelte-nt6qeh:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #4a90e2));outline-offset:1px;}.pie-tool-placement__controls-divider.svelte-nt6qeh {align-self:stretch;background:var(--pie-border-light, #cbd5e0);margin:0 2px;width:1px;}`
|
|
2600
2582
|
};
|
|
2601
|
-
function
|
|
2602
|
-
|
|
2583
|
+
function ls(e, t) {
|
|
2584
|
+
un(t, !0), rs(e, jo);
|
|
2603
2585
|
let r = Ge(t, "controller", 7), n = Ge(t, "i18n", 7), i = Ge(t, "classPrefix", 7), s = Ge(t, "sizes", 23, () => []), a = Ge(t, "element", 15);
|
|
2604
2586
|
var l = {
|
|
2605
2587
|
get controller() {
|
|
2606
2588
|
return r();
|
|
2607
2589
|
},
|
|
2608
2590
|
set controller(f) {
|
|
2609
|
-
r(f),
|
|
2591
|
+
r(f), Ee();
|
|
2610
2592
|
},
|
|
2611
2593
|
get i18n() {
|
|
2612
2594
|
return n();
|
|
2613
2595
|
},
|
|
2614
2596
|
set i18n(f) {
|
|
2615
|
-
n(f),
|
|
2597
|
+
n(f), Ee();
|
|
2616
2598
|
},
|
|
2617
2599
|
get classPrefix() {
|
|
2618
2600
|
return i();
|
|
2619
2601
|
},
|
|
2620
2602
|
set classPrefix(f) {
|
|
2621
|
-
i(f),
|
|
2603
|
+
i(f), Ee();
|
|
2622
2604
|
},
|
|
2623
2605
|
get sizes() {
|
|
2624
2606
|
return s();
|
|
2625
2607
|
},
|
|
2626
2608
|
set sizes(f = []) {
|
|
2627
|
-
s(f),
|
|
2609
|
+
s(f), Ee();
|
|
2628
2610
|
},
|
|
2629
2611
|
get element() {
|
|
2630
2612
|
return a();
|
|
2631
2613
|
},
|
|
2632
2614
|
set element(f) {
|
|
2633
|
-
a(f),
|
|
2615
|
+
a(f), Ee();
|
|
2634
2616
|
}
|
|
2635
|
-
}, u =
|
|
2636
|
-
|
|
2637
|
-
var b = /* @__PURE__ */
|
|
2617
|
+
}, u = Do(), v = Ye(u);
|
|
2618
|
+
jr(v, 17, () => Object.entries(ni), ([f, g]) => f, (f, g) => {
|
|
2619
|
+
var b = /* @__PURE__ */ At(() => Js(d(g), 2));
|
|
2638
2620
|
let p = () => d(b)[0], m = () => d(b)[1];
|
|
2639
|
-
var y =
|
|
2640
|
-
qe(y),
|
|
2641
|
-
|
|
2642
|
-
}, [() => n().t(m().labelKey)]),
|
|
2621
|
+
var y = ri(), O = Ye(y), $ = Ot(O, !0);
|
|
2622
|
+
qe(y), Ct((W) => {
|
|
2623
|
+
St(y, 1, `pie-tool-placement__control ${i() ?? ""}__control`, "svelte-nt6qeh"), Y(y, "aria-label", W), Nt($, m().glyph);
|
|
2624
|
+
}, [() => n().t(m().labelKey)]), ge("click", y, () => r().nudge(p())), Oe(f, y);
|
|
2643
2625
|
});
|
|
2644
|
-
var _ =
|
|
2645
|
-
var g =
|
|
2646
|
-
|
|
2647
|
-
var y =
|
|
2648
|
-
qe(y),
|
|
2649
|
-
|
|
2650
|
-
}, [() => n().t(m > 0 ? "toolkit.placement.rotateClockwiseA11y" : "toolkit.placement.rotateCounterclockwiseA11y", { degrees: Math.abs(m) }), () => Math.abs(m)]),
|
|
2651
|
-
}),
|
|
2626
|
+
var _ = _e(v, 2), c = (f) => {
|
|
2627
|
+
var g = Wo(), b = _e(Er(g), 2);
|
|
2628
|
+
jr(b, 16, () => Ws, (p) => p, (p, m) => {
|
|
2629
|
+
var y = ri(), O = Ye(y), $ = Ot(O);
|
|
2630
|
+
qe(y), Ct((W, H) => {
|
|
2631
|
+
St(y, 1, `pie-tool-placement__control ${i() ?? ""}__control`, "svelte-nt6qeh"), Y(y, "aria-label", W), Nt($, `${m > 0 ? "↻" : "↺"}${H ?? ""}°`);
|
|
2632
|
+
}, [() => n().t(m > 0 ? "toolkit.placement.rotateClockwiseA11y" : "toolkit.placement.rotateCounterclockwiseA11y", { degrees: Math.abs(m) }), () => Math.abs(m)]), ge("click", y, () => r().rotateBy?.(m)), Oe(p, y);
|
|
2633
|
+
}), Oe(f, g);
|
|
2652
2634
|
};
|
|
2653
|
-
|
|
2635
|
+
ts(_, (f) => {
|
|
2654
2636
|
r().rotateBy && f(c);
|
|
2655
2637
|
});
|
|
2656
|
-
var h =
|
|
2657
|
-
return
|
|
2658
|
-
var b =
|
|
2638
|
+
var h = _e(_, 2);
|
|
2639
|
+
return jr(h, 17, s, yo, (f, g) => {
|
|
2640
|
+
var b = Ho(), p = _e(Er(b), 2), m = Ye(p), y = Ot(m, !0);
|
|
2659
2641
|
qe(p);
|
|
2660
|
-
var O =
|
|
2661
|
-
qe(O),
|
|
2662
|
-
|
|
2663
|
-
}),
|
|
2664
|
-
}), qe(u),
|
|
2665
|
-
|
|
2666
|
-
}, [() => n().t(r().rotateBy ? "toolkit.placement.controlsA11y" : "toolkit.placement.moveAndResizeA11y")]),
|
|
2642
|
+
var O = _e(p, 2), $ = Ye(O), W = Ot($, !0);
|
|
2643
|
+
qe(O), Ct(() => {
|
|
2644
|
+
St(p, 1, `pie-tool-placement__control ${i() ?? ""}__control`, "svelte-nt6qeh"), Y(p, "aria-label", d(g).shrink.label), Nt(y, d(g).shrink.glyph), St(O, 1, `pie-tool-placement__control ${i() ?? ""}__control`, "svelte-nt6qeh"), Y(O, "aria-label", d(g).grow.label), Nt(W, d(g).grow.glyph);
|
|
2645
|
+
}), ge("click", p, () => d(g).step(-1)), ge("click", O, () => d(g).step(1)), Oe(f, b);
|
|
2646
|
+
}), qe(u), ss(u, (f) => a(f), () => a()), Ct((f) => {
|
|
2647
|
+
St(u, 1, `pie-tool-placement__controls ${i() ?? ""}__controls`, "svelte-nt6qeh"), Y(u, "aria-label", f);
|
|
2648
|
+
}, [() => n().t(r().rotateBy ? "toolkit.placement.controlsA11y" : "toolkit.placement.moveAndResizeA11y")]), ge("pointerdown", u, (f) => {
|
|
2667
2649
|
f.stopPropagation(), f.preventDefault();
|
|
2668
|
-
}),
|
|
2650
|
+
}), Oe(e, u), cn(l);
|
|
2669
2651
|
}
|
|
2670
|
-
|
|
2671
|
-
|
|
2652
|
+
Ki(["pointerdown", "click"]);
|
|
2653
|
+
os(ls, {
|
|
2672
2654
|
controller: {},
|
|
2673
2655
|
i18n: {},
|
|
2674
2656
|
classPrefix: {},
|
|
2675
2657
|
sizes: {},
|
|
2676
2658
|
element: {}
|
|
2677
2659
|
}, [], [], { mode: "open" });
|
|
2678
|
-
var
|
|
2660
|
+
var Fo = /* @__PURE__ */ Zt('<div class="pie-sr-only svelte-a1a4bp" role="status" aria-live="polite" aria-atomic="true"> </div> <div class="pie-tool-line-reader svelte-a1a4bp" role="group" tabindex="0"><div class="pie-tool-line-reader__frame svelte-a1a4bp" aria-hidden="true"></div> <div class="pie-tool-line-reader__outline svelte-a1a4bp" aria-hidden="true"></div> <button type="button" class="pie-tool-line-reader__button pie-tool-line-reader__close svelte-a1a4bp"><svg width="12" height="12" viewBox="0 0 12 12" aria-hidden="true" focusable="false"><path d="M1 1 L11 11 M11 1 L1 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button> <button type="button" class="pie-tool-line-reader__resize-handle pie-tool-line-reader__resize-handle--pane svelte-a1a4bp"><svg width="14" height="8" viewBox="0 0 14 8" aria-hidden="true" focusable="false"><path d="M1 2.5 H13 M1 5.5 H13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button> <button type="button" class="pie-tool-line-reader__resize-handle pie-tool-line-reader__resize-handle--frame svelte-a1a4bp"><svg width="12" height="12" viewBox="0 0 12 12" aria-hidden="true" focusable="false"><path d="M11 4 L4 11 M11 8 L8 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button> <!></div>', 1), Bo = {
|
|
2679
2661
|
hash: "svelte-a1a4bp",
|
|
2680
2662
|
code: `.pie-sr-only.svelte-a1a4bp {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;}.pie-tool-line-reader.svelte-a1a4bp {border:none;border-radius:4px;
|
|
2681
2663
|
/*
|
|
@@ -2740,106 +2722,106 @@ var Uo = /* @__PURE__ */ er('<div class="pie-sr-only svelte-a1a4bp" role="status
|
|
|
2740
2722
|
|
|
2741
2723
|
/* Resizes the frame bands and the overall width, so it reads as a corner grip. */.pie-tool-line-reader__resize-handle--frame.svelte-a1a4bp {bottom:4px;right:4px;cursor:nwse-resize;}.pie-tool-line-reader.svelte-a1a4bp:active {cursor:grabbing;}`
|
|
2742
2724
|
};
|
|
2743
|
-
function
|
|
2744
|
-
|
|
2725
|
+
function qo(e, t) {
|
|
2726
|
+
un(t, !0), rs(e, Bo);
|
|
2745
2727
|
let r = Ge(t, "visible", 7, !1), n = Ge(t, "toolId", 7, "lineReader");
|
|
2746
2728
|
const i = typeof window < "u";
|
|
2747
2729
|
let s = /* @__PURE__ */ B(void 0), a = /* @__PURE__ */ B(void 0);
|
|
2748
|
-
const l =
|
|
2730
|
+
const l = Ds();
|
|
2749
2731
|
let u = /* @__PURE__ */ B(null);
|
|
2750
|
-
const v = /* @__PURE__ */
|
|
2751
|
-
let _ = /* @__PURE__ */ B(null), c = /* @__PURE__ */ B(
|
|
2732
|
+
const v = /* @__PURE__ */ At(() => d(u)?.toolCoordinator);
|
|
2733
|
+
let _ = /* @__PURE__ */ B(null), c = /* @__PURE__ */ B(Ce({
|
|
2752
2734
|
x: 0,
|
|
2753
2735
|
y: 0
|
|
2754
2736
|
})), h = !1;
|
|
2755
|
-
const f =
|
|
2737
|
+
const f = js({
|
|
2756
2738
|
getPosition: () => d(c),
|
|
2757
2739
|
setPosition: (w) => {
|
|
2758
|
-
C(c,
|
|
2740
|
+
C(c, rr(w), !0);
|
|
2759
2741
|
},
|
|
2760
2742
|
onDragStart: (w) => d(v)?.bringToFront(w)
|
|
2761
2743
|
});
|
|
2762
|
-
let g = /* @__PURE__ */ B(600), b = /* @__PURE__ */ B(24), p = /* @__PURE__ */ B(48), m = /* @__PURE__ */ B(
|
|
2744
|
+
let g = /* @__PURE__ */ B(600), b = /* @__PURE__ */ B(24), p = /* @__PURE__ */ B(48), m = /* @__PURE__ */ B(Ce({
|
|
2763
2745
|
paneHeight: 0,
|
|
2764
2746
|
frameBandHeight: 0,
|
|
2765
2747
|
width: 0,
|
|
2766
2748
|
mouseX: 0,
|
|
2767
2749
|
mouseY: 0
|
|
2768
2750
|
}));
|
|
2769
|
-
const y = /* @__PURE__ */
|
|
2751
|
+
const y = /* @__PURE__ */ At(() => Us(d(u)));
|
|
2770
2752
|
let O = /* @__PURE__ */ B("");
|
|
2771
|
-
const
|
|
2772
|
-
|
|
2753
|
+
const $ = zs("Line Reader", Ns.TOOL), W = 12, H = 200, te = 32, he = 240, wt = 200, j = 2e3, Jt = Ls, Qt = 10, bt = 10, Tn = 20, Cr = /* @__PURE__ */ At(() => d(b) + d(p) * 2);
|
|
2754
|
+
Re(() => {
|
|
2773
2755
|
if (d(s))
|
|
2774
|
-
return
|
|
2756
|
+
return Is(d(s), (w) => {
|
|
2775
2757
|
C(u, w, !0);
|
|
2776
2758
|
});
|
|
2777
2759
|
});
|
|
2778
|
-
let
|
|
2779
|
-
function
|
|
2780
|
-
|
|
2781
|
-
C(O, ""),
|
|
2760
|
+
let it = null;
|
|
2761
|
+
function er(w) {
|
|
2762
|
+
it !== null && clearTimeout(it), C(O, w, !0), it = setTimeout(() => {
|
|
2763
|
+
C(O, ""), it = null;
|
|
2782
2764
|
}, 1e3);
|
|
2783
2765
|
}
|
|
2784
|
-
function
|
|
2785
|
-
return Math.max(
|
|
2766
|
+
function An(w) {
|
|
2767
|
+
return Math.max(W, Math.min(H, w));
|
|
2786
2768
|
}
|
|
2787
|
-
function
|
|
2788
|
-
return Math.max(te, Math.min(
|
|
2769
|
+
function Mn(w) {
|
|
2770
|
+
return Math.max(te, Math.min(he, w));
|
|
2789
2771
|
}
|
|
2790
|
-
function
|
|
2791
|
-
const
|
|
2792
|
-
return Math.max(
|
|
2772
|
+
function tr(w) {
|
|
2773
|
+
const x = Pn()?.width, q = x === void 0 ? j : Math.min(j, x - Jt * 2);
|
|
2774
|
+
return Math.max(wt, Math.min(Math.max(wt, q), w));
|
|
2793
2775
|
}
|
|
2794
|
-
function
|
|
2795
|
-
return
|
|
2776
|
+
function Rn() {
|
|
2777
|
+
return qs(d(s));
|
|
2796
2778
|
}
|
|
2797
|
-
function
|
|
2798
|
-
const w =
|
|
2779
|
+
function Pn() {
|
|
2780
|
+
const w = Rn();
|
|
2799
2781
|
return w && {
|
|
2800
2782
|
width: w.width,
|
|
2801
2783
|
height: w.height
|
|
2802
2784
|
};
|
|
2803
2785
|
}
|
|
2804
|
-
function
|
|
2805
|
-
const w =
|
|
2786
|
+
function fs() {
|
|
2787
|
+
const w = Rn();
|
|
2806
2788
|
if (!w) return;
|
|
2807
|
-
const
|
|
2808
|
-
return
|
|
2789
|
+
const x = Math.max(w.left, 0), q = Math.max(w.top, 0), st = Math.min(w.right, window.innerWidth), U = Math.min(w.bottom, window.innerHeight);
|
|
2790
|
+
return st <= x || U <= q ? {
|
|
2809
2791
|
x: w.width / 2,
|
|
2810
2792
|
y: w.height / 2
|
|
2811
2793
|
} : {
|
|
2812
|
-
x: (
|
|
2794
|
+
x: (x + st) / 2 - w.left,
|
|
2813
2795
|
y: (q + U) / 2 - w.top
|
|
2814
2796
|
};
|
|
2815
2797
|
}
|
|
2816
|
-
function
|
|
2817
|
-
const
|
|
2818
|
-
return
|
|
2798
|
+
function rr(w) {
|
|
2799
|
+
const x = Pn();
|
|
2800
|
+
return x ? Hs(w, {
|
|
2819
2801
|
width: d(g),
|
|
2820
|
-
height: d(
|
|
2821
|
-
},
|
|
2802
|
+
height: d(Cr)
|
|
2803
|
+
}, x, Jt) : w;
|
|
2822
2804
|
}
|
|
2823
|
-
function
|
|
2824
|
-
C(c,
|
|
2805
|
+
function mt() {
|
|
2806
|
+
C(c, rr(d(c)), !0);
|
|
2825
2807
|
}
|
|
2826
|
-
function
|
|
2827
|
-
C(b,
|
|
2808
|
+
function yt(w) {
|
|
2809
|
+
C(b, An(d(b) + w), !0), mt(), er(d(y).t("tools.lineReader.windowHeightAnnounce", { pixels: d(b) }));
|
|
2828
2810
|
}
|
|
2829
|
-
function
|
|
2830
|
-
C(p,
|
|
2811
|
+
function Nr(w) {
|
|
2812
|
+
C(p, Mn(d(p) + w), !0), mt(), er(d(y).t("tools.lineReader.frameHeightAnnounce", { pixels: d(p) }));
|
|
2831
2813
|
}
|
|
2832
|
-
function
|
|
2833
|
-
C(g,
|
|
2814
|
+
function Ir(w) {
|
|
2815
|
+
C(g, tr(d(g) + w), !0), mt(), er(d(y).t("tools.lineReader.widthAnnounce", { pixels: d(g) }));
|
|
2834
2816
|
}
|
|
2835
|
-
function
|
|
2836
|
-
const { dx:
|
|
2837
|
-
C(c,
|
|
2838
|
-
x: d(c).x +
|
|
2839
|
-
y: d(c).y + q *
|
|
2840
|
-
}), !0),
|
|
2817
|
+
function kt(w) {
|
|
2818
|
+
const { dx: x, dy: q, announceKey: st } = ni[w];
|
|
2819
|
+
C(c, rr({
|
|
2820
|
+
x: d(c).x + x * Qt,
|
|
2821
|
+
y: d(c).y + q * Qt
|
|
2822
|
+
}), !0), er(d(y).t(st, { position: Math.round(x === 0 ? d(c).y : d(c).x) }));
|
|
2841
2823
|
}
|
|
2842
|
-
const
|
|
2824
|
+
const us = { nudge: kt }, cs = /* @__PURE__ */ At(() => [
|
|
2843
2825
|
{
|
|
2844
2826
|
shrink: {
|
|
2845
2827
|
glyph: "−",
|
|
@@ -2849,7 +2831,7 @@ function Go(e, t) {
|
|
|
2849
2831
|
glyph: "+",
|
|
2850
2832
|
label: d(y).t("tools.lineReader.tallerWindowA11y")
|
|
2851
2833
|
},
|
|
2852
|
-
step: (w) =>
|
|
2834
|
+
step: (w) => yt(w * bt)
|
|
2853
2835
|
},
|
|
2854
2836
|
{
|
|
2855
2837
|
shrink: {
|
|
@@ -2860,7 +2842,7 @@ function Go(e, t) {
|
|
|
2860
2842
|
glyph: "↕+",
|
|
2861
2843
|
label: d(y).t("tools.lineReader.tallerFrameA11y")
|
|
2862
2844
|
},
|
|
2863
|
-
step: (w) =>
|
|
2845
|
+
step: (w) => Nr(w * bt)
|
|
2864
2846
|
},
|
|
2865
2847
|
{
|
|
2866
2848
|
shrink: {
|
|
@@ -2871,34 +2853,34 @@ function Go(e, t) {
|
|
|
2871
2853
|
glyph: "↔+",
|
|
2872
2854
|
label: d(y).t("tools.lineReader.widerA11y")
|
|
2873
2855
|
},
|
|
2874
|
-
step: (w) =>
|
|
2856
|
+
step: (w) => Ir(w * Tn)
|
|
2875
2857
|
}
|
|
2876
2858
|
]);
|
|
2877
|
-
function
|
|
2878
|
-
d(s) && d(a) &&
|
|
2859
|
+
function On() {
|
|
2860
|
+
d(s) && d(a) && Bs(d(s), d(a));
|
|
2879
2861
|
}
|
|
2880
|
-
function
|
|
2862
|
+
function Cn() {
|
|
2881
2863
|
d(v) && n() && (l.restore(), d(v).hideTool(n()));
|
|
2882
2864
|
}
|
|
2883
|
-
function
|
|
2884
|
-
const
|
|
2865
|
+
function ds(w) {
|
|
2866
|
+
const x = w.target, q = x.closest(".pie-tool-line-reader__resize-handle");
|
|
2885
2867
|
if (q) {
|
|
2886
|
-
|
|
2868
|
+
vs(w, q.classList.contains("pie-tool-line-reader__resize-handle--frame") ? "frame" : "pane", q);
|
|
2887
2869
|
return;
|
|
2888
2870
|
}
|
|
2889
|
-
|
|
2871
|
+
x.closest("button") || hs(w);
|
|
2890
2872
|
}
|
|
2891
|
-
const
|
|
2892
|
-
onMove:
|
|
2873
|
+
const nr = Fs({
|
|
2874
|
+
onMove: ps,
|
|
2893
2875
|
onEnd: () => {
|
|
2894
2876
|
f.endDragging(), C(_, null);
|
|
2895
2877
|
}
|
|
2896
2878
|
});
|
|
2897
|
-
function
|
|
2898
|
-
!d(s) || !
|
|
2879
|
+
function hs(w) {
|
|
2880
|
+
!d(s) || !nr.begin(w, d(s)) || (d(s).focus({ preventScroll: !0 }), f.startDragging(w, d(s)));
|
|
2899
2881
|
}
|
|
2900
|
-
function
|
|
2901
|
-
w.stopPropagation(), !(!d(s) || !
|
|
2882
|
+
function vs(w, x, q) {
|
|
2883
|
+
w.stopPropagation(), !(!d(s) || !nr.begin(w, d(s))) && (d(s).setPointerCapture(w.pointerId), q.focus({ preventScroll: !0 }), C(_, x, !0), C(m, {
|
|
2902
2884
|
paneHeight: d(b),
|
|
2903
2885
|
frameBandHeight: d(p),
|
|
2904
2886
|
width: d(g),
|
|
@@ -2906,149 +2888,149 @@ function Go(e, t) {
|
|
|
2906
2888
|
mouseY: w.clientY
|
|
2907
2889
|
}, !0), d(v)?.bringToFront(d(s)));
|
|
2908
2890
|
}
|
|
2909
|
-
function
|
|
2891
|
+
function ps(w) {
|
|
2910
2892
|
if (f.isDragging()) {
|
|
2911
2893
|
f.handlePointerMove(w);
|
|
2912
2894
|
return;
|
|
2913
2895
|
}
|
|
2914
2896
|
if (!d(_)) return;
|
|
2915
|
-
const
|
|
2897
|
+
const x = w.clientY - d(m).mouseY;
|
|
2916
2898
|
if (d(_) === "pane") {
|
|
2917
|
-
C(b,
|
|
2899
|
+
C(b, An(d(m).paneHeight + x * 2), !0);
|
|
2918
2900
|
return;
|
|
2919
2901
|
}
|
|
2920
|
-
C(p,
|
|
2902
|
+
C(p, Mn(d(m).frameBandHeight + x), !0), C(g, tr(d(m).width + (w.clientX - d(m).mouseX) * 2), !0), mt();
|
|
2921
2903
|
}
|
|
2922
|
-
function
|
|
2923
|
-
let
|
|
2904
|
+
function _s(w) {
|
|
2905
|
+
let x = !1;
|
|
2924
2906
|
switch (w.key) {
|
|
2925
2907
|
case "ArrowUp":
|
|
2926
|
-
|
|
2908
|
+
kt("up"), x = !0;
|
|
2927
2909
|
break;
|
|
2928
2910
|
case "ArrowDown":
|
|
2929
|
-
|
|
2911
|
+
kt("down"), x = !0;
|
|
2930
2912
|
break;
|
|
2931
2913
|
case "ArrowLeft":
|
|
2932
|
-
|
|
2914
|
+
kt("left"), x = !0;
|
|
2933
2915
|
break;
|
|
2934
2916
|
case "ArrowRight":
|
|
2935
|
-
|
|
2917
|
+
kt("right"), x = !0;
|
|
2936
2918
|
break;
|
|
2937
2919
|
case "+":
|
|
2938
2920
|
case "=":
|
|
2939
|
-
|
|
2921
|
+
yt(bt), x = !0;
|
|
2940
2922
|
break;
|
|
2941
2923
|
case "-":
|
|
2942
2924
|
case "_":
|
|
2943
|
-
|
|
2925
|
+
yt(-10), x = !0;
|
|
2944
2926
|
break;
|
|
2945
2927
|
case "Escape":
|
|
2946
|
-
|
|
2928
|
+
Cn(), x = !0;
|
|
2947
2929
|
}
|
|
2948
|
-
|
|
2930
|
+
x && w.preventDefault();
|
|
2949
2931
|
}
|
|
2950
|
-
function
|
|
2951
|
-
let
|
|
2932
|
+
function gs(w) {
|
|
2933
|
+
let x = !1;
|
|
2952
2934
|
switch (w.key) {
|
|
2953
2935
|
case "ArrowUp":
|
|
2954
|
-
|
|
2936
|
+
yt(-10), x = !0;
|
|
2955
2937
|
break;
|
|
2956
2938
|
case "ArrowDown":
|
|
2957
|
-
|
|
2939
|
+
yt(bt), x = !0;
|
|
2958
2940
|
}
|
|
2959
|
-
|
|
2941
|
+
x && (w.preventDefault(), w.stopPropagation());
|
|
2960
2942
|
}
|
|
2961
|
-
function
|
|
2962
|
-
let
|
|
2943
|
+
function ws(w) {
|
|
2944
|
+
let x = !1;
|
|
2963
2945
|
switch (w.key) {
|
|
2964
2946
|
case "ArrowUp":
|
|
2965
|
-
|
|
2947
|
+
Nr(-10), x = !0;
|
|
2966
2948
|
break;
|
|
2967
2949
|
case "ArrowDown":
|
|
2968
|
-
|
|
2950
|
+
Nr(bt), x = !0;
|
|
2969
2951
|
break;
|
|
2970
2952
|
case "ArrowLeft":
|
|
2971
|
-
|
|
2953
|
+
Ir(-20), x = !0;
|
|
2972
2954
|
break;
|
|
2973
2955
|
case "ArrowRight":
|
|
2974
|
-
|
|
2956
|
+
Ir(Tn), x = !0;
|
|
2975
2957
|
}
|
|
2976
|
-
|
|
2958
|
+
x && (w.preventDefault(), w.stopPropagation());
|
|
2977
2959
|
}
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
}),
|
|
2960
|
+
Re(() => $.sync(d(v), n())), bo(() => () => {
|
|
2961
|
+
it !== null && clearTimeout(it), nr.release(), $.release();
|
|
2962
|
+
}), Re(() => {
|
|
2981
2963
|
d(v) && d(s) && n() && d(v).updateToolElement(n(), d(s));
|
|
2982
2964
|
});
|
|
2983
|
-
function
|
|
2965
|
+
function bs() {
|
|
2984
2966
|
if (h) return;
|
|
2985
|
-
const w =
|
|
2986
|
-
w && (h = !0, C(g,
|
|
2967
|
+
const w = fs();
|
|
2968
|
+
w && (h = !0, C(g, tr(d(g)), !0), C(c, rr(w), !0));
|
|
2987
2969
|
}
|
|
2988
|
-
|
|
2989
|
-
r() ||
|
|
2990
|
-
}),
|
|
2970
|
+
Re(() => {
|
|
2971
|
+
r() || _t(() => nr.release());
|
|
2972
|
+
}), Re(() => {
|
|
2991
2973
|
if (!r() || !d(s)) return;
|
|
2992
2974
|
const w = d(s);
|
|
2993
|
-
|
|
2994
|
-
|
|
2975
|
+
_t(() => {
|
|
2976
|
+
bs(), l.capture(w);
|
|
2995
2977
|
});
|
|
2996
|
-
const
|
|
2997
|
-
return () => clearTimeout(
|
|
2998
|
-
}),
|
|
2999
|
-
d(c).x, d(c).y, d(g), d(
|
|
3000
|
-
const w = requestAnimationFrame(
|
|
2978
|
+
const x = setTimeout(() => d(s)?.focus({ preventScroll: !0 }), 100);
|
|
2979
|
+
return () => clearTimeout(x);
|
|
2980
|
+
}), Re(() => {
|
|
2981
|
+
d(c).x, d(c).y, d(g), d(Cr), d(a);
|
|
2982
|
+
const w = requestAnimationFrame(On);
|
|
3001
2983
|
return () => cancelAnimationFrame(w);
|
|
3002
|
-
}),
|
|
2984
|
+
}), Re(() => {
|
|
3003
2985
|
if (!i || !r()) return;
|
|
3004
2986
|
const w = () => {
|
|
3005
|
-
C(g,
|
|
2987
|
+
C(g, tr(d(g)), !0), mt(), On();
|
|
3006
2988
|
};
|
|
3007
2989
|
return window.addEventListener("resize", w), () => window.removeEventListener("resize", w);
|
|
3008
2990
|
});
|
|
3009
|
-
var
|
|
2991
|
+
var ms = {
|
|
3010
2992
|
get visible() {
|
|
3011
2993
|
return r();
|
|
3012
2994
|
},
|
|
3013
2995
|
set visible(w = !1) {
|
|
3014
|
-
r(w),
|
|
2996
|
+
r(w), Ee();
|
|
3015
2997
|
},
|
|
3016
2998
|
get toolId() {
|
|
3017
2999
|
return n();
|
|
3018
3000
|
},
|
|
3019
3001
|
set toolId(w = "lineReader") {
|
|
3020
|
-
n(w),
|
|
3002
|
+
n(w), Ee();
|
|
3021
3003
|
}
|
|
3022
|
-
},
|
|
3023
|
-
var
|
|
3024
|
-
let
|
|
3025
|
-
var
|
|
3026
|
-
|
|
3004
|
+
}, Nn = no(), ys = Er(Nn), ks = (w) => {
|
|
3005
|
+
var x = Fo(), q = Er(x), st = Ot(q, !0), U = _e(q, 2);
|
|
3006
|
+
let In;
|
|
3007
|
+
var ir = _e(Ye(U), 4), sr = _e(ir, 2), ar = _e(sr, 2), $s = _e(ar, 2);
|
|
3008
|
+
ls($s, {
|
|
3027
3009
|
get controller() {
|
|
3028
|
-
return
|
|
3010
|
+
return us;
|
|
3029
3011
|
},
|
|
3030
3012
|
get i18n() {
|
|
3031
3013
|
return d(y);
|
|
3032
3014
|
},
|
|
3033
3015
|
classPrefix: "pie-tool-line-reader",
|
|
3034
3016
|
get sizes() {
|
|
3035
|
-
return d(
|
|
3017
|
+
return d(cs);
|
|
3036
3018
|
},
|
|
3037
3019
|
get element() {
|
|
3038
3020
|
return d(a);
|
|
3039
3021
|
},
|
|
3040
|
-
set element(
|
|
3041
|
-
C(a,
|
|
3022
|
+
set element($t) {
|
|
3023
|
+
C(a, $t, !0);
|
|
3042
3024
|
}
|
|
3043
|
-
}), qe(U),
|
|
3044
|
-
|
|
3025
|
+
}), qe(U), ss(U, ($t) => C(s, $t), () => d(s)), Ct(($t, xs, Es, Ss, Ts, As, Ms, Rs, Ps, Os) => {
|
|
3026
|
+
Nt(st, d(O)), Y(U, "lang", $t), Y(U, "dir", xs), Y(U, "aria-label", Es), Y(U, "aria-roledescription", Ss), In = To(U, "", In, {
|
|
3045
3027
|
left: `${d(c).x ?? ""}px`,
|
|
3046
3028
|
top: `${d(c).y ?? ""}px`,
|
|
3047
3029
|
width: `${d(g) ?? ""}px`,
|
|
3048
|
-
height: `${d(
|
|
3030
|
+
height: `${d(Cr) ?? ""}px`,
|
|
3049
3031
|
"--pie-tool-line-reader-band-height": `${d(p) ?? ""}px`,
|
|
3050
3032
|
"--pie-tool-line-reader-side-width": "12px"
|
|
3051
|
-
}), Y(
|
|
3033
|
+
}), Y(ir, "title", Ts), Y(ir, "aria-label", As), Y(sr, "title", Ms), Y(sr, "aria-label", Rs), Y(ar, "title", Ps), Y(ar, "aria-label", Os), U.dir = U.dir;
|
|
3052
3034
|
}, [
|
|
3053
3035
|
() => d(y).getLocale(),
|
|
3054
3036
|
() => d(y).getDirection?.() ?? "ltr",
|
|
@@ -3066,18 +3048,18 @@ function Go(e, t) {
|
|
|
3066
3048
|
frameHeight: d(p),
|
|
3067
3049
|
width: d(g)
|
|
3068
3050
|
})
|
|
3069
|
-
]),
|
|
3051
|
+
]), ge("pointerdown", U, ds), ge("keydown", U, _s), ge("click", ir, Cn), ge("keydown", sr, gs), ge("keydown", ar, ws), Oe(w, x);
|
|
3070
3052
|
};
|
|
3071
|
-
return
|
|
3072
|
-
r() && w(
|
|
3073
|
-
}),
|
|
3053
|
+
return ts(ys, (w) => {
|
|
3054
|
+
r() && w(ks);
|
|
3055
|
+
}), Oe(e, Nn), cn(ms);
|
|
3074
3056
|
}
|
|
3075
|
-
|
|
3057
|
+
Ki([
|
|
3076
3058
|
"pointerdown",
|
|
3077
3059
|
"keydown",
|
|
3078
3060
|
"click"
|
|
3079
3061
|
]);
|
|
3080
|
-
|
|
3062
|
+
Uo("pie-tool-line-reader", os(qo, {
|
|
3081
3063
|
visible: {
|
|
3082
3064
|
attribute: "visible",
|
|
3083
3065
|
type: "Boolean"
|
|
@@ -3086,10 +3068,10 @@ Vo("pie-tool-line-reader", cs(Go, {
|
|
|
3086
3068
|
attribute: "tool-id",
|
|
3087
3069
|
type: "String"
|
|
3088
3070
|
}
|
|
3089
|
-
}, [], [], { mode: "open" },
|
|
3090
|
-
function
|
|
3071
|
+
}, [], [], { mode: "open" }, Cs));
|
|
3072
|
+
function Uo(e, t) {
|
|
3091
3073
|
customElements.get(e) || customElements.define(e, t);
|
|
3092
3074
|
}
|
|
3093
3075
|
export {
|
|
3094
|
-
|
|
3076
|
+
qo as default
|
|
3095
3077
|
};
|